You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
/********************************** (C) COPYRIGHT ******************************* |
|
* File Name : debug.h |
|
* Author : WCH |
|
* Version : V1.0.0 |
|
* Date : 2022/08/08 |
|
* Description : This file contains all the functions prototypes for UART |
|
* Printf , Delay functions. |
|
********************************************************************************* |
|
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. |
|
* Attention: This software (modified or not) and binary are used for |
|
* microcontroller manufactured by Nanjing Qinheng Microelectronics. |
|
*******************************************************************************/ |
|
#ifndef __DEBUG_H |
|
#define __DEBUG_H |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
#include <ch32v00x.h> |
|
#include <stdio.h> |
|
|
|
/* UART Printf Definition */ |
|
#define DEBUG_UART1 1 |
|
|
|
/* DEBUG UATR Definition */ |
|
#ifndef DEBUG |
|
#define DEBUG DEBUG_UART1 |
|
#endif |
|
|
|
void Delay_Init(void); |
|
void Delay_Us(uint32_t n); |
|
void Delay_Ms(uint32_t n); |
|
void USART_Printf_Init(uint32_t baudrate); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
#endif /* __DEBUG_H */
|
|
|