stuck in k_sem_take #92782
-
I’m working on adding a new ADC driver and running into an issue with Could someone please help me understand the correct sequence for using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Eh,eh,eh Aurix platform...
What kind of issue are you facing exactly? You block in the spinlock?
AFAICS, you just lock the adc context before the read operation, and release it after completion. There are many examples of ADC drivers available under One thing that comes to mind: have you properly initialized the context? You can either call Example of drivers using:
|
Beta Was this translation helpful? Give feedback.
Eh,eh,eh Aurix platform...
What kind of issue are you facing exactly? You block in the spinlock?
AFAICS, you just lock the adc context before the read operation, and release it after completion. There are many examples of ADC drivers available under
zephyr/drivers/adc
One thing that comes to mind: have you properly initialized the context? You can either call
adc_context_init()
in…