Architecture cleanup

This commit is contained in:
StefansE
2026-03-29 16:26:57 +02:00
parent 21874c4455
commit 3bab7eda33
10 changed files with 41 additions and 57 deletions

View File

@@ -7,8 +7,8 @@
#include <ws2812_drv.h>
#include "stm32f1xx_hal.h"
#include "tim.h"
extern htim2;
static void set_byte(uint32_t pos, uint8_t value);
@@ -74,7 +74,7 @@ static void set_byte(uint32_t pos, uint8_t value)
void ws2812_wait(void){
while(HAL_TIM_GetChannelState(&htim2, TIM_CHANNEL_1)){}
while(HAL_TIM_GetChannelState(&htim2, (uint32_t) TIM_CHANNEL_1)){}
}