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
tsk_temp.h@18:be0130c42925, 2015-12-18 (annotated)
- Committer:
- Jan Tetour
- Date:
- Fri Dec 18 20:00:56 2015 +0100
- Revision:
- 18:be0130c42925
- Parent:
- 11:e89f89c0920b
Minor formatting changes.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jan Tetour | 18:be0130c42925 | 1 | /* |
| Jan Tetour | 18:be0130c42925 | 2 | * TSK_TEMP.H |
| Jan Tetour | 18:be0130c42925 | 3 | */ |
| dzoni | 9:645f0e517017 | 4 | #ifndef TSK_TEMP_H |
| dzoni | 9:645f0e517017 | 5 | #define TSK_TEMP_H |
| dzoni | 9:645f0e517017 | 6 | |
| dzoni | 9:645f0e517017 | 7 | struct temp_data_struct { |
| dzoni | 9:645f0e517017 | 8 | uint32_t temp_raw; |
| dzoni | 9:645f0e517017 | 9 | float temperature; |
| dzoni | 9:645f0e517017 | 10 | }; |
| dzoni | 9:645f0e517017 | 11 | |
| dzoni | 9:645f0e517017 | 12 | extern struct temp_data_struct temp_data; |
| dzoni | 9:645f0e517017 | 13 | |
| dzoni | 11:e89f89c0920b | 14 | extern uint32_t initDS1620Temp(void const *args); |
| dzoni | 9:645f0e517017 | 15 | extern void temp_thread(void const *args); |
| dzoni | 9:645f0e517017 | 16 | |
| dzoni | 9:645f0e517017 | 17 | #endif |