void InitialProcTask(void) { TaskContext* pTask; procStackPosition = (u32)__sfe( "CSTACK" ) + 1024; // Allocate 1K for the Process procStackPosition -= sizeof(TaskContext); pTask = (TaskContext*) procStackPosition; pTask->EntryPoint = (u32)SendImage; pTask->R0 = 0x00; pTask->R1 = 0x01; pTask->R2 = 0x02; pTask->R3 = 0x03; pTask->R4 = 0x04; pTask->R5 = 0x05; pTask->R6 = 0x06; pTask->R7 = 0x07; pTask->R8 = 0x08; pTask->R9 = 0x09; pTask->R10 = 0x10; pTask->R11 = 0x11; pTask->R12 = 0x12; pTask->xPSR = 0x01000000; nextTaskStack = 0; currentTaskStack = 0; }
#ifdef ID_TRNG #pragma weak TRNG_Handler = Dummy_Handler #endif /* Exception Table */ #pragma language = extended #pragma segment = "CSTACK" /* The name "__vector_table" has special meaning for C-SPY: */ /* it is where the SP start value is found, and the NVIC vector */ /* table register (VTOR) is initialized to this address if != 0 */ #pragma section = ".intvec" #pragma location = ".intvec" const DeviceVectors __vector_table[] = { (void*) __sfe("CSTACK"), (void*) Reset_Handler, (void*) NMI_Handler, (void*) HardFault_Handler, (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) SVC_Handler, (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) PendSV_Handler, (void*) SysTick_Handler,
#ifdef ID_TRNG #pragma weak TRNG_Handler = Dummy_Handler #endif /* Exception Table */ #pragma language = extended #pragma segment = "CSTACK" /* The name "__vector_table" has special meaning for C-SPY: */ /* it is where the SP start value is found, and the NVIC vector */ /* table register (VTOR) is initialized to this address if != 0 */ #pragma section = ".intvec" #pragma location = ".intvec" const DeviceVectors __vector_table[] = { __sfe("CSTACK"), (void*) Reset_Handler, (void*) NMI_Handler, (void*) HardFault_Handler, (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) SVC_Handler, (void*) (0UL), /* Reserved */ (void*) (0UL), /* Reserved */ (void*) PendSV_Handler, (void*) SysTick_Handler,