eive-obsw/linux/devices/ScexUartReader.cpp

19 lines
371 B
C++
Raw Normal View History

2022-03-25 17:48:38 +01:00
#include "ScexUartReader.h"
#include <iostream>
ScexUartReader::ScexUartReader(object_id_t objectId):SystemObject(objectId) {
}
void ScexUartRead::start() {
semaphore->give();
}
ReturnValue_t ScexUartReader::performOperation(uint8_t operationCode) {
std::cout<<"hallo welt"<<std::endl;
semaphore->take();
while(true) {
semaphore->take();
}
return RETURN_OK;
}