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_led.h@18:be0130c42925, 2015-12-18 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jan Tetour | 18:be0130c42925 | 1 | /* |
Jan Tetour | 18:be0130c42925 | 2 | * TSK_LED.H |
Jan Tetour | 18:be0130c42925 | 3 | */ |
dzoni | 9:645f0e517017 | 4 | #ifndef TSK_LED_H |
dzoni | 9:645f0e517017 | 5 | #define TSK_LED_H |
dzoni | 9:645f0e517017 | 6 | |
dzoni | 9:645f0e517017 | 7 | struct led_flash_times_struct { |
dzoni | 9:645f0e517017 | 8 | uint32_t on_time; |
dzoni | 9:645f0e517017 | 9 | uint32_t off_time; |
dzoni | 9:645f0e517017 | 10 | }; |
dzoni | 9:645f0e517017 | 11 | |
dzoni | 9:645f0e517017 | 12 | extern struct led_flash_times_struct led_flash_times; |
dzoni | 9:645f0e517017 | 13 | |
dzoni | 17:94c385ff2641 | 14 | extern uint32_t initLed(void const *args); |
dzoni | 11:e89f89c0920b | 15 | extern void led_thread(void const *args); |
dzoni | 9:645f0e517017 | 16 | |
dzoni | 9:645f0e517017 | 17 | #endif |