I created a component to work with Si917.
This component has a config file which allows users can modify the GPIO port and pin as picture below.
Unfortunately pin_tool always generate port=0 for any selected pin.
For example, when GPIO_10 is selected, PORT = 0 and PIN = 10. But when ULP_GPIO_10 is selected, the result is still PORT = 0 (expect PORT = 4) and PIN = 10.
This is the reason why my code doesn't know GPIO_10 or ULP_GPIO_10 selected.
Hi team,
I created a component to work with Si917. This component has a config file which allows users can modify the GPIO port and pin as picture below.
Unfortunately pin_tool always generate port=0 for any selected pin. For example, when GPIO_10 is selected, PORT = 0 and PIN = 10. But when ULP_GPIO_10 is selected, the result is still PORT = 0 (expect PORT = 4) and PIN = 10. This is the reason why my code doesn't know GPIO_10 or ULP_GPIO_10 selected.
Below is snip code of the config file