setup rest blink

This commit is contained in:
andrey 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);

View File

@ -148,7 +148,24 @@
<Name>-U37FF71064E57343625581443 -O2254 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(1BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL08000 -FP0($$Device:STM32F103C6$Flash\STM32F10x_128.FLM) -WA0 -WE0 -WVCE4 -WS2710 -WM0 -WP2</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint/>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>123</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134241994</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>../Core/Src/main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\john103C6T6\../Core/Src/main.c\123</Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
<Ww>
<count>0</count>