+freertos
но надо еще коменты подправить
This commit is contained in:
10
rs_message.h
10
rs_message.h
@@ -148,9 +148,14 @@ typedef struct // RS_HandleTypeDef
|
||||
uint8_t ID; ///< ID of RS "channel"
|
||||
RS_MsgTypeDef *pMessagePtr; ///< pointer to message struct
|
||||
uint8_t *pBufferPtr; ///< pointer to message buffer
|
||||
#ifdef RS_IN_FREERTOS
|
||||
uint16_t taskDelay; ///< freertos buffer
|
||||
#endif
|
||||
uint32_t RS_Message_Size; ///< size of whole message, not only data
|
||||
|
||||
/* HANDLERS and SETTINGS */
|
||||
uint8_t tx_pin; ///< Transmit pin
|
||||
uint8_t rx_pin; ///< Receive pin
|
||||
HUART_TypeDef *huart; ///< handler for used uart
|
||||
RS_ModeTypeDef sRS_Mode; ///< setting: slave or master @ref RS_ModeTypeDef
|
||||
uint16_t sRS_Timeout; ///< setting: timeout in ms
|
||||
@@ -187,9 +192,12 @@ RS_StatusTypeDef RS_Define_Size_of_RX_Message(RS_HandleTypeDef *hRS, uint32_t *r
|
||||
|
||||
//-------------------------GENERAL FUNCTIONS-------------------------
|
||||
/*-----------------Should be called from main code-----------------*/
|
||||
/* Задача обработки UART приёма (FreeRTOS) */
|
||||
void RS_Task(void *pvParameters);
|
||||
/* Основная функция обработки RS */
|
||||
void RS_Process(RS_HandleTypeDef *hRS);
|
||||
/* Initialize UART and handle RS stucture */
|
||||
RS_StatusTypeDef RS_Init(RS_HandleTypeDef *hRS, HUART_TypeDef *huart, uint8_t *pRS_BufferPtr);
|
||||
RS_StatusTypeDef RS_Init(RS_HandleTypeDef *hRS, HUART_TypeDef *SerialPort, uint32_t baudRate, uint8_t *pRS_BufferPtr);
|
||||
/* Abort RS/UART */
|
||||
RS_StatusTypeDef RS_Abort(RS_HandleTypeDef *hRS, RS_AbortTypeDef AbortMode);
|
||||
/* Handle for starting transmit */
|
||||
|
||||
Reference in New Issue
Block a user