diff --git a/common/main.c b/common/main.c index 95a0298a4b..05ce0e5096 100644 --- a/common/main.c +++ b/common/main.c @@ -27,6 +27,7 @@ #include "power_button.h" #include "powerdemo.h" #include "pwm.h" +#include "spi.h" #include "system.h" #include "task.h" #include "temp_sensor.h" @@ -118,6 +119,9 @@ int main(void) lpc_init(); uart_comx_enable(); #endif +#ifdef CONFIG_SPI + spi_init(); +#endif #ifdef CONFIG_PWM pwm_init(); #endif