I'm trying to create an application with multiple tasks.
I try to explain my aim using only two task, for semplicity.
I want a first task to connect the CC3200 to my wlan network
and periodically checks if there is connection (so it has highest priority)
than there is a second task (even more than one) which collect information from sensors,
for example it collect temperature measurement.
The tasks are independent and doesn't communicate each other.
I did it this way:
in main function I have all initializations (variables, sensors, terminal)
and then I have:
osi_TaskCreate(ConnectionTask, (signed char*)"ConnectionTask", \
2048, NULL, \
2, NULL );
osi_TaskCreate(TemperatureTask, (signed char*)"TASK1",\
1024, NULL,
1, NULL );
ConnectionTask starts a cycle every 3 minutes to check the connection
TemperatureTask starts a cycle every minute to save collected data.
Do I need a semaphore to do this?