I have defined the below macro : #define SPI_SEC_SCALE(BAUD) ((uint16)(SYS_CLK_HZ/64)/(BAUD)) Range of "SPI_SEC_SCALE(BAUD)" should be between '1 and 8'. I mean (1<= SPI_SEC_SCALE(BAUD) <=8 ), if not than error should display "ERROR: xxx".How can I check ..
↧