I'm just starting to write in C and am trying to port some code from PIC to AVR. The PIC code uses a lot of bit manipulations, which I am trying to port to AVR. Below are a couple examples:
output_low(PIN0); //Clears PIN0
What is the equivalent code to clear PINB0 on the AVR?
clear_interrupt(INT_RB); //Clears interrupt flag
What is the equivalent code to clear INTF1 in GIFR? But, this shouldn't be needed if you use ISR(INT1_vect, ISR_BLOCK) correct?
output_toggle(PIN0); //Toggles PIN0
What is the fastest equivalent code to toggle PINB0? Would you have to do a Read-Modify-Write?
Any suggestions would be appreciated. Thanks.