Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1
Fork of BLE_iBeacon by
Revision 24:9bcd0dbf0f41, committed 2014-05-23
- Comitter:
- Rohit Grover
- Date:
- Fri May 23 17:50:10 2014 +0100
- Parent:
- 23:b66fa312e926
- Child:
- 25:a56462536345
- Commit message:
- removed use of forward declarations for helper functions
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 23 17:04:34 2014 +0100
+++ b/main.cpp Fri May 23 17:50:10 2014 +0100
@@ -50,8 +50,19 @@
0xC8 // 2's complement of the Tx power (-56dB)
};
-static void setupAppHardware(void);
-static void tickerCallback(void);
+void tickerCallback(void)
+{
+ tickerLED = !tickerLED;
+}
+
+void setupAppHardware(void)
+{
+ /* Setup blinkies: mainloopLED is toggled in main, tickerLED is
+ * toggled via Ticker */
+ mainloopLED = 1;
+ tickerLED = 1;
+ flipper.attach(&tickerCallback, 1.0);
+}
int main(void)
{
@@ -77,17 +88,3 @@
wait(1);
}
}
-
-void setupAppHardware(void)
-{
- /* Setup blinkies: mainloopLED is toggled in main, tickerLED is
- * toggled via Ticker */
- mainloopLED = 1;
- tickerLED = 1;
- flipper.attach(&tickerCallback, 1.0);
-}
-
-void tickerCallback(void)
-{
- tickerLED = !tickerLED;
-}
