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

Question about customized task for GPIOTE

Hi,

I was writing a program that uses the PPI with event from the timer and the task to one of the GPIO pins. The ideal scenario is that, whenever the timer fires, it will trigger the task and cause the GPIO pin to do a customized behavior (for example, turn on, then turn off, and turn on again).

I was aware that there are some default behavior (tasks) that can be used, such as GPIO_CONFIG_OUT_TASK_TOGGLE. I wonder if there is a way to define a task myself, so that I can update that pin many times in a customized way for each triggering event.

Thanks,

Jinyue

Parents Reply Children
Related