Implement 2 macros to help checking data to usart