Write a program using FreeRTOS that performs the following: The program has three tasks: TxTask1, TxTask2, RxTask The program has one global counter (an unsigned integer): globalCount The program has one queue that is shared by all of the tasks: numberQueue numberQueue should be sized so that it can hold up to 10 unsigned integers at a time TxTask1 and TxTask 2 perform the same function: they place the current value of globalCount in the numberQueue queue, print out the current value of globalCount, and increment globalCount by 1 each time, then wait 500 ms before doing the same operation again. RxTask should retrieve numbers from numberQueue, and print the value of the number retrieved from the queue When the printf() function in C is used on an embedded system, it is usually connected to a UART or other communications interface. This hardware interface is a shared among all of the tasks, and must be protected appropriately.
- 粉丝: 2
- 资源: 6
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助