2025-12-25 12:07:06 +08:00
|
|
|
#ifndef _INITIAL_H
|
|
|
|
|
#define _INITIAL_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "gd32c10x_eval.h"
|
|
|
|
|
#include "stdint.h"
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2025-12-27 19:20:23 +08:00
|
|
|
int fputc(int ch, FILE *f); // 声明fputc函数以重载标准库实现
|
2025-12-25 12:07:06 +08:00
|
|
|
|
|
|
|
|
u8 USART0_init(void);
|
|
|
|
|
u16 get_reset_cause(void);
|
|
|
|
|
void unused_pin_init();
|
2026-01-01 01:39:19 +08:00
|
|
|
void print_system_clock_info(void);
|
2026-01-12 01:06:05 +08:00
|
|
|
void enter_deep_sleep(void);
|
|
|
|
|
int check_sleep(void);
|
|
|
|
|
void EXTI5_9_IRQHandler(void);
|
2025-12-25 12:07:06 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-01-01 01:39:19 +08:00
|
|
|
#endif
|