Commit Graph

8 Commits

Author SHA1 Message Date
Martin Preuss
b4c0ab273d avr: new com2 and timer stack basically works again. 2023-04-12 21:46:34 +02:00
Martin Preuss
18d34450e7 avr: started reworking COM module.
- sending and receiving now basically works again, but too often the
  read buffer is in use when trying to receive a message.
2023-04-12 15:30:52 +02:00
Martin Preuss
0f678d7d5a avr: cleanup, added labels to calculate module sizes. 2023-04-08 18:18:19 +02:00
Martin Preuss
4a915a3c85 avr: add copyright notices. 2023-04-08 13:05:05 +02:00
Martin Preuss
7eb462173c simplified message handling, switch from XOR checksum to CRC8 with polynomial 0x97.
0x97 allows for detection of all 1-3 bit errors in a message of up to
119 bytes
(see https://www.faa.gov/aircraft/air_cert/design_approvals/air_software/media/TC-14-49.pdf)
2023-04-07 23:22:40 +02:00
Martin Preuss
4e1f08b567 reworked com stack.
- prepared for use of CRC8
- organized code in more files
- recv stats message now contains crc errors and io errors
2023-04-07 19:14:05 +02:00
Martin Preuss
d56cbd6f25 AVR: More work on address assignment procedure. 2023-02-06 21:09:38 +01:00
Martin Preuss
716248c4e1 Implemented address assignment protocol. 2023-02-05 23:43:16 +01:00