[WIP] Add syntax check for rust and C\C++ code (#108)
* proof of concept * fix syntax for rust and add auto fix syntax * fix syntax for C * fix bug with files owner * add information to wiki * try to add ci * format code from master * even more format fixes * change docker to docker-compose * Exclude ./target_*/build directories from format check * Run rustfmt only on project files * add ulimit setup for long clang list * merge * fix rustfmt, exclude target Inc directory * sync with master * abspath Co-authored-by: aanper <mail@s3f.ru> Co-authored-by: Vadim Kaushan <admin@disasm.info>
This commit is contained in:
+19
-10
@@ -38,10 +38,7 @@ extern "C" {
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN ET */
|
||||
|
||||
typedef enum {
|
||||
TimerEventInputCapture,
|
||||
TimerEventEndOfPulse
|
||||
} TimerEvent;
|
||||
typedef enum { TimerEventInputCapture, TimerEventEndOfPulse } TimerEvent;
|
||||
|
||||
/* USER CODE END ET */
|
||||
|
||||
@@ -55,14 +52,14 @@ typedef enum {
|
||||
|
||||
/* USER CODE END EM */
|
||||
|
||||
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
|
||||
void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim);
|
||||
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
void Error_Handler(void);
|
||||
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
void register_tim8_callback_ch2(void(*callback)(uint16_t ccr, TimerEvent tim_event));
|
||||
void register_tim8_callback_ch2(void (*callback)(uint16_t ccr, TimerEvent tim_event));
|
||||
|
||||
/* USER CODE END EFP */
|
||||
|
||||
@@ -139,12 +136,24 @@ void register_tim8_callback_ch2(void(*callback)(uint16_t ccr, TimerEvent tim_eve
|
||||
#define EM_PIN_GPIO_Port RFID_OUT_GPIO_Port
|
||||
#define EM_PIN_Pin RFID_OUT_Pin
|
||||
|
||||
#define MISO_PIN GpioPin{.port = GPIOC, .pin = GPIO_PIN_11}
|
||||
#define MISO_PIN \
|
||||
GpioPin { \
|
||||
.port = GPIOC, .pin = GPIO_PIN_11 \
|
||||
}
|
||||
// #define MOSI_PIN 11
|
||||
#define SS_PIN GpioPin{.port = CC1101_CS_GPIO_Port, .pin = CC1101_CS_Pin}
|
||||
#define SS_PIN \
|
||||
GpioPin { \
|
||||
.port = CC1101_CS_GPIO_Port, .pin = CC1101_CS_Pin \
|
||||
}
|
||||
//2 main, 5 remote, 3 M16
|
||||
#define GDO2 GpioPin{.port = NULL, .pin = 0}
|
||||
#define GDO0 GpioPin{.port = CC1101_G0_GPIO_Port, .pin = CC1101_G0_Pin}
|
||||
#define GDO2 \
|
||||
GpioPin { \
|
||||
.port = NULL, .pin = 0 \
|
||||
}
|
||||
#define GDO0 \
|
||||
GpioPin { \
|
||||
.port = CC1101_G0_GPIO_Port, .pin = CC1101_G0_Pin \
|
||||
}
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user