Simple test program to get familiar with functionality of MBED RTOS on ST Nucleo-F411RE. Tasks for LED blinking, user button, temperature measurement with DS1620, temperature measurement with internal temperature sensor of ST32F411RE, ultrasonic distance measurement and displaying result on 16x2 TextLCD.

Dependencies:   DS1620_improved TextLCD_improved mbed-rtos mbed

Committer:
Jan Tetour
Date:
Fri Dec 18 20:00:56 2015 +0100
Revision:
18:be0130c42925
Parent:
17:94c385ff2641
Minor formatting changes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jan Tetour 18:be0130c42925 1 /*
Jan Tetour 18:be0130c42925 2 * TSK_DIST.H
Jan Tetour 18:be0130c42925 3 */
dzoni 9:645f0e517017 4 #ifndef TSK_DIST_H
dzoni 9:645f0e517017 5 #define TSK_DIST_H
dzoni 9:645f0e517017 6
dzoni 9:645f0e517017 7 struct dist_data_struct {
dzoni 9:645f0e517017 8 uint32_t timerTicks;
dzoni 9:645f0e517017 9 float distance;
dzoni 9:645f0e517017 10 };
dzoni 9:645f0e517017 11
dzoni 9:645f0e517017 12 extern struct dist_data_struct dist_data;
dzoni 9:645f0e517017 13
dzoni 17:94c385ff2641 14 extern uint32_t initDist(void const *args);
dzoni 9:645f0e517017 15 extern void dist_thread(void const *args);
dzoni 9:645f0e517017 16
dzoni 9:645f0e517017 17 #endif