FIX&ENH: rotary driver works!

ADD: three pins for current strength values

FIX: ADC1->ADC2

ENH: prepare for UART

FIX&ADD: add USART print, add extra_script to print floats to COM port #2

ADD: some func #2

Rebuild project structure

ADD: .clang-format file

ENG: use flag

ADD: USART1

FIX: .ioc

FIX: .ioc

ADD: debug script to angle value

ADD: gitlab-ci

ADD: gitlab CI

ADD: gitlab-ci

FIX: gitlab-ci

ADD&FIX: all sensors work! (or not?)
This commit is contained in:
vanyabeat 2024-01-17 19:33:35 +03:00
parent d1b0ed0858
commit 8157b41ea9
23 changed files with 673 additions and 339 deletions

View file

@ -29,8 +29,6 @@ extern "C" {
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include "stm32f4xx_ll_adc.h"
#include "stm32f4xx_ll_spi.h"
#include "stm32f4xx_ll_tim.h"
#include "stm32f4xx_ll_usart.h"
#include "stm32f4xx_ll_rcc.h"
@ -71,6 +69,12 @@ void Error_Handler(void);
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
#define SENSE3_Pin LL_GPIO_PIN_5
#define SENSE3_GPIO_Port GPIOC
#define SENSE2_Pin LL_GPIO_PIN_0
#define SENSE2_GPIO_Port GPIOB
#define SENSE1_Pin LL_GPIO_PIN_1
#define SENSE1_GPIO_Port GPIOB
#define AS5045_CS_Pin LL_GPIO_PIN_15
#define AS5045_CS_GPIO_Port GPIOB
#define EN_W_Pin LL_GPIO_PIN_6