2018-01-08 14:09:04 +00:00
|
|
|
#ifndef _INCLUDE_USART_IO_H_
|
|
|
|
#define _INCLUDE_USART_IO_H_
|
2018-01-18 16:13:46 +00:00
|
|
|
#include <stdbool.h>
|
2018-01-08 14:09:04 +00:00
|
|
|
#include "stm32f10x_usart.h"
|
|
|
|
#include "GPIO.h"
|
|
|
|
|
2018-07-15 15:51:54 +00:00
|
|
|
/* Debug IO serial */
|
|
|
|
#define DEBUG_IO_DEVICE USART1
|
|
|
|
#define DEBUG_IO_DEVICE_CLOCK RCC_APB2Periph_USART1
|
|
|
|
|
2018-01-08 14:09:04 +00:00
|
|
|
void USART_Config(USART_TypeDef* st_USARTx, uint32_t ui_Baudrate, bool b_Enable);
|
|
|
|
void DebugSerialPort_Initialize(uint32_t Baudrate);
|
|
|
|
int USART_Putc(int iChar);
|
|
|
|
|
|
|
|
#endif //_INCLUDE_USART_IO_H_
|