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
Diff: select_example.h
- Revision:
- 0:98865e300cd5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/select_example.h Sun May 10 08:15:36 2020 +0000 @@ -0,0 +1,25 @@ +/* + * Mbed Application program + * SoftSerial(also BufferedSoftSerial) function test programs + * + * Copyright (c) 2020 Kenji Arai / JH1PJL + * http://www7b.biglobe.ne.jp/~kenjia/ + * https://os.mbed.com/users/kenjiArai/ + * Created: May 9th, 2020 + * Revised: May 10th, 2020 + */ + +#define EXAMPLE_NUMBER 0 // select 0 to 3 + +//----------------- You don't need any modification ---------------------------- +#if EXAMPLE_NUMBER == 0 +# define EXAMPLE_0 +#elif EXAMPLE_NUMBER == 1 +# define EXAMPLE_1 +#elif EXAMPLE_NUMBER == 2 +# define EXAMPLE_2 +#elif EXAMPLE_NUMBER == 3 +# define EXAMPLE_3 +#else +# error " Please set 0 to 3 number for EXAMPLE_NUMBER!!" +#endif \ No newline at end of file