Testing 1 blue pill
Dependencies: mbed mbed-rtos TextLCD
Diff: main.cpp
- Revision:
- 23:07a368f2cdb1
- Parent:
- 22:fc2186b610b5
- Child:
- 24:728de4bf961e
--- a/main.cpp Sat Feb 16 12:43:26 2019 +0000 +++ b/main.cpp Sat Feb 16 15:19:21 2019 +0000 @@ -1,8 +1,7 @@ #include "SETUP.hpp" -#define Debounce_Time 50 -INTERFACE INTERFACE(20); -//Thread Functions + +//Thread signal functions void up_signal_rise(){up_thread.signal_set(1);} //Sets the up thread to operate void down_signal_rise(){down_thread.signal_set(1);} //Sets the down thread to operate void start_signal_rise(){start_stop_thread.signal_set(1);} //Sets the start thread to operate @@ -139,7 +138,7 @@ function_thread.start(Function_Selection_thread_function);//Function interface thread select_thread.start(Selection_thread_function);//Start interface thread - osThreadSetPriority(osThreadGetId(), osPriorityHigh); + osThreadSetPriority(osThreadGetId(), osPriorityHigh);//This is done to make sure the code for the stepper motor is the highest priority to ensure correct rotations of the stepper motor while(1)// Main code in a main thread {