Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Boards): Add default interrupt handlers for the touchscreen #795

Merged
merged 3 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Libraries/Boards/MAX32570/MN_EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const mxc_gpio_cfg_t ts_busy_pin = { MXC_GPIO0, MXC_GPIO_PIN_1, MXC_GPIO_FUNC_IN

/******************************************************************************/
/**
* 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 GPIO0_IRQHandler(void)
{
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Boards/MAX32570/M_EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const mxc_gpio_cfg_t ts_busy_pin = { MXC_GPIO0, MXC_GPIO_PIN_1, MXC_GPIO_FUNC_IN

/******************************************************************************/
/**
* 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 GPIO0_IRQHandler(void)
{
Expand Down
10 changes: 10 additions & 0 deletions Libraries/Boards/MAX32570/QN_EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ __weak void GPIO3_IRQHandler(void)
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO3));
}

/******************************************************************************/
/**
* NOTE: This weak definition is included to support Touchscreen interrupt in
* case the user does not define this interrupt handler in their application.
**/
__weak void GPIO0_IRQHandler(void)
{
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO0));
}

/******************************************************************************/
static int ext_flash_board_init(void)
{
Expand Down
12 changes: 11 additions & 1 deletion Libraries/Boards/MAX32570/Q_EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,21 @@ const mxc_gpio_cfg_t ts_busy_pin = { MXC_GPIO0, MXC_GPIO_PIN_1, MXC_GPIO_FUNC_IN
* NOTE: This weak definition is included to support Push Button interrupts in
* case the user does not define this interrupt handler in their application.
**/
__weak void GPIO0_IRQHandler(void)
__weak void GPIO3_IRQHandler(void)
{
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO3));
}

/******************************************************************************/
/**
* NOTE: This weak definition is included to support Touchscreen interrupt in
* case the user does not define this interrupt handler in their application.
**/
__weak void GPIO0_IRQHandler(void)
{
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO0));
}

/******************************************************************************/
static int ext_flash_board_init(void)
{
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Boards/MAX32655/EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const unsigned int num_leds = (sizeof(led_pin) / sizeof(mxc_gpio_cfg_t));

/******************************************************************************/
/**
* 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 interrupt
* in case the user does not define this interrupt handler in their application.
**/
__weak void GPIO0_IRQHandler(void)
{
Expand Down
10 changes: 10 additions & 0 deletions Libraries/Boards/MAX78000/EvKit_V1/Source/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ __weak void GPIO2_IRQHandler(void)
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO2));
}

/******************************************************************************/
/**
* NOTE: This weak definition is included to support Touchscreen interrupts in
* case the user does not define this interrupt handler in their application.
**/
__weak void GPIO0_IRQHandler(void)
{
MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO0));
}

#ifndef __riscv
void TS_SPI_Init(void)
{
Expand Down