This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to configure two gpio pin in High drivemode 5mA

Hello everyone,

I am trying to congifure two gpio pin (pin 6and 7) in standard high drive mode 5MA because am trying to connect those pin to the speaker inorder to increase the loudness by having 10mA at the input of the speaker so can anyone suggest some ideas or example how to configure tow gpio pin in high drive mode any suggestions or ideas would be really appreciated i found these information in the library files but i did not understand what does it meany by SOS1 which is softdevice version 1 or something else?

NRF_GPIO->PIN_CNF[pin_number] = (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos);

Do i ahve to configure like this ? or something else

NRF_GPIO->PIN_CNF[6] = (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos);

NRF_GPIO->PIN_CNF[7] = (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos);

main.c

Thanks

Related