8000 fix gpio mode not setting function to gpio · sparkfun/mbed-os-ambiq-apollo3@dc62c5f · GitHub
[go: up one dir, main page]

Skip to content

Commit dc62c5f

Browse files
committed
fix gpio mode not setting function to gpio
1 parent 0ade818 commit dc62c5f

File tree

1 file changed

+1
-0
lines changed
  • targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device

1 file changed

+1
-0
lines changed

targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/gpio_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void gpio_mode(gpio_t *obj, PinMode mode)
6868
am_hal_gpio_pincfg_allow_t pinConfigBools;
6969

7070
obj->cfg.uFuncSel = AP3_PINCFG_FUNCSEL_GPIO; // gpio
71+
pinConfigBools.uFuncSel = true;
7172

7273
if (mode & (PinMode)PowerSwNone)
7374
{

0 commit comments

Comments
 (0)
0