static void prvSetupHardware( void ) { SystemCoreClockUpdate(); /* Disable the Watch Dog Timer */ MSS_WD_disable( ); /* Initialise the GPIO */ MSS_GPIO_init(); /* Set up GPIO for the LEDs. */ MSS_GPIO_config( MSS_GPIO_0 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_1 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_2 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_3 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_4 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_5 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_6 , MSS_GPIO_OUTPUT_MODE ); MSS_GPIO_config( MSS_GPIO_7 , MSS_GPIO_OUTPUT_MODE ); /* All LEDs start off. */ ulGPIOState = 0xffffffffUL; MSS_GPIO_set_outputs( ulGPIOState ); /* Setup the GPIO and the NVIC for the switch used in this simple demo. */ NVIC_SetPriority( GPIO8_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); NVIC_EnableIRQ( GPIO8_IRQn ); MSS_GPIO_config( MSS_GPIO_8, MSS_GPIO_INPUT_MODE | MSS_GPIO_IRQ_EDGE_NEGATIVE ); MSS_GPIO_enable_irq( MSS_GPIO_8 ); }
static void prvSetupHardware( void ) { SystemCoreClockUpdate(); /* Disable the Watch Dog Timer */ MSS_WD_disable( ); /* Configure the GPIO for the LEDs. */ vParTestInitialise(); /* ACE Initialization */ ACE_init(); /* Setup the GPIO and the NVIC for the switch used in this simple demo. */ NVIC_SetPriority( GPIO8_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); NVIC_EnableIRQ( GPIO8_IRQn ); MSS_GPIO_config( MSS_GPIO_8, MSS_GPIO_INPUT_MODE | MSS_GPIO_IRQ_EDGE_NEGATIVE ); MSS_GPIO_enable_irq( MSS_GPIO_8 ); }