gpio写完,延时不准
This commit is contained in:
+11
-4
@@ -1,16 +1,23 @@
|
||||
//
|
||||
// Created by anonymous on 2026/5/24.
|
||||
//
|
||||
|
||||
#include "main.h"
|
||||
/* C标准库头文件 */
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
/* BSP文件 */
|
||||
#include "main.h"
|
||||
#include "Bsp.h"
|
||||
|
||||
int main(void) {
|
||||
uint32_t i;
|
||||
|
||||
VoiletBspInit();
|
||||
|
||||
UartStdConfig((COM_MAP_T)COM1,9600);
|
||||
|
||||
while (1) {
|
||||
i++;
|
||||
LedToggle(LED0);
|
||||
DelayMs(100);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user