What's a good way to be hardware independent?

On a 1MIPS avr, this approach can flip a pin at 100Khz. So at 16Mhz, 1:1 prescaler, it should be able to do 1.6Mhz pin flipping.