Other Parts Discussed in Thread: SYSBIOS
文件位置:sysbios\knl\task.c
int Task_postInit(Task_Object *tsk, Error_Block *eb)函数中
readyQ数据类型如下:
为什么要用数组的方式访问呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
文件位置:sysbios\knl\task.c
int Task_postInit(Task_Object *tsk, Error_Block *eb)函数中
readyQ数据类型如下:
为什么要用数组的方式访问呢?
就是SDK内核代码,我没有进行任何修改、
下面我的测试代码:
#include <stdio.h>
typedef unsigned int uint32_t;
typedef unsigned char uint8_t;
uint8_t gBkidManger[10] = {0};
uint8_t gBkidInfo [10][8] = {0};
//uint32_t gBkidInfo [BLE_BKID_MAX_NUM] = {0};
typedef struct Queue_Elem {
struct Queue_Elem *volatile next;
struct Queue_Elem *volatile prev;
} Queue_Elem;
struct Task_Module_State {
Queue_Elem readyQ;
bool initDone;
char dummy;
};
int main(int argc, char *argv[])
{
struct Task_Module_State a;
Queue_Elem b;
b = &a.readyQ[0];
return 0;
}