19 lines
371 B
C++
19 lines
371 B
C++
#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;
|
|
}
|