boardinfo
This commit is contained in:
parent
a2d78446d3
commit
35e1c29e89
10 changed files with 202 additions and 156 deletions
12
requests.cpp
12
requests.cpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue