From 2c766c4dafa6c44f5c29f833443e13ca9b5c1f90 Mon Sep 17 00:00:00 2001 From: Jerry Palacios Date: Thu, 8 Feb 2024 12:43:13 -0600 Subject: [PATCH] Update family.c --- hw/bsp/mcxa/family.c | 14 +++++++------- 1 file 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