/** * @brief vApplicationStackOverflowHook * @param Task Handler and Task Name * @retval None */ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName ) { /* This function will get called if a task overflows its stack. If the parameters are corrupt then inspect pxCurrentTCB to find which was the offending task. */ BRD_LEDOff(); ( void ) pxTask; ( void ) pcTaskName; for( ;; ); }
/*Initialise relevent hardware*/ void Hardware_init(void) { GPIO_InitTypeDef GPIO_InitStructure; unsigned short PrescalerValue; BRD_LEDInit(); //Initialise Blue LED BRD_LEDOff(); //Turn off Blue LED /* Initialise Joystick */ s4353096_joystick_init(); /* Configure D1 for output of square wave signal */ s4353096_pantilt_init(); s4353096_radio_init(); }
/** * @brief Hardware Initialisation. * @param None * @retval None */ void Hardware_init( void ) { portDISABLE_INTERRUPTS(); //Disable interrupts BRD_LEDInit(); //Initialise Blue LED BRD_LEDOff(); //Turn off Blue LED portENABLE_INTERRUPTS(); //Enable interrupts s4295255_sysmon_init(); //Initialise the system monitor }
/** * @brief Idle Application Task * @param None * @retval None */ void vApplicationIdleHook( void ) { static portTickType xLastTx = 0; BRD_LEDOff(); for (;;) { /* The idle hook simply prints the idle tick count, every second */ if ((xTaskGetTickCount() - xLastTx ) > (1000 / portTICK_RATE_MS)) { xLastTx = xTaskGetTickCount(); //debug_printf("IDLE Tick %d\n", xLastTx); /* Blink Alive LED */ // BRD_LEDToggle(); } } }
/** * @brief Application Tick Task. * @param None * @retval None */ void vApplicationTickHook( void ) { BRD_LEDOff(); }