echo befehl funktioniert
This commit is contained in:
parent
13e95264fb
commit
fae65afe8b
8 changed files with 154 additions and 87 deletions
11
main.cpp
11
main.cpp
|
@ -29,6 +29,15 @@ void initAll()
|
|||
sw.setDirB(0xFF); // alle Eingang
|
||||
|
||||
adu.init();
|
||||
usart.init();
|
||||
}
|
||||
|
||||
void handleRequest()
|
||||
{
|
||||
const uint8_t req = usart.readByte();
|
||||
uint8_t dummy = usart.readByte();
|
||||
usart.writeByte(USART::MSG_OK);
|
||||
usart.writeByte(dummy);
|
||||
}
|
||||
|
||||
int main()
|
||||
|
@ -43,7 +52,7 @@ int main()
|
|||
|
||||
while(1)
|
||||
{
|
||||
testAll();
|
||||
handleRequest();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue