Monday, 20 June 2016

How to use STM32 GPIO

Firstly, add the header files. Configure the clocks if needed.

This header is for STM32F1 change it to your own.

Secondly, configure the GPIOs. This is for PA3 set to output.

To set pin low.

To set pin high.

To toggle pin.

To read pin.

No comments:

Post a Comment