Can I assign multiple assignment statements a name? For example if currently want to turn on and off PWM, so I use:
For starting PWM
#define Set_COM1A1_Bits TCCR1A |= (1<<COM1A1) #define Start_PWM1 TCCR1B |= (1<<CS11)
For stopping PWM
#define Clr_COM1A1_Bits TCCR1A &= ~(1<<COM1A1) #define Stop_PWM1 TCCR1B &= ~(1<<CS11)
Could I instead use something to the order of:
#define Start_PWM1 ((TCCR1B |= (1<<CS11)), (TCCR1A |= (1<<COM1A1)))
I couldn't seem to find anything on #Define and multiple assignment statements, so I'm not sure if the syntax is correct of it that is even aloud.