diff options
| author | hathach <[email protected]> | 2019-11-04 22:03:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-04 22:03:31 +0700 |
| commit | 8cd19f88b9039657079a85d7bdb2cd3fffce585b (patch) | |
| tree | 914dbc8c1050e7bcccb0826be1dae9f2aea1dffa | |
| parent | 42b55f6621a18179513c99d8013ef857b3d28b2f (diff) | |
clean up
| -rw-r--r-- | hw/bsp/samg55xplained/samg55xplained.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/bsp/samg55xplained/samg55xplained.c b/hw/bsp/samg55xplained/samg55xplained.c index e1bc9c4cc..b050d3624 100644 --- a/hw/bsp/samg55xplained/samg55xplained.c +++ b/hw/bsp/samg55xplained/samg55xplained.c @@ -40,6 +40,7 @@ #define BUTTON_PIN GPIO(GPIO_PORTA, 2) #define BUTTON_STATE_ACTIVE 0 + //------------- IMPLEMENTATION -------------// void board_init(void) { @@ -64,6 +65,14 @@ void board_init(void) // 1ms tick timer (samd SystemCoreClock may not correct) SysTick_Config(CONF_CPU_FREQUENCY / 1000); #endif + + // USB + + /* Clear SYSIO 10 & 11 for USB DM & DP */ + hri_matrix_clear_CCFG_SYSIO_reg(MATRIX, CCFG_SYSIO_SYSIO10 | CCFG_SYSIO_SYSIO11); + + // Enble clock + _pmc_enable_periph_clock(ID_UDP); } //--------------------------------------------------------------------+ |
