boardinfo

This commit is contained in:
Tristan Krause 2019-03-27 15:48:36 +01:00
parent a2d78446d3
commit 35e1c29e89
10 changed files with 202 additions and 156 deletions

View file

@ -9,7 +9,14 @@ void rqTestConnection()
void rqBoardInfo()
{
usart.writeByte(3); // Anzahl an Strings
usart.writeStr(DATE, sizeof(DATE));
usart.writeStr(TIME, sizeof(TIME));
usart.writeStr(FSRC, sizeof(FSRC));
if(ACK_MODE)
usart.writeByte(USART::MSG_OK);
}
void rqTestIntConv()
@ -88,10 +95,11 @@ void rqAdcDacStroke()
for(int16_t i = start; i != count; i += delta)
{
dac0.setValue(i);
wdt_reset();
uint16_t a = adu.getValue(channel_a);
uint16_t b = adu.getValue(channel_b);
usart.writeInt(a);
usart.writeInt(b);
usart.writeInt(b);
}
usart.writeByte(USART::MSG_OK);