![](/media/cache/group/logo-cachanx.jpg.50x50_q85.jpg)
Purpose: Simple application example with 2 threads communicating 5-byte buffers through a Mail event-object.
Dependencies: IHM_V2
Fork of mbed-os-example-mbed5-blinky by
Purpose: Simple application example with 2 threads communicating 5-byte buffers through a Mail event-object. Target: L432KC / Nboard (from IUT-Cachan) Tested: YES (2019-01-09) Author: Jacques-Olivier Klein - IUT de CACHAN Date: 2018-02-10 rev. 2019-01-09 OS_STACK_SIZE=4096 Libraries: mbed-os rev5345:c966348(03jan2019) + IHMV2 (from IUT-Cachan) rev6:ad91067
Diff: main.cpp
- Revision:
- 28:9a6aff2af525
- Parent:
- 27:da71f99ce831
- Child:
- 29:e8a6f4ab0fd5
--- a/main.cpp Sat Feb 10 22:10:15 2018 +0000 +++ b/main.cpp Sun Feb 11 09:05:16 2018 +0000 @@ -23,21 +23,15 @@ Mail<Mail_Buffer_T, MY_MAIL_NBER_OF_BUFFER> my_mail_box; -Ticker my_timer; -Thread thread2; -Thread thread3; -Thread thread_Semaphore; -Thread thread_rx_q(osPriorityNormal,DEFAULT_STACK_SIZE ); Thread Thread_TxMail; Thread Thread_RxMail(osPriorityNormal,500); -EventQueue the_event_queue; Semaphore mysemaphore(0); int main(void) { ihm.LCD_clear(); ihm.LCD_printf("Mail-5B-tx-rx-%s %s",__DATE__,__TIME__); - printf("mbed-os-mail-5-Bytes-tx-rx-%s %s\n\r",__DATE__,__TIME__); + printf("\n\rmbed-os-mail-5-Bytes-tx-rx-%s %s\n\r",__DATE__,__TIME__); printf("DEFAULT_STACK_SIZE:%d\n\r", DEFAULT_STACK_SIZE); Thread_TxMail.start(TxMail);