board clean up, add button for ea4088

This commit is contained in:
hathach
2019-05-15 17:14:15 +07:00
parent b73047e350
commit 6e6f470b58
10 changed files with 103 additions and 130 deletions

View File

@@ -81,6 +81,9 @@ void board_init(void)
GPIOA->PUPDR |= GPIO_PUPDR_PUPD10_0;
}
//--------------------------------------------------------------------+
// Board porting API
//--------------------------------------------------------------------+
void board_led_write(bool state)
{
@@ -98,12 +101,8 @@ uint32_t board_button_read(void)
}
/*------------------------------------------------------------------*/
/* TUSB HAL MILLISECOND
*------------------------------------------------------------------*/
#if CFG_TUSB_OS == OPT_OS_NONE
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
system_ticks++;