|
|
|
@ -514,9 +514,7 @@ void tim4_isr(void) |
|
|
|
|
void tim5_isr(void) |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
//gpio_toggle(LED_PORT, LED_PIN);
|
|
|
|
|
if (timer_get_flag(VFD_TIMER, TIM_SR_UIF)) { // overflow even happened
|
|
|
|
|
gpio_toggle(LED_PORT, LED_PIN); |
|
|
|
|
timer_clear_flag(VFD_TIMER, TIM_SR_UIF); // clear flag
|
|
|
|
|
spi_i = 0; // set the register to shift out
|
|
|
|
|
spi_enable_tx_buffer_empty_interrupt(VFD_SPI); // enable TX empty interrupt
|
|
|
|
|