I'm using FreeRTOS kernel. In my case i have two tasks. First is to print menu on the UART (with default baud rate) and the second task will take input from the user and will execute related function eg. task 1 shows menu (so user can see options and enter his choise) then let say, in task 2 user entered “s” then uart setting function will run and user can edit serial port configuration.
So, after changing the UART terminal setting like setting buad rate, parity bit etc control will goes to prvSetupHardware() and the edited settings will get applied.
But, after this the control is directly going to the task 2 which is for to get input from user and task 1 is not running which is supposed to be run.
So what can i do so that after execution of the function prvSetupHardware()control will go to task1 then task2.