Initial commit

This commit is contained in:
Yury Shuvakin
2022-11-12 23:42:55 +03:00
parent 9a18b5d8e7
commit 190522943f
228 changed files with 141037 additions and 0 deletions

28
Core/Inc/modUART.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef __MODMESSAGE_H
#define __MODMESSAGE_H
#include "stdint.h"
#include "stdbool.h"
#include "driverSWUART2.h"
#include "modDelay.h"
#include "modConfig.h"
#include "modPowerElectronics.h"
#include "libPacket.h"
#include "modCommands.h"
#define PACKET_HANDLER_UART 1
typedef enum {
MESSAGE_DEBUG = 0,
MESSAGE_ERROR,
MESSAGE_NORMAL,
} modMessageMessageTypeDef;
void modUARTInit(void);
void modUARTTask(void);
void modUARTSendPacketWrapper(unsigned char *data, unsigned int len);
void modUARTProcessPacket(unsigned char *data, unsigned int len);
void modUARTSendPacket(unsigned char *data, unsigned int len);
#endif