GPIO_InfiniteLedToggling_Init Example Description

How to configure and use GPIOs to toggle the on-board user LEDs every 250 ms.

This example is based on the STM32C0xx LL API. The peripheral is initialized with LL initialization function to demonstrate LL init usage.

PA.05 IO (configured in output pushpull mode) toggles in a forever loop. On NUCLEO-C031C6 board this IO is connected to LED4.

In this example, HCLK is configured at 48 MHz.

Keywords

System, GPIO, Output, No pull, Speed, Push-pull, Toggle

Directory contents

Hardware and Software environment

How to use it ?

In order to make the program work, you must do the following :