Hi David,
The pin is defined as BOARD_ZEROCROSS_GPIO, please look at
nuttx/boards/arm/stm32/stm32f103-minimum/include/board.h
nuttx/boards/arm/stm32/stm32f4discovery/include/board.h
The board initialization code is here:
nuttx/boards/arm/stm32/common/src/stm32_zerocross.c
And the example is
Is there an example driver, that I should/could look at to add pins to the
zerocrossdriver?
What would be the steps involved if I wanted to add pins to an stm32f401re?
I am currently using the stm32_zerocross in the stm32/common/src folder.
but it looks like this lower half is hardcoded for 1