STM32F0-Discovery GPIO Toggle




Home Page
STM32F0xx Page


This example was tested on STM32F0-Discovery and does the following things:
Configure the GPIOs for driving the LEDs (LD3 and LD4).

This examples was tested using:
STM32F0 Library Ver. 1.0.0
KEIL (32KFree) ver.4.23 and ver.4.53
ATOLLIC ver.3.1.0

If you want to use this example on ATOLLIC do this:

Enter in the directory:
C:\.......\STM32F0-Disc-Toggle_Lib_V1.0.0\Project\STM32F0xx_StdPeriph_Templates\TrueSTUDIO\Project
Next double click on:
.cproject
When ATOLLIC starts, in the window that appears, chose the directory:
C:\.......\STM32F0-Examples\STM32F0-Disc-Toggle_Lib_V1.0.0\Project\STM32F0xx_StdPeriph_Templates\TrueSTUDIO
and press OK

Now is necessary change the Delay function, see the highlighted below.

void Delay(volatile long nCount) // VOLATILE is request for ATOLLIC v.3.1.0
{

/* Decrement nCount value */
while (nCount != 0)
 {
 nCount--;
 }
}


Remember also to modify the Delay declaration, see the highlighted below

void Delay(volatile long nCount); // VOLATILE is request for ATOLLIC v.3.1.0


For get this example click here and download the: STM32F0-Discovery GPIO Toggle


Home Page
STM32F0xx Page