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.
Moving this thread to the "Embedded" category [1]. I would suggest adding more information to this post as you are limited your scope of people who might be able to help. The more information you provide as to hardware and software setup, what device you are working on, etc... people might be able to recreate your issue and possible work toward a solution.
[1]: https://community.arm.com/developer/ip-products/system/f/embedded-forum