Commit Graph

128 Commits

Author SHA1 Message Date
Martin Preuss
87b31a4a4b COM. TIMER: Fixed a bug (note to self: INC/DEC set Z flag, but not C flag!!)
- added COM_EnqueueComSendStats
- check for high ATTN line before sending packets
2023-01-26 18:57:20 +01:00
Martin Preuss
22d96dbab0 AqHome: Added a test for sending/receiving asynchronously. 2023-01-25 21:47:06 +01:00
Martin Preuss
7b769807bd AVR: For debugging purposes, send a ping every 10s. 2023-01-25 21:46:15 +01:00
Martin Preuss
fbe2ae246c aqhome: Added test for sending packets to MCU. 2023-01-25 16:29:36 +01:00
Martin Preuss
5750a26c2a aqhome: Use baudrate of 19200 bps. 2023-01-25 16:29:16 +01:00
Martin Preuss
51c0be1754 COM: Transformed to use normal buffers but in kind of a ringbuffer way.
There are now fixed buffers which are organized in a ringbuffer. This makes
it easier to access data stored in the buffers, also receiving packets is
now way faster with reduced risk of sync problems.
2023-01-25 16:28:36 +01:00
Martin Preuss
e550b0dcee Changes in TODO. 2023-01-22 17:48:05 +01:00
Martin Preuss
9e31dc2160 aqhome: Fixed a bug. 2023-01-22 17:47:42 +01:00
Martin Preuss
c0fca3bf98 aqhome: Added test for serial interface, added api.h. 2023-01-22 17:47:30 +01:00
Martin Preuss
a8a9571a27 avr: enabled COM_Run. 2023-01-22 17:46:46 +01:00
Martin Preuss
6fd216e83d avr: added routines to read/write EEPROM. 2023-01-22 17:46:16 +01:00
Martin Preuss
df08b98bf3 main: added timer callbacks for 10s and 1m. removed debug code. 2023-01-22 01:06:23 +01:00
Martin Preuss
31a10b2c70 timer: Added callbacks for every 10s and every minute. 2023-01-22 01:05:39 +01:00
Martin Preuss
9b27bb4921 com: added field to PIN message (src address) 2023-01-22 01:05:11 +01:00
Martin Preuss
705562d881 main: added debug code. 2023-01-22 00:17:21 +01:00
Martin Preuss
a9ff8d2277 com: fixed a bug. 2023-01-22 00:17:11 +01:00
Martin Preuss
9c92995d00 ringbuffer: Fixed a few bugs. 2023-01-22 00:16:42 +01:00
Martin Preuss
dcd54d9118 Debugging. 2023-01-21 18:11:23 +01:00
Martin Preuss
b27b1b7301 Fixed a few bugs. 2023-01-21 18:11:13 +01:00
Martin Preuss
69c13ab3c5 ringbuffer: alloc no less than 2 bytes.
This protects against race conditions. We can now preset the first two
bytes which are used for size and flags by the COM module (currently the
only user of the ringbuffer module).
2023-01-19 23:18:28 +01:00
Martin Preuss
d3d4f42b90 com: added remarks. 2023-01-19 23:16:46 +01:00
Martin Preuss
b8ae13a08b Ringbuffer: clear first byte. 2023-01-19 22:08:03 +01:00
Martin Preuss
265011de83 Added COM_EnqueuePing. 2023-01-19 22:07:45 +01:00
Martin Preuss
ff734192bb AVR: More work on COM module. 2023-01-19 00:18:27 +01:00
Martin Preuss
6468e76545 Added and simplified COM module.
Directly use pins, no complicated redirections.
Router modules will probably use real UARTs or MCUs programmed as UARTs.
2023-01-18 01:09:31 +01:00
Martin Preuss
12b31972be Started working on COM module. 2023-01-17 20:56:18 +01:00
Martin Preuss
16ca364e56 Minor beautifications. 2023-01-17 20:56:04 +01:00
Martin Preuss
16be96ada9 Initial import. 2023-01-16 23:12:09 +01:00