blob: 9235f1b7ca24bd6a0992253de84e4add936bb75e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <FreeRTOS.h>
#include <task.h>
#include <stm32f0xx_hal.h>
#include "main.h"
#include "setup.h"
#include "sensor.h"
#include "backlog.h"
int main() {
ws_io_setup();
HAL_GPIO_Init(GPIOA, &(GPIO_InitTypeDef) {
.Pin = GPIO_PIN_5,
.Mode = GPIO_MODE_OUTPUT_PP,
.Pull = GPIO_NOPULL
});
ws_backlog_alloc(24 * 60);
ws_sensor_read();
xTaskCreate(ws_sensor_read_task, "sensor", 128, NULL, 1, NULL);
vTaskStartScheduler();
}
|