aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/sensor.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-11 14:27:53 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-11 14:27:53 +0200
commit5b1f94522624e18fe9fd94478ada1c8d8997b747 (patch)
treed9a34d21a620a700b9fb0dbf5ba4cef59fb44683 /stm32f091/sensor.c
parent687767404ede06182a5d1f09ab3b7c66ba5f4d13 (diff)
more WIP, untested i2c but usart2 works
Diffstat (limited to 'stm32f091/sensor.c')
-rw-r--r--stm32f091/sensor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stm32f091/sensor.c b/stm32f091/sensor.c
index fc2fe2a..04181cf 100644
--- a/stm32f091/sensor.c
+++ b/stm32f091/sensor.c
@@ -2,7 +2,7 @@
#include <task.h>
#include <stm32f0xx_hal.h>
-#include "main.h"
+#include "setup.h"
#include "sensor.h"
#include "backlog.h"
@@ -11,6 +11,8 @@
#define REG_HUM ((uint8_t)(0xF5))
uint8_t ws_sensor_temperature() {
+ HAL_UART_Transmit(&huart2, (uint8_t * const) "hello world!", 13, 100);
+ return 0;
uint8_t buf[12];
int16_t val;
float temp_c;