Closed stefannagelchargebyte closed 8 months ago
Hi @stefannagelchargebyte why are you enabling the GPT underflow interrupt if you are not going to have a callback? If you are using the GPT underflow event to trigger an ADC conversion using the ELC then you do not need to enable the GPT underflow interrupt.
Because I didn't understand it :-) I thought you need the interrupt to trigger the event ... but after your mail I disabled the interrupts and the events are coming through, anyway. Thanks for the hint
No problem, glad to hear it solved your problem!
Dear Renesas Team, I'm using the gpt_counter_underflow_isr which is linked to an ADC conversion. However, even if I use the gpt_counter_underflow_isr, I dont use the callback. This leads to a critical assert.
I would propose as you did for the gpt_counter_overflow_isr only add a check against NULL pointer for the callback.
Actual code: `void gpt_counter_underflow_isr (void) { / Save context if RTOS is used / FSP_CONTEXT_SAVE
}`
Proposal: `void gpt_counter_underflow_isr (void) { / Save context if RTOS is used / FSP_CONTEXT_SAVE
}`