Cortex Challenge Team / Mbed 2 deprecated DiscoveryF0-LED_and_Button

Dependencies:   mbed

Revision:
2:da8f8b14f387
Parent:
1:9b85c92a1ace
Child:
3:67e70777bc5d
--- a/main.cpp	Wed Mar 11 16:31:03 2015 +0000
+++ b/main.cpp	Mon Mar 23 13:20:48 2015 +0000
@@ -17,24 +17,24 @@
  
 /* Includes ----------------------------------------------------------------------*/
 #include "mbed.h"
- 
-//Handles the initialization of peripherals
-InterruptIn button(PA_0);       // inicialize button on STM32F0 discovery
-DigitalOut blue(PC_8);          // inicialize blue LED on STM32F0 discovery
-DigitalOut green(PC_9);         // inicialize green LED on STM32F0 discovery
 
+/* Defines -----------------------------------------------------------------------*/
 
+/* Function prototypes -----------------------------------------------------------*/ 
 
 /* Variables ---------------------------------------------------------------------*/ 
 bool press = false;             // boolean value, where you can find if was the button pressed
 
-
+//mbed - initialization of peripherals
+InterruptIn button(PA_0);       // inicialize button on STM32F0 discovery
+DigitalOut blue(PC_8);          // inicialize blue LED on STM32F0 discovery
+DigitalOut green(PC_9);         // inicialize green LED on STM32F0 discovery
 
 /* Functions----------------------------------------------------------------------*/
  
 /*******************************************************************************
 * Function Name  : pressed.
-* Description    : Changes value press if someone pressed the button.
+* Description    : Changes value "press" if someone pressed the button.
 * Input          : None.
 * Output         : None.
 * Return         : None.