CAN Update

This commit is contained in:
Dmitriy Semenov
2023-04-03 21:51:33 +03:00
parent 68f478625e
commit 9c2667bbe5
16 changed files with 854 additions and 288 deletions

View File

@@ -25,9 +25,9 @@ char driverSWUART2PutCharInOutputBuffer(char character, FILE *stream) {
bool driverSWUART2Task(void) {
char outputChar;
if(!driverSWUART2OutputBuffer->isEmpty(driverSWUART2OutputBuffer)){ // Check if there is data in the ouput buffer
if(!driverSWUART2OutputBuffer->isEmpty(driverSWUART2OutputBuffer)){ // Check if there is data in the ouput buffer
driverSWUART2OutputBuffer->pull(driverSWUART2OutputBuffer,&outputChar); // Pull the data from ouput buffer
driverHWUART2SendChar(outputChar); // And send it to the uart
driverHWUART2SendChar(outputChar); // And send it to the uart
}
return !driverSWUART2OutputBuffer->isEmpty(driverSWUART2OutputBuffer);