Loading files
/**
* __ ____
* / /__ _ __ / __/ __
* / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_
* / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/
* /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/
* /_/ github.com/KitSprout
*
* @file serial.h
* @author KitSprout
* @date 16-Mar-2017
* @brief
*
*/
/* Define to prevent recursive inclusion ---------------------------------------------------*/
#ifndef __SERIAL_H
#define __SERIAL_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes --------------------------------------------------------------------------------*/
#include "drivers\stm32f4_system.h"
#include "drivers\stm32f4_uart.h"
#include "algorithms\string.h"
/* Exported types --------------------------------------------------------------------------*/
/* Exported constants ----------------------------------------------------------------------*/
/* Exported functions ----------------------------------------------------------------------*/
void Serial_Config( void );
void Serial_SendByte( uint8_t sendByte );
uint8_t Serial_RecvByte( void );
uint8_t Serial_RecvWait( uint8_t *recvData );
int8_t Serial_SendData( uint8_t *sendData, uint16_t lens, uint32_t timuout );
int8_t Serial_RecvData( uint8_t *recvData, uint16_t lens, uint32_t timeout );
int8_t Serial_SendDataIT( uint8_t *sendData, uint16_t lens);
int8_t Serial_RecvDataIT( uint8_t *recvData, uint16_t lens );
int8_t Serial_SendDataDMA( uint8_t *sendData, uint16_t lens );
int8_t Serial_RecvDataDMA( uint8_t *recvData, uint16_t lens );
#ifdef __cplusplus
}
#endif
#endif
/*************************************** END OF FILE ****************************************/
30a4f6c6cThis file is pinned to the selected release. Download the original to open it in your design tool.