diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-11 14:27:53 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-11 14:27:53 +0200 |
commit | 5b1f94522624e18fe9fd94478ada1c8d8997b747 (patch) | |
tree | d9a34d21a620a700b9fb0dbf5ba4cef59fb44683 /stm32f091/main.c | |
parent | 687767404ede06182a5d1f09ab3b7c66ba5f4d13 (diff) |
more WIP, untested i2c but usart2 works
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(); |