setup rest blink

This commit is contained in:
2025-06-26 18:45:58 +03:00
parent a59091bfbd
commit c5ea733074
3 changed files with 20 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ typedef struct
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
#define reset_blink_delay 10
#define reset_blink_delay 50
#define rest_iter 10
extern void handle_command(char* cmd);
typedef void (*FunctionPointer)(void);

View File

@@ -120,7 +120,7 @@ int main(void)
MX_ADC1_Init();
/* USER CODE BEGIN 2 */
led_blink(GPIOC,GPIO_PIN_13,rest_iter,reset_blink_delay);
led_blink(GPIOC,13,rest_iter,reset_blink_delay);
MODBUS_FirstInit();
uint8_t uart_byte = 0;
RS_Receive_IT(&hmodbus1, &MODBUS_MSG);