CONFIDENCE & CONFIG Settings

Each time I attempt to use a Zephyr API on my NORDIC device, I face the mystery of what CONFIG setting are required to go with it.  For example:

To make the Async UART API work, I consulted the Nordic's API page: docs.nordicsemi.com/.../group_uart_async.html

It doesn't mention any CONFIG settings.   After a GOOGLE search, I found a user that said these CONFIG settings are required:

#For UART
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_0_ASYNC=y
CONFIG_UART_0_NRF_HW_ASYNC=y
CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
CONFIG_NRFX_TIMER4=y
And sure enough, that made it work.   Out of curiosity, I commented out all but two of those, and it still seems to work.  I think?
#For UART
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
#CONFIG_UART_0_ASYNC=y
#CONFIG_UART_0_NRF_HW_ASYNC=y
#CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
#CONFIG_NRFX_TIMER4=y
My point is that I'm "guessing" at CONFIG settings, hoping that they are correct.  That is not engineering. 
How can I take the guess work out of using Nordic with Zephyr when it comes to CONFIG settings?
Thank you

 

Parents Reply Children
No Data
Related