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 here: apps/examples/zerocross/zerocross_main.c

The old video example is here: https://www.youtube.com/watch?v=NRMnW6jKsiw

Best Regards,

Alan

On Tue, Apr 30, 2024 at 4:07 PM David Welshon <david.wels...@gmail.com>
wrote:

> 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 pin.
>
> Thanks for any pointers
>
> David
>

Reply via email to