// @brief : Called from TIM5_IRQHandler, whenever TIM5 CH1 generates an interrupt// or TIM5 generates an update. This function serves two purposes. Firstly,// it will be used to debounce the switch after it is pressed or released// (interrupt). Secondly, it is used to notify the user...
Example #5 0 Show file File:main.c void toPhone_modulate(uint8_t b) { volatile int tcnt,cnt; if(b){ cnt = SOFT_MODEM_HIGH_CNT; tcnt = SOFT_MODEM_HIGH_USEC / 2; }else{ cnt = SOFT_MODEM_LOW_CNT; tcnt = SOFT_MODEM_LOW_USEC / 2; } do { cnt--; { Tim3_flg = 0; ...