Update family.c
This commit is contained in:
parent
fa4314e0ce
commit
2c766c4daf
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
#include "pin_mux.h"
|
#include "pin_mux.h"
|
||||||
#include "clock_config.h"
|
#include "clock_config.h"
|
||||||
#include "fsl_common.h"
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef BOARD_TUD_RHPORT
|
#ifdef BOARD_TUD_RHPORT
|
||||||
|
@ -80,11 +79,11 @@ void board_init(void)
|
||||||
board_led_write(1);
|
board_led_write(1);
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
//#ifdef BUTTON_GPIO
|
#ifdef BUTTON_GPIO
|
||||||
// CLOCK_EnableClock(BUTTON_CLK);
|
CLOCK_EnableClock(BUTTON_CLK);
|
||||||
// gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0};
|
gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0};
|
||||||
// GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config);
|
GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config);
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UART_DEV
|
#ifdef UART_DEV
|
||||||
|
|
||||||
|
@ -107,7 +106,8 @@ void board_init(void)
|
||||||
|
|
||||||
#if PORT_SUPPORT_DEVICE(0)
|
#if PORT_SUPPORT_DEVICE(0)
|
||||||
// Port0 is Full Speed
|
// Port0 is Full Speed
|
||||||
|
//CLOCK_EnableClock(kCLOCK_Usb0Ram);
|
||||||
|
//CLOCK_EnableClock(kCLOCK_Usb0Fs);
|
||||||
RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn);
|
RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn);
|
||||||
CLOCK_EnableUsbfsClock();
|
CLOCK_EnableUsbfsClock();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue