Usage Examples
(state ? true : false) //1:0
#define USART_DIR_TX(state) (state ? ([true]) : ([false]))
#define OUTPUT_PIN(state) (state ? (LATAbis.LATA1 = 1) : (LATAbis.LATA1 = 0)) //1:0
bytesThisSector = (bytesLeftToWrite > 512) ? 512 : bytesLeftToWrite;
#define LED_OUTPUT_ON(state) (state ? (rs485_leds_output |= 0x01) : (rs485_leds_output &= ~0x01))
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.