Explorar o código

fix:修复luat_gpio_pulse异常优化

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
73fa930acc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bsp/air105/hal/core_gpio.c

+ 1 - 1
bsp/air105/hal/core_gpio.c

@@ -324,7 +324,7 @@ void __FUNC_IN_RAM__ GPIO_ToggleMulti(uint32_t Port, uint32_t Pins)
 
 void __FUNC_IN_RAM__ GPIO_OutPulse(uint32_t Pin, uint8_t *Data, uint16_t BitLen, uint16_t Delay)
 {
-	int i, j;
+	volatile int i, j;
 	uint8_t table[8] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};
 	uint8_t Port = (Pin >> 4);
 	Pin = 1 << (Pin & 0x0000000f);