Refactor split main.c
This commit is contained in:
13
Inc/protocol.h
Normal file
13
Inc/protocol.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef __PROTOCOL_H
|
||||
#define __PROTOCOL_H
|
||||
|
||||
#include "main.h"
|
||||
|
||||
void Decode_uart(uint16_t *Command, LDx_SetupTypeDef *LD1_curr_setup, LDx_SetupTypeDef *LD2_curr_setup, Work_SetupTypeDef *Curr_setup);
|
||||
void Decode_task(uint16_t *Command, LDx_SetupTypeDef *LD1_curr_setup, LDx_SetupTypeDef *LD2_curr_setup, Work_SetupTypeDef *Curr_setup);
|
||||
uint8_t CheckChecksum(uint16_t *pbuff);
|
||||
uint16_t CalculateChecksum(uint16_t *pbuff, uint16_t len);
|
||||
void USART_TX(uint8_t* dt, uint16_t sz);
|
||||
void USART_TX_DMA(uint16_t sz);
|
||||
|
||||
#endif /* __PROTOCOL_H */
|
||||
Reference in New Issue
Block a user