mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-25 01:43:49 +08:00
修改clang_format-ignore文件,根据反馈修改n32h7xxx/libraries/N32_Drivers/nano/*下的文件格式,修改n32h7xxx/n32/n32hxxx/n32h760zil7-stb/applications/main.c文件,区别处理Nano下头文件包含
This commit is contained in:
@@ -10,6 +10,4 @@
|
||||
/n32gxx_lxx/libraries/N32L40x_Firmware_Library/
|
||||
/n32gxx_lxx/libraries/N32L43x_Firmware_Library/
|
||||
/n32gxx_lxx/libraries/N32WB452_Firmware_Library/
|
||||
|
||||
# 忽略所有 N32 BSP 的 Cube_Config 配置目录
|
||||
/n32hxxx/n32h*/board/Cube_Config/
|
||||
/n32hxxx/n32h760zil7-stb/board/Cube_Config/
|
||||
@@ -134,16 +134,16 @@ void rt_hw_console_init(void)
|
||||
USART_DeInit(USARTx);
|
||||
|
||||
USART_StructInit(&USART_InitStructure);
|
||||
USART_InitStructure.BaudRate = 115200;
|
||||
USART_InitStructure.WordLength = USART_WL_8B;
|
||||
USART_InitStructure.StopBits = USART_STPB_1;
|
||||
USART_InitStructure.Parity = USART_PE_NO;
|
||||
USART_InitStructure.HardwareFlowControl = USART_HFCTRL_NONE;
|
||||
USART_InitStructure.OverSampling = USART_16OVER;
|
||||
USART_InitStructure.Mode = USART_MODE_RX | USART_MODE_TX;
|
||||
USART_Init(USARTx, &USART_InitStructure);
|
||||
|
||||
USART_Enable(USARTx, ENABLE);
|
||||
USART_InitStructure.BaudRate = 115200;
|
||||
USART_InitStructure.WordLength = USART_WL_8B;
|
||||
USART_InitStructure.StopBits = USART_STPB_1;
|
||||
USART_InitStructure.Parity = USART_PE_NO;
|
||||
USART_InitStructure.HardwareFlowControl = USART_HFCTRL_NONE;
|
||||
USART_InitStructure.OverSampling = USART_16OVER;
|
||||
USART_InitStructure.Mode = USART_MODE_RX | USART_MODE_TX;
|
||||
USART_Init(USARTx, &USART_InitStructure);
|
||||
|
||||
USART_Enable(USARTx, ENABLE);
|
||||
}
|
||||
|
||||
void rt_hw_console_output(const char *str)
|
||||
|
||||
@@ -78,7 +78,7 @@ void rt_pin_mode(rt_uint64_t pin, rt_uint8_t mode)
|
||||
#endif /* GPIOk */
|
||||
}
|
||||
|
||||
GPIO_InitStruct(&GPIO_InitStructure);
|
||||
GPIO_InitStruct(&GPIO_InitStructure);
|
||||
GPIO_InitStructure.Pin = GPIO_Pin;
|
||||
|
||||
if (mode == PIN_MODE_OUTPUT)
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
* Date Author Notes
|
||||
* 2026-01-24 ox-horse first version
|
||||
*/
|
||||
|
||||
#ifndef __DRV_GPIO_H__
|
||||
#define __DRV_GPIO_H__
|
||||
|
||||
|
||||
@@ -8,10 +8,12 @@
|
||||
* 2026-01-24 ox-horse first version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtdbg.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PA1 */
|
||||
#define LED0_PIN GET_PIN(A, 1)
|
||||
@@ -28,5 +30,4 @@ int main(void)
|
||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||
rt_thread_mdelay(500);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user