[Updated on OS6] TimerEvent is no longer existing!! Checked TimerEvent function on os5 latest version. Result is okay on FRDM-K64F but STM32 series are NOT okay e.g. Nucleo-L152RE, -F446RE, -L432KC and so on. This TimerEvent is using SoftSerial library and works well on old os2 but not OS5 latest version STM32 series Mbed board.
Forum discussion.
https://forums.mbed.com/t/how-to-port-software-serial-to-os5-6/12641
https://forums.mbed.com/t/softserial-problem-l432kc/8288
check_revision.cpp@0:0a78edc7ac85, 2020-05-12 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue May 12 01:15:04 2020 +0000
- Revision:
- 0:0a78edc7ac85
- Child:
- 1:3e3b7ec1f33d
Checked TimerEvent function on os5.15.3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:0a78edc7ac85 | 1 | /* |
kenjiArai | 0:0a78edc7ac85 | 2 | * Check Mbed revision |
kenjiArai | 0:0a78edc7ac85 | 3 | * |
kenjiArai | 0:0a78edc7ac85 | 4 | * Copyright (c) 2020 Kenji Arai / JH1PJL |
kenjiArai | 0:0a78edc7ac85 | 5 | * http://www7b.biglobe.ne.jp/~kenjia/ |
kenjiArai | 0:0a78edc7ac85 | 6 | * https://os.mbed.com/users/kenjiArai/ |
kenjiArai | 0:0a78edc7ac85 | 7 | * Created: May 12th, 2020 |
kenjiArai | 0:0a78edc7ac85 | 8 | * Revised: May 12th, 2020 |
kenjiArai | 0:0a78edc7ac85 | 9 | */ |
kenjiArai | 0:0a78edc7ac85 | 10 | |
kenjiArai | 0:0a78edc7ac85 | 11 | #include "mbed.h" |
kenjiArai | 0:0a78edc7ac85 | 12 | |
kenjiArai | 0:0a78edc7ac85 | 13 | // RUN ONLY ON mbed-os-5.15.3 |
kenjiArai | 0:0a78edc7ac85 | 14 | // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.3 |
kenjiArai | 0:0a78edc7ac85 | 15 | #if (MBED_MAJOR_VERSION == 5) &&\ |
kenjiArai | 0:0a78edc7ac85 | 16 | (MBED_MINOR_VERSION == 15) &&\ |
kenjiArai | 0:0a78edc7ac85 | 17 | (MBED_PATCH_VERSION == 3) |
kenjiArai | 0:0a78edc7ac85 | 18 | #elif (MBED_MAJOR_VERSION == 2) &&\ |
kenjiArai | 0:0a78edc7ac85 | 19 | (MBED_MINOR_VERSION == 0) &&\ |
kenjiArai | 0:0a78edc7ac85 | 20 | (MBED_PATCH_VERSION == 132) |
kenjiArai | 0:0a78edc7ac85 | 21 | #else |
kenjiArai | 0:0a78edc7ac85 | 22 | #error "Please use mbed-os-5.15.3 or mbed-os-2.132" |
kenjiArai | 0:0a78edc7ac85 | 23 | #endif |