The recipe, helloBlinky_c1v0
, that we met in Chapter 1, A Practical Introduction to ARM Cortex, uses the LED_On()
and LED_Off()
functions to switch the LEDs. These functions are defined in a file named LED_MCBSTM32F400.c
, which is automatically included in our project if we select LED (API) Board Support when configuring our project using the RTE manager. Let's write another LED program and then take a closer look at LED_MCBSTM32F400.c
.
To configure the GPIO ports follow the outlined steps:
Create a folder named
countBlinky_c3v0
and a project namedcountBlinky
; use the RTE manager to select Board Support for the LED (API).Enter the following source code in file named
countBlinky.c
and add this to the project:/*--------------------------------------------- * Recipe: countBlinky_c3v0 * Name: countBlinky.c * Purpose: LED Counter *--------------------------------------------- * * Modification History * 03.05.15 Created * 16.12.15 Updated (uVision5...