26 lines
519 B
C
26 lines
519 B
C
#ifndef _INITIAL_H
|
|
#define _INITIAL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "gd32c10x_eval.h"
|
|
#include "cstdint"
|
|
#include <stdio.h>
|
|
|
|
int fputc(int ch, FILE *f); // 声明fputc函数以重载标准库实现
|
|
|
|
u8 USART0_init(void);
|
|
u16 get_reset_cause(void);
|
|
void unused_pin_init();
|
|
void print_system_clock_info(void);
|
|
void enter_deep_sleep(void);
|
|
int check_sleep(void);
|
|
void EXTI5_9_IRQHandler(void);
|
|
void scanAppFlashContent(bool print_content = true, u32 page_count = 0);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |