diff options
Diffstat (limited to 'stm32f091/main.c')
-rw-r--r-- | stm32f091/main.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/stm32f091/main.c b/stm32f091/main.c index 61608a8..aec5869 100644 --- a/stm32f091/main.c +++ b/stm32f091/main.c @@ -1,25 +1,14 @@ #include <FreeRTOS.h> #include <task.h> #include <stm32f0xx_hal.h> -#include <stm32f0xx_hal_msp.h> #include "main.h" #include "setup.h" #include "sensor.h" #include "backlog.h" -I2C_HandleTypeDef hi2c1; -UART_HandleTypeDef huart2; - int main() { - HAL_Init(); - - SystemClock_Config(); - MX_GPIO_Init(); - MX_USART2_UART_Init(); - MX_I2C2_Init(); - - HAL_I2C_MspInit(&hi2c1); + ws_io_setup(); ws_backlog_alloc(24 * 60); ws_sensor_read(); |