int main() { // Start the CPU cycle counter (read with CYCCNT) DWT_CTRL |= DWT_CTRL_CYCEN; // Populate unique id populateUniqueID(); // Initialize modules Core_Init(); // USB_Init(); fprintf(stdout, "Begin Main at %u.\n", time_ms); //xTaskCreate( task, ( signed char * ) "task", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate( rs232_task, ( signed char * ) "rs232 test", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate( adc_task, ( signed char * ) "adc test", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); xTaskCreate( camera_task, ( signed char * ) "camera test", 10000, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate( u8_task, ( signed char * ) "u8 status test", 10000, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate(sram_check_task, ( signed char * ) "sram test", 4000, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate(sram_check_brief_task, ( signed char * ) "sram test (fast)", 4000, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); // Start the scheduler vTaskStartScheduler(); // Should never get here while(1); }
int main() { // Start the CPU cycle counter (read with CYCCNT) DWT_CTRL |= DWT_CTRL_CYCEN; // Populate unique id populateUniqueID(); // Initialize modules Core_Init(); // USB_Init(); //xTaskCreate( task, ( signed char * ) "task", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate( rs232_task, ( signed char * ) "rs232 test", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); //xTaskCreate( adc_task, ( signed char * ) "adc test", configMINIMAL_STACK_SIZE + 200, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); xTaskCreate( camera_task, ( signed char * ) "camera test", 4000, ( void * ) NULL, tskIDLE_PRIORITY + 1, NULL ); // Start the scheduler vTaskStartScheduler(); // Should never get here while(1); }