31 lines
981 B
C
31 lines
981 B
C
#ifndef __UART2_H
|
|
#define __UART2_H
|
|
#include "stdio.h"
|
|
#include "stm32f4xx_conf.h"
|
|
#include "sys.h"
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
//This program is for educational purposes only, without the author's permission, may not be used for any other purpose
|
|
//ALIENTEK STM32F4 Explorer Board
|
|
//Initialize serial port 5
|
|
//Hot Atomic @ALIENTEK
|
|
//Forum: www.openedv.com
|
|
//Date modified: 2014/6/10
|
|
//Version: V1.4
|
|
//All rights reserved pirated reserved.
|
|
//Copyright(C) Guangzhou wing electronic technology limited company 2009-2019
|
|
//All rights reserved
|
|
//********************************************************************************
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
void uart2_init(u32 bound);
|
|
ErrorStatus UART2_GetChar(u8 *data);
|
|
void UART2_PutChar(const u8 ascii);
|
|
void UART2_PutStr(u8 *str, u16 len);
|
|
void UART2_printf(const char *fmt,...);
|
|
|
|
void UART2_Flush(void);
|
|
|
|
#endif
|
|
|
|
|