代码规范

This commit is contained in:
TuxMonkey
2025-11-20 19:26:42 +08:00
parent d49c023f3c
commit 1ff64dea82
7 changed files with 19 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
GPIOInstance *GPIORegister(GPIO_Init_Config_s *GPIO_config)
{
GPIOInstance *ins = (GPIOInstance *) malloc(sizeof(GPIOInstance));
auto ins = (GPIOInstance *) malloc(sizeof(GPIOInstance));
memset(ins, 0, sizeof(GPIOInstance));
ins->GPIOx = GPIO_config->GPIOx;