diff options
| author | Jerry Palacios <[email protected]> | 2024-02-08 12:43:13 -0600 |
|---|---|---|
| committer | Jerry Palacios <[email protected]> | 2024-02-08 12:43:13 -0600 |
| commit | 2c766c4dafa6c44f5c29f833443e13ca9b5c1f90 (patch) | |
| tree | ebd47ff525cb84898d248c13096f95cbdc8e3d24 | |
| parent | fa4314e0cefab8c46640ad5bf2a21eb59668449f (diff) | |
Update family.c
| -rw-r--r-- | hw/bsp/mcxa/family.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/bsp/mcxa/family.c b/hw/bsp/mcxa/family.c index 78b1676d4..670542892 100644 --- a/hw/bsp/mcxa/family.c +++ b/hw/bsp/mcxa/family.c @@ -32,7 +32,6 @@ #include "pin_mux.h" #include "clock_config.h" -#include "fsl_common.h" #ifdef BOARD_TUD_RHPORT @@ -80,11 +79,11 @@ void board_init(void) board_led_write(1); // Button -//#ifdef BUTTON_GPIO -// CLOCK_EnableClock(BUTTON_CLK); -// gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0}; -// GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config); -//#endif +#ifdef BUTTON_GPIO + CLOCK_EnableClock(BUTTON_CLK); + gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0}; + GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config); +#endif #ifdef UART_DEV @@ -107,7 +106,8 @@ void board_init(void) #if PORT_SUPPORT_DEVICE(0) // Port0 is Full Speed - + //CLOCK_EnableClock(kCLOCK_Usb0Ram); + //CLOCK_EnableClock(kCLOCK_Usb0Fs); RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn); CLOCK_EnableUsbfsClock(); #endif |
