Test program for SoftSerial. TimerEvent function has bug for STM32 series Mbed. FRDM-64K works well without bug. This is a temporary solution avoid bug but not perfect.
Dependencies: BufferedSoftSerial
select_example.h@0:98865e300cd5, 2020-05-10 (annotated)
- Committer:
- kenjiArai
- Date:
- Sun May 10 08:15:36 2020 +0000
- Revision:
- 0:98865e300cd5
Tset program for SoftSerial library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:98865e300cd5 | 1 | /* |
kenjiArai | 0:98865e300cd5 | 2 | * Mbed Application program |
kenjiArai | 0:98865e300cd5 | 3 | * SoftSerial(also BufferedSoftSerial) function test programs |
kenjiArai | 0:98865e300cd5 | 4 | * |
kenjiArai | 0:98865e300cd5 | 5 | * Copyright (c) 2020 Kenji Arai / JH1PJL |
kenjiArai | 0:98865e300cd5 | 6 | * http://www7b.biglobe.ne.jp/~kenjia/ |
kenjiArai | 0:98865e300cd5 | 7 | * https://os.mbed.com/users/kenjiArai/ |
kenjiArai | 0:98865e300cd5 | 8 | * Created: May 9th, 2020 |
kenjiArai | 0:98865e300cd5 | 9 | * Revised: May 10th, 2020 |
kenjiArai | 0:98865e300cd5 | 10 | */ |
kenjiArai | 0:98865e300cd5 | 11 | |
kenjiArai | 0:98865e300cd5 | 12 | #define EXAMPLE_NUMBER 0 // select 0 to 3 |
kenjiArai | 0:98865e300cd5 | 13 | |
kenjiArai | 0:98865e300cd5 | 14 | //----------------- You don't need any modification ---------------------------- |
kenjiArai | 0:98865e300cd5 | 15 | #if EXAMPLE_NUMBER == 0 |
kenjiArai | 0:98865e300cd5 | 16 | # define EXAMPLE_0 |
kenjiArai | 0:98865e300cd5 | 17 | #elif EXAMPLE_NUMBER == 1 |
kenjiArai | 0:98865e300cd5 | 18 | # define EXAMPLE_1 |
kenjiArai | 0:98865e300cd5 | 19 | #elif EXAMPLE_NUMBER == 2 |
kenjiArai | 0:98865e300cd5 | 20 | # define EXAMPLE_2 |
kenjiArai | 0:98865e300cd5 | 21 | #elif EXAMPLE_NUMBER == 3 |
kenjiArai | 0:98865e300cd5 | 22 | # define EXAMPLE_3 |
kenjiArai | 0:98865e300cd5 | 23 | #else |
kenjiArai | 0:98865e300cd5 | 24 | # error " Please set 0 to 3 number for EXAMPLE_NUMBER!!" |
kenjiArai | 0:98865e300cd5 | 25 | #endif |