summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyustli <[email protected]>2023-03-16 08:28:19 +0800
committertyustli <[email protected]>2023-03-16 08:28:19 +0800
commitfabe86362b0cf914a80f27023775291ffabe9bbc (patch)
tree2590918a2069c3cc02c74ee637896c3818a53085
parentb443851980a3ef82ed234faa9af3a1639fa6a0fe (diff)
fix HAL_Delay no effect bug on st platform
-rw-r--r--hw/bsp/stm32f0/family.c1
-rw-r--r--hw/bsp/stm32f1/family.c1
-rw-r--r--hw/bsp/stm32f207nucleo/stm32f207nucleo.c1
-rw-r--r--hw/bsp/stm32f303disco/stm32f303disco.c1
-rw-r--r--hw/bsp/stm32f4/family.c1
-rw-r--r--hw/bsp/stm32f7/family.c1
-rw-r--r--hw/bsp/stm32g4/family.c1
-rw-r--r--hw/bsp/stm32h7/family.c1
-rw-r--r--hw/bsp/stm32l0/family.c1
-rw-r--r--hw/bsp/stm32l0538disco/stm32l0538disco.c1
-rw-r--r--hw/bsp/stm32l4/family.c1
-rw-r--r--hw/bsp/stm32u5/family.c1
-rw-r--r--hw/bsp/stm32wb/family.c1
13 files changed, 13 insertions, 0 deletions
diff --git a/hw/bsp/stm32f0/family.c b/hw/bsp/stm32f0/family.c
index 0765f361d..884208fb1 100644
--- a/hw/bsp/stm32f0/family.c
+++ b/hw/bsp/stm32f0/family.c
@@ -143,6 +143,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32f1/family.c b/hw/bsp/stm32f1/family.c
index 61b40badd..6f0471096 100644
--- a/hw/bsp/stm32f1/family.c
+++ b/hw/bsp/stm32f1/family.c
@@ -129,6 +129,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32f207nucleo/stm32f207nucleo.c b/hw/bsp/stm32f207nucleo/stm32f207nucleo.c
index 619c90d68..d77643661 100644
--- a/hw/bsp/stm32f207nucleo/stm32f207nucleo.c
+++ b/hw/bsp/stm32f207nucleo/stm32f207nucleo.c
@@ -191,6 +191,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32f303disco/stm32f303disco.c b/hw/bsp/stm32f303disco/stm32f303disco.c
index 33552bc07..940c49d26 100644
--- a/hw/bsp/stm32f303disco/stm32f303disco.c
+++ b/hw/bsp/stm32f303disco/stm32f303disco.c
@@ -193,6 +193,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32f4/family.c b/hw/bsp/stm32f4/family.c
index 674058f50..93ab5bb35 100644
--- a/hw/bsp/stm32f4/family.c
+++ b/hw/bsp/stm32f4/family.c
@@ -180,6 +180,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32f7/family.c b/hw/bsp/stm32f7/family.c
index 536eb0554..88cba2c7d 100644
--- a/hw/bsp/stm32f7/family.c
+++ b/hw/bsp/stm32f7/family.c
@@ -293,6 +293,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32g4/family.c b/hw/bsp/stm32g4/family.c
index 32c46b7d8..f3ba54576 100644
--- a/hw/bsp/stm32g4/family.c
+++ b/hw/bsp/stm32g4/family.c
@@ -167,6 +167,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32h7/family.c b/hw/bsp/stm32h7/family.c
index 28a2568fa..65ffc8ef4 100644
--- a/hw/bsp/stm32h7/family.c
+++ b/hw/bsp/stm32h7/family.c
@@ -251,6 +251,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler(void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32l0/family.c b/hw/bsp/stm32l0/family.c
index 80a7c7435..dcd71a513 100644
--- a/hw/bsp/stm32l0/family.c
+++ b/hw/bsp/stm32l0/family.c
@@ -141,6 +141,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32l0538disco/stm32l0538disco.c b/hw/bsp/stm32l0538disco/stm32l0538disco.c
index f0f1d028b..f4c38d150 100644
--- a/hw/bsp/stm32l0538disco/stm32l0538disco.c
+++ b/hw/bsp/stm32l0538disco/stm32l0538disco.c
@@ -183,6 +183,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32l4/family.c b/hw/bsp/stm32l4/family.c
index 19b84c086..d661613af 100644
--- a/hw/bsp/stm32l4/family.c
+++ b/hw/bsp/stm32l4/family.c
@@ -204,6 +204,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32u5/family.c b/hw/bsp/stm32u5/family.c
index 9bc94cfa3..ee8a5d7ff 100644
--- a/hw/bsp/stm32u5/family.c
+++ b/hw/bsp/stm32u5/family.c
@@ -179,6 +179,7 @@ int board_uart_write(void const *buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler(void)
{
+ HAL_IncTick();
system_ticks++;
}
diff --git a/hw/bsp/stm32wb/family.c b/hw/bsp/stm32wb/family.c
index 9f1f46f4d..525d637ea 100644
--- a/hw/bsp/stm32wb/family.c
+++ b/hw/bsp/stm32wb/family.c
@@ -169,6 +169,7 @@ int board_uart_write(void const * buf, int len)
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
+ HAL_IncTick();
system_ticks++;
}