This is sample program for Nucleo L152RE (and F401RE & F411RE) mbed-rtos. You need to modify mbed-src and mbed-rtos before compile it.
Dependencies: mbed-rtos mbed-src SetRTC
Fork of GR-PEACH_test_on_rtos_works_well by
Please refer below link.
/users/kenjiArai/notebook/necleo-l152re-rtos-sample-also-for-f401re--f411re-/
Diff: main.cpp
- Revision:
- 13:d0d1da1fae4c
- Parent:
- 10:1c0f58b9c048
diff -r 2db841307633 -r d0d1da1fae4c main.cpp --- a/main.cpp Tue May 19 23:32:57 2015 +0000 +++ b/main.cpp Wed May 20 10:49:02 2015 +0000 @@ -6,7 +6,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: November 29th, 2014 - * Revised: May 16th, 2015 + * Revised: May 20th, 2015 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -46,16 +46,6 @@ #define READABLE(x) {;} #endif -#if 0 -#define TIMEBASE 12000 -#define FIXED_STEPS 100 - -#define PI 3.1415926536 -#define RAD_TO_DEG 57.29578 -#define TIME_BASE_MS ( TIME_BASE_S * 1000) -#define RATE 0.1 -#endif - #define TIME_BASE_S 0.02 #define step_one (0.0625f)