Skip to content

GPIOs for ADC ADS114S08 #55541

Answered by DarrylGamroth
benediktibk asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at how it's done for the LMP90XXX:
ADC driver drivers/adc/adc_lmp90xxx.c
GPIO driver drivers/gpio/gpio_lmp90xxx.c

See drivers/gpio/gpio_stm32.c?#L47 for how it's done on the STM32. For the ADS114s0x in the pin_configure() function if the flag GPIO_INPUT or GPIO_OUTPUT is set then set the appropriate bit in the GPIOCON register otherwise clear it for analog input.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benediktibk
Comment options

benediktibk Mar 8, 2023
Collaborator Author

Answer selected by benediktibk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #55540 on March 07, 2023 13:42.