int test geht

This commit is contained in:
Tristan Krause 2019-03-26 15:02:58 +01:00
parent fae65afe8b
commit adfa389abe
10 changed files with 179 additions and 98 deletions

View file

@ -4,6 +4,7 @@
#include <avr/wdt.h>
#include "global_vars.h"
#include "selftest.h"
#include "requests.h"
#define LED PB0
@ -35,9 +36,27 @@ void initAll()
void handleRequest()
{
const uint8_t req = usart.readByte();
uint8_t dummy = usart.readByte();
usart.writeByte(USART::MSG_OK);
usart.writeByte(dummy);
switch(req)
{
case RQ_DISC:
break;
case RQ_TEST:
rqTestConnection();
break;
case RQ_INFO:
rqBoardInfo();
break;
case RQ_INT:
rqTestIntConv();
break;
default:
break;
}
}
int main()