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-/
debug_tools_L152_F4x1RE/mon_hw_config.h@10:1c0f58b9c048, 2015-05-16 (annotated)
- Committer:
- kenjiArai
- Date:
- Sat May 16 00:43:39 2015 +0000
- Revision:
- 10:1c0f58b9c048
Sample program for mbed-src usage sample. You need to modify both mbed-rtos and mbed-src before compile it.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 10:1c0f58b9c048 | 1 | /* |
kenjiArai | 10:1c0f58b9c048 | 2 | * mbed Headder file for Hardware Monitor |
kenjiArai | 10:1c0f58b9c048 | 3 | * |
kenjiArai | 10:1c0f58b9c048 | 4 | * Copyright (c) 2014,'15 Kenji Arai / JH1PJL |
kenjiArai | 10:1c0f58b9c048 | 5 | * http://www.page.sannet.ne.jp/kenjia/index.html |
kenjiArai | 10:1c0f58b9c048 | 6 | * http://mbed.org/users/kenjiArai/ |
kenjiArai | 10:1c0f58b9c048 | 7 | * Created: June 1st, 2014 |
kenjiArai | 10:1c0f58b9c048 | 8 | * Revised: May 16th, 2015 |
kenjiArai | 10:1c0f58b9c048 | 9 | * |
kenjiArai | 10:1c0f58b9c048 | 10 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
kenjiArai | 10:1c0f58b9c048 | 11 | * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
kenjiArai | 10:1c0f58b9c048 | 12 | * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
kenjiArai | 10:1c0f58b9c048 | 13 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kenjiArai | 10:1c0f58b9c048 | 14 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
kenjiArai | 10:1c0f58b9c048 | 15 | */ |
kenjiArai | 10:1c0f58b9c048 | 16 | |
kenjiArai | 10:1c0f58b9c048 | 17 | // CPU STM32L152RE / mbed ST Nucleo L152RE |
kenjiArai | 10:1c0f58b9c048 | 18 | // CPU STM32F401RE / mbed ST Nucleo F401RE |
kenjiArai | 10:1c0f58b9c048 | 19 | // CPU STM32F411RE / mbed ST Nucleo F411RE |
kenjiArai | 10:1c0f58b9c048 | 20 | // mon_hw_config.h mon_hw_mem.h mon_hw_STM32.h mon_hw_STM32.cpp |
kenjiArai | 10:1c0f58b9c048 | 21 | |
kenjiArai | 10:1c0f58b9c048 | 22 | |
kenjiArai | 10:1c0f58b9c048 | 23 | #ifndef _MON_HW_CONF_H_ |
kenjiArai | 10:1c0f58b9c048 | 24 | #define _MON_HW_CONF_H_ |
kenjiArai | 10:1c0f58b9c048 | 25 | |
kenjiArai | 10:1c0f58b9c048 | 26 | // Definition ------------------------------------------------------------------------------------ |
kenjiArai | 10:1c0f58b9c048 | 27 | // Please select each function for your purpose (selected = set 1) |
kenjiArai | 10:1c0f58b9c048 | 28 | |
kenjiArai | 10:1c0f58b9c048 | 29 | #define USE_MEM 1 |
kenjiArai | 10:1c0f58b9c048 | 30 | #define USE_PORT 1 |
kenjiArai | 10:1c0f58b9c048 | 31 | #define USE_UART 1 |
kenjiArai | 10:1c0f58b9c048 | 32 | #define USE_SPI 1 |
kenjiArai | 10:1c0f58b9c048 | 33 | #define USE_I2C 1 |
kenjiArai | 10:1c0f58b9c048 | 34 | #define USE_SYS 1 |
kenjiArai | 10:1c0f58b9c048 | 35 | |
kenjiArai | 10:1c0f58b9c048 | 36 | #endif // _MON_HW_CONF_H_ |