static void prvSetupHardware( void ) { /* Set up SPI for display of speed, distance, temperature and total time*/ setup_UART1(); initialize_CLS(); setup_SPI2(); /* Set up switches for input triggers */ setup_switches(); /* Set up hbridge for the motor running */ set_hbridge(); /* Set up the input capture module to detect SA pulses of the motors */ setup_IC2(); setup_IC3(); /* Set I2C to read temperature from Pmod Tmp2 */ setup_I2C(); /* Configure corresponding interrupts */ configure_interrupts(); /* Configure the hardware for maximum performance. */ vHardwareConfigurePerformance(); /* Setup to use the external interrupt controller. */ vHardwareUseMultiVectoredInterrupts(); portDISABLE_INTERRUPTS(); }
static void prvSetupHardware( void ) { /* Configure the hardware for maximum performance. */ vHardwareConfigurePerformance(); /* Setup to use the external interrupt controller. */ vHardwareUseMultiVectoredInterrupts(); portDISABLE_INTERRUPTS(); TRISBCLR = 0x3C00; // Set on-board LEDs as outputs }
static void prvSetupHardware( void ) { /* Configure the hardware for maximum performance. */ vHardwareConfigurePerformance(); /* Setup to use the external interrupt controller. */ vHardwareUseMultiVectoredInterrupts(); portDISABLE_INTERRUPTS(); /* Setup the digital IO for the LED's. */ vParTestInitialise(); }