Skip to content

Commit

Permalink
Sync ME55EVKIT board file
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim committed Nov 13, 2023
1 parent cdf66b6 commit 2714732
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Libraries/Boards/MAX32572/EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@
mxc_uart_regs_t *ConsoleUart = MXC_UART_GET_UART(CONSOLE_UART);
extern uint32_t SystemCoreClock;

// clang-format off
const mxc_gpio_cfg_t pb_pin[] = { { MXC_GPIO0, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_IN,
MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }
,{ MXC_GPIO1, MXC_GPIO_PIN_29, MXC_GPIO_FUNC_IN,
MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 } };
MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO },
{ MXC_GPIO1, MXC_GPIO_PIN_29, MXC_GPIO_FUNC_IN,
MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO } };
const unsigned int num_pbs = (sizeof(pb_pin) / sizeof(mxc_gpio_cfg_t));

const mxc_gpio_cfg_t led_pin[] = { { MXC_GPIO1, MXC_GPIO_PIN_30, MXC_GPIO_FUNC_OUT,
MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }
,{ MXC_GPIO1, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_OUT,
MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 }
};
MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO },
{ MXC_GPIO1, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_OUT,
MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO } };
const unsigned int num_leds = (sizeof(led_pin) / sizeof(mxc_gpio_cfg_t));
// clang-format on

Expand All @@ -86,8 +84,8 @@ __weak void GPIO0_IRQHandler(void)

/******************************************************************************/
/**
* NOTE: This weak definition is included to support Push Button interrupts in
* case the user does not define this interrupt handler in their application.
* NOTE: This weak definition is included to support Push Button/Touchscreen interrupts
* in case the user does not define this interrupt handler in their application.
**/
__weak void GPIO1_IRQHandler(void)
{
Expand Down

0 comments on commit 2714732

Please sign in to comment.