Skip to content

Commit

Permalink
hal/imxrt117x: fix IOpad set
Browse files Browse the repository at this point in the history
properly set the ranges of gpio pad registers
that are controlled differently to the rest

JIRA: RTOS-507
  • Loading branch information
julianuziemblo committed Oct 22, 2024
1 parent 6faf84b commit 94ef87d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hal/armv7m/imxrt/117x/imxrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ __attribute__((section(".noxip"))) int _imxrt_setIOpad(int pad, char sre, char d
return -1;
}

if ((pad >= pctl_pad_gpio_emc_b1_00) && (pad <= pctl_pad_gpio_disp_b2_15)) {
if (((pad >= pctl_pad_gpio_emc_b1_00) && (pad <= pctl_pad_gpio_emc_b2_20)) ||
((pad >= pctl_pad_gpio_sd_b1_00) && (pad <= pctl_pad_gpio_disp_b2_15))) {
/* Fields have slightly diffrent meaning... */
if (pue == 0) {
pull = 3;
Expand Down

0 comments on commit 94ef87d

Please sign in to comment.