int main( void ) { /* See http://www.freertos.org/Microchip_CEC1302_ARM_Cortex-M4F_Low_Power_Demo.html */ /* Configure the hardware ready to run the demo. */ prvSetupHardware(); /* The configCREATE_LOW_POWER_DEMO setting is described at the top of this file. */ #if( configCREATE_LOW_POWER_DEMO == 1 ) { /* The low power demo also demonstrated aggregated interrupts, so clear the interrupt control register to disable the alternative NVIC vectors. */ mainEC_INTERRUPT_CONTROL = pdFALSE; main_low_power(); } #else { /* The full demo also demonstrated disaggregated interrupts, so set the interrupt control register to enable the alternative NVIC vectors. */ mainEC_INTERRUPT_CONTROL = pdTRUE; main_full(); } #endif /* Should not get here. */ return 0; }
int main( void ) { /* * See the following link for instructions: * http://www.freertos.org/EFM32-Giant-Gecko-Pearl-Gecko-tickless-RTOS-demo.html */ /* Configure the hardware ready to run the demo. */ prvSetupHardware(); /* The mainCREATE_LOW_POWER_DEMO setting is described at the top of this file. */ #if( configCREATE_LOW_POWER_DEMO != 0 ) { main_low_power(); } #else { main_full(); } #endif /* Should not get here. */ return 0; }
void main( void ) { lcd_initialize(); lcd_display( LCD_LINE1, "FreeRTOS" ); /* The configCREATE_LOW_POWER_DEMO setting is described in FreeRTOSConfig.h. */ #if configCREATE_LOW_POWER_DEMO == 1 { lcd_display( LCD_LINE2, "LP Demo" ); main_low_power(); } #else { lcd_display( LCD_LINE2, "Ful Demo" ); main_full(); } #endif }
/* See the documentation page for this demo on the FreeRTOS.org web site for full information - including hardware setup requirements. */ int main( void ) { /* Prepare the hardware to run this demo. */ prvSetupHardware(); /* The configCREATE_LOW_POWER_DEMO setting is described at the top of this file. */ #if configCREATE_LOW_POWER_DEMO == 1 { main_low_power(); } #else { main_full(); } #endif return 0; }
void main( void ) { /* Call the Renesas provided setup. */ vHardwareSetup(); lcd_initialize(); lcd_display( LCD_LINE1, "FreeRTOS" ); /* The configCREATE_LOW_POWER_DEMO setting is described in FreeRTOSConfig.h. */ #if configCREATE_LOW_POWER_DEMO == 1 { lcd_display( LCD_LINE2, "LP Demo" ); main_low_power(); } #else { lcd_display( LCD_LINE2, "Ful Demo" ); main_full(); } #endif }
int main( void ) { /* Configure the hardware ready to run the demo. */ prvSetupHardware(); /* The configCREATE_LOW_POWER_DEMO setting is described at the top of this file. */ #if( configCREATE_LOW_POWER_DEMO == 1 ) { main_low_power(); } #else { main_full(); } #endif /* Should not get here. */ return 0; }