|
@@ -321,16 +321,16 @@ typedef union {
|
|
#if BAUD_ACTUAL <= BAUD_RATE
|
|
#if BAUD_ACTUAL <= BAUD_RATE
|
|
#define BAUD_ERROR (( 100*(BAUD_RATE - BAUD_ACTUAL) ) / BAUD_RATE)
|
|
#define BAUD_ERROR (( 100*(BAUD_RATE - BAUD_ACTUAL) ) / BAUD_RATE)
|
|
#if BAUD_ERROR >= 5
|
|
#if BAUD_ERROR >= 5
|
|
- #error BAUD_RATE error greater than -5%
|
|
|
|
|
|
+ #error BAUD_RATE off by greater than -5%
|
|
#elif BAUD_ERROR >= 2
|
|
#elif BAUD_ERROR >= 2
|
|
- #warning BAUD_RATE error greater than -2%
|
|
|
|
|
|
+ #warning BAUD_RATE off by greater than -2%
|
|
#endif
|
|
#endif
|
|
#else
|
|
#else
|
|
#define BAUD_ERROR (( 100*(BAUD_ACTUAL - BAUD_RATE) ) / BAUD_RATE)
|
|
#define BAUD_ERROR (( 100*(BAUD_ACTUAL - BAUD_RATE) ) / BAUD_RATE)
|
|
#if BAUD_ERROR >= 5
|
|
#if BAUD_ERROR >= 5
|
|
- #error BAUD_RATE error greater than 5%
|
|
|
|
|
|
+ #error BAUD_RATE off by greater than 5%
|
|
#elif BAUD_ERROR >= 2
|
|
#elif BAUD_ERROR >= 2
|
|
- #warning BAUD_RATE error greater than 2%
|
|
|
|
|
|
+ #warning BAUD_RATE off by greater than 2%
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
|