TYBLE16 on os5 sample programs

Dependencies:   BME280 TextLCD nRF51_Vdd

Fork of TYBLE16_mbedlized_os5_BASE by Kenji Arai

Please refer following notebook.
/users/kenjiArai/notebook/tyble16-module-as-mbed-os-5-board-mbedlization/

Committer:
kenjiArai
Date:
Sun Apr 15 04:15:18 2018 +0000
Revision:
3:c0010c8ad17f
Parent:
2:47ad8c48224e
Separated Uart_Clinent & Uart_Server due to memory overflow

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 1:9011c83e4178 1 /*
kenjiArai 1:9011c83e4178 2 * AE-TYBLE16 Module example programs
kenjiArai 1:9011c83e4178 3 *
kenjiArai 1:9011c83e4178 4 * Copyright (c) 2018 Kenji Arai / JH1PJL
kenjiArai 1:9011c83e4178 5 * http://www.page.sannet.ne.jp/kenjia/index.html
kenjiArai 1:9011c83e4178 6 * https://os.mbed.com/users/kenjiArai/
kenjiArai 1:9011c83e4178 7 * Created: April 7th, 2018
kenjiArai 3:c0010c8ad17f 8 * Revised: April 15th, 2018
kenjiArai 1:9011c83e4178 9 */
kenjiArai 1:9011c83e4178 10
kenjiArai 1:9011c83e4178 11 /*
kenjiArai 1:9011c83e4178 12 You can select several examples as followings.
kenjiArai 1:9011c83e4178 13 0. 0_Blinky_LED
kenjiArai 1:9011c83e4178 14 LED Blinky
kenjiArai 1:9011c83e4178 15 1. 1_Check_RTC
kenjiArai 1:9011c83e4178 16 Check RTC function
kenjiArai 1:9011c83e4178 17 -> Time is not so accurate because 32.768KHz is made by Internal RC osc.
kenjiArai 1:9011c83e4178 18 2. 2_EddyStoneBeacon
kenjiArai 1:9011c83e4178 19 Demonstration sample program EddyStone Beacon
kenjiArai 1:9011c83e4178 20 3. 3_Heart_Rate
kenjiArai 1:9011c83e4178 21 Demonstration sample program Heart Rate
kenjiArai 1:9011c83e4178 22 4. 4_RCBController
kenjiArai 1:9011c83e4178 23 Potential usage for Radio Controller (RCB Controller)
kenjiArai 1:9011c83e4178 24 5. 5_SDCard
kenjiArai 1:9011c83e4178 25 Demonstration sample program SD Card
kenjiArai 1:9011c83e4178 26 6. 6_Thermo
kenjiArai 1:9011c83e4178 27 Demonstration sample program Thermometer
kenjiArai 1:9011c83e4178 28 -> If you have I2C temperature sensor, you can connect it.
kenjiArai 1:9011c83e4178 29 -> LCD can display the data.
kenjiArai 1:9011c83e4178 30 7 & 8. 7_Uart_Client & 8_Uart_Server
kenjiArai 1:9011c83e4178 31 Uart Client(Central) and Server(Peripheral)
kenjiArai 1:9011c83e4178 32 -> PLEASE SET VCOM BAUDRATE IS 115200
kenjiArai 3:c0010c8ad17f 33 https://os.mbed.com/users/kenjiArai/
kenjiArai 3:c0010c8ad17f 34 code/TYBLE16_mbedlized_os5_several_examples_2/
kenjiArai 1:9011c83e4178 35 9. 9_Monitor
kenjiArai 1:9011c83e4178 36 Check nRF51 CPU functions
kenjiArai 1:9011c83e4178 37 */
kenjiArai 3:c0010c8ad17f 38 #define EXAMPLE_NUMBER 0 // select 0 to 6 & 9
kenjiArai 1:9011c83e4178 39
kenjiArai 1:9011c83e4178 40 //----------------- You don't need any modification ----------------------------
kenjiArai 1:9011c83e4178 41 #if EXAMPLE_NUMBER == 0
kenjiArai 1:9011c83e4178 42 #define EXAMPLE_0_BLINKY_LED
kenjiArai 1:9011c83e4178 43 #ifdef EXAMPLE_0_BLINKY_LED
kenjiArai 1:9011c83e4178 44 #include "0_Blinky_LED/main.cpp"
kenjiArai 1:9011c83e4178 45 #endif
kenjiArai 1:9011c83e4178 46 #elif EXAMPLE_NUMBER == 1
kenjiArai 1:9011c83e4178 47 #define EXAMPLE_1_CHECK_RTC
kenjiArai 1:9011c83e4178 48 #ifdef EXAMPLE_1_CHECK_RTC
kenjiArai 1:9011c83e4178 49 #include "1_Check_RTC/main.cpp"
kenjiArai 1:9011c83e4178 50 #endif
kenjiArai 1:9011c83e4178 51 #elif EXAMPLE_NUMBER == 2
kenjiArai 1:9011c83e4178 52 #define EXAMPLE_2_EDDYSTONE_BEACON
kenjiArai 1:9011c83e4178 53 #ifdef EXAMPLE_2_EDDYSTONE_BEACON
kenjiArai 1:9011c83e4178 54 #include "2_EddyStoneBeacon/main.cpp"
kenjiArai 1:9011c83e4178 55 #endif
kenjiArai 1:9011c83e4178 56 #elif EXAMPLE_NUMBER == 3
kenjiArai 1:9011c83e4178 57 #define EXAMPLE_3_HEART_RATE
kenjiArai 1:9011c83e4178 58 #ifdef EXAMPLE_3_HEART_RATE
kenjiArai 1:9011c83e4178 59 #include "3_Heart_Rate/main.cpp"
kenjiArai 1:9011c83e4178 60 #endif
kenjiArai 1:9011c83e4178 61 #elif EXAMPLE_NUMBER == 4
kenjiArai 1:9011c83e4178 62 #define EXAMPLE_4_RCB_CONTROLLER
kenjiArai 1:9011c83e4178 63 #ifdef EXAMPLE_4_RCB_CONTROLLER
kenjiArai 1:9011c83e4178 64 #include "4_RCBController/main.cpp"
kenjiArai 1:9011c83e4178 65 #endif
kenjiArai 1:9011c83e4178 66 #elif EXAMPLE_NUMBER == 5
kenjiArai 1:9011c83e4178 67 #define EXAMPLE_5_SDCARD
kenjiArai 1:9011c83e4178 68 #ifdef EXAMPLE_5_SDCARD
kenjiArai 1:9011c83e4178 69 #include "5_SDCard/main.cpp"
kenjiArai 1:9011c83e4178 70 #endif
kenjiArai 1:9011c83e4178 71 #elif EXAMPLE_NUMBER == 6
kenjiArai 1:9011c83e4178 72 #define EXAMPLE_6_THERMO
kenjiArai 1:9011c83e4178 73 #ifdef EXAMPLE_6_THERMO
kenjiArai 1:9011c83e4178 74 #include "6_Thermo/main.cpp"
kenjiArai 1:9011c83e4178 75 #endif
kenjiArai 1:9011c83e4178 76 #elif EXAMPLE_NUMBER == 7
kenjiArai 3:c0010c8ad17f 77 #error "Please use TYBLE16_mbedlized_os5_several_examples_2nd"
kenjiArai 1:9011c83e4178 78 #elif EXAMPLE_NUMBER == 8
kenjiArai 3:c0010c8ad17f 79 #error "Please use TYBLE16_mbedlized_os5_several_examples_2nd"
kenjiArai 1:9011c83e4178 80 #elif EXAMPLE_NUMBER == 9
kenjiArai 1:9011c83e4178 81 #define EXAMPLE_9_MONITOR
kenjiArai 1:9011c83e4178 82 #ifdef EXAMPLE_9_MONITOR
kenjiArai 1:9011c83e4178 83 #include "9_Monitor/main.cpp"
kenjiArai 1:9011c83e4178 84 #endif
kenjiArai 1:9011c83e4178 85 #else
kenjiArai 1:9011c83e4178 86 #error " Please set 0 to 9 number for EXAMPLE_NUMBER!!"
kenjiArai 1:9011c83e4178 87 #endif