NRF: receive, ntp, Data to Sd-card working

Dependencies:   F7_Ethernet mbed BSP_DISCO_F746NG Test_Mainboard SDFileSystem RF24

Committer:
lowlowry
Date:
Sun Jun 20 13:48:06 2021 +0000
Revision:
4:5ecb71f149bf
Parent:
0:d984976f1f1c
NRF: receive, ntp, Data to Sd-card working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
leo44 0:d984976f1f1c 1 #ifndef OS_TCB_H
leo44 0:d984976f1f1c 2 #define OS_TCB_H
leo44 0:d984976f1f1c 3
leo44 0:d984976f1f1c 4 /* Types */
leo44 0:d984976f1f1c 5 typedef char S8;
leo44 0:d984976f1f1c 6 typedef unsigned char U8;
leo44 0:d984976f1f1c 7 typedef short S16;
leo44 0:d984976f1f1c 8 typedef unsigned short U16;
leo44 0:d984976f1f1c 9 typedef int S32;
leo44 0:d984976f1f1c 10 typedef unsigned int U32;
leo44 0:d984976f1f1c 11 typedef long long S64;
leo44 0:d984976f1f1c 12 typedef unsigned long long U64;
leo44 0:d984976f1f1c 13 typedef unsigned char BIT;
leo44 0:d984976f1f1c 14 typedef unsigned int BOOL;
leo44 0:d984976f1f1c 15 typedef void (*FUNCP)(void);
leo44 0:d984976f1f1c 16 #define TCB_STACK_LR_OFFSET_BYTES (14*4) // prelast DWORD
leo44 0:d984976f1f1c 17 #define TCB_STACK_LR_OFFSET_DWORDS (14) // prelast DWORD
leo44 0:d984976f1f1c 18 #define TCB_STACK_R0_OFFSET_BYTES (1*4) // second DWORD
leo44 0:d984976f1f1c 19 #define TCB_STACK_R0_OFFSET_DWORDS (1) // second DWORD
leo44 0:d984976f1f1c 20
leo44 0:d984976f1f1c 21 typedef struct OS_TCB {
leo44 0:d984976f1f1c 22 /* General part: identical for all implementations. */
leo44 0:d984976f1f1c 23 U8 cb_type; /* Control Block Type */
leo44 0:d984976f1f1c 24 U8 state; /* Task state */
leo44 0:d984976f1f1c 25 U8 prio; /* Execution priority */
leo44 0:d984976f1f1c 26 U8 task_id; /* Task ID value for optimized TCB access */
leo44 0:d984976f1f1c 27 struct OS_TCB *p_lnk; /* Link pointer for ready/sem. wait list */
leo44 0:d984976f1f1c 28 struct OS_TCB *p_rlnk; /* Link pointer for sem./mbx lst backwards */
leo44 0:d984976f1f1c 29 struct OS_TCB *p_dlnk; /* Link pointer for delay list */
leo44 0:d984976f1f1c 30 struct OS_TCB *p_blnk; /* Link pointer for delay list backwards */
leo44 0:d984976f1f1c 31 U16 delta_time; /* Time until time out */
leo44 0:d984976f1f1c 32 U16 interval_time; /* Time interval for periodic waits */
leo44 0:d984976f1f1c 33 U16 events; /* Event flags */
leo44 0:d984976f1f1c 34 U16 waits; /* Wait flags */
leo44 0:d984976f1f1c 35 void **msg; /* Direct message passing when task waits */
leo44 0:d984976f1f1c 36
leo44 0:d984976f1f1c 37 /* Hardware dependant part: specific for CM processor */
leo44 0:d984976f1f1c 38 U8 stack_frame; /* Stack frame: 0=Basic, 1=Extended */
leo44 0:d984976f1f1c 39 U8 reserved1;
leo44 0:d984976f1f1c 40 U16 reserved2;
leo44 0:d984976f1f1c 41 U32 priv_stack; /* Private stack size in bytes */
leo44 0:d984976f1f1c 42 U32 tsk_stack; /* Current task Stack pointer (R13) */
leo44 0:d984976f1f1c 43 U32 *stack; /* Pointer to Task Stack memory block */
leo44 0:d984976f1f1c 44
leo44 0:d984976f1f1c 45 /* Library dependant part */
leo44 0:d984976f1f1c 46 #if defined (__CC_ARM) && !defined (__MICROLIB)
leo44 0:d984976f1f1c 47 /* A memory space for arm standard library. */
leo44 0:d984976f1f1c 48 U32 std_libspace[96/4];
leo44 0:d984976f1f1c 49 #endif
leo44 0:d984976f1f1c 50
leo44 0:d984976f1f1c 51 /* Task entry point used for uVision debugger */
leo44 0:d984976f1f1c 52 FUNCP ptask; /* Task entry address */
leo44 0:d984976f1f1c 53 } *P_TCB;
leo44 0:d984976f1f1c 54
leo44 0:d984976f1f1c 55 #endif