diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-01 15:42:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-01 15:42:44 +0000 |
commit | 1be8fe145c836c3f90dc326de2a8678d5e17b628 (patch) | |
tree | 2b0905200c88b3a3a571af57793a16e694388ab0 /demos | |
parent | 6ffd46f60833fd497fe717709bd77e147e79d3c4 (diff) | |
download | ChibiOS-1be8fe145c836c3f90dc326de2a8678d5e17b628.tar.gz ChibiOS-1be8fe145c836c3f90dc326de2a8678d5e17b628.tar.bz2 ChibiOS-1be8fe145c836c3f90dc326de2a8678d5e17b628.zip |
C++ wrapper prototype, not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5008 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARMCM4-STM32F407-DISCOVERY-MEMS-G++/main.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS-G++/main.cpp b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS-G++/main.cpp index c4cbb3280..5794ac798 100644 --- a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS-G++/main.cpp +++ b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS-G++/main.cpp @@ -24,6 +24,7 @@ #include "evtimer.h"
using namespace chibios_rt;
+#if 0
/*
* LED blink sequences.
@@ -130,16 +131,17 @@ static void TimerHandler(eventid_t id) { tester.Wait();
};
}
+#endif
/*
* Application entry point.
*/
int main(void) {
- static const evhandler_t evhndl[] = {
+/* static const evhandler_t evhndl[] = {
TimerHandler
};
static EvTimer evt;
- struct EventListener el0;
+ struct EventListener el0;*/
/*
* System initializations.
@@ -149,28 +151,28 @@ int main(void) { * RTOS is active.
*/
halInit();
- System::Init();
+ System::init();
/*
* Activates the serial driver 2 using the driver default configuration.
*/
sdStart(&SD2, NULL);
-
+/*
evtInit(&evt, 500); // Initializes an event timer.
evtStart(&evt); // Starts the event timer.
chEvtRegister(&evt.et_es, &el0, 0); // Registers a listener on the source.
-
+*/
/*
* Starts several instances of the SequencerThread class, each one operating
* on a different LED.
*/
- SequencerThread blinker1(LED1_sequence);
+// SequencerThread blinker1(LED1_sequence);
/*
* Serves timer events.
*/
- while (true)
- Event::Dispatch(evhndl, Event::WaitOne(ALL_EVENTS));
+// while (true)
+// Event::Dispatch(evhndl, Event::WaitOne(ALL_EVENTS));
return 0;
}
|