Please follow the steps precisely in order to complete the objectives of the assignment. If you use the C++ FreeRTOS framework, it should make the assignment significantly easy.
producer task that takes
1 light sensor value every 1ms.
sensor queue.consumer task that pulls
the data off the sensor queue
printf("%i, %i\n",
time, light)"xEventGroupSetBits()watchdog task that
monitors the operation of the two tasks.
"adc.h" by not using ADC polling
mode.xSemaphoreTake(), and then read
the value.What you created is a "software watchdog". This means that in an event when a loop is stuck, or a task is frozen, you can save relevant information such that you can debug at a later time.
FreeRTOS的application assignment,布布扣,bubuko.com
FreeRTOS的application assignment
原文地址:http://www.cnblogs.com/gpuasic/p/3758570.html