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
e440746ab5
avr: try calculating idle times.
2023-04-10 23:33:24 +02:00
Martin Preuss
773d44c220
avr: cleanup.
2023-04-10 01:41:21 +02:00
Martin Preuss
dc8fa1a840
avr: reworked timer code.
...
Allow for more tailored timers.
2023-04-10 01:00:58 +02:00
Martin Preuss
e19b0ef8ac
avr: added memstat message.
2023-04-09 18:49:50 +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
a7928e0dbf
avr: added timer entry for every5s
...
This will be used for the window check module.
2023-04-08 03:09:12 +02:00
Martin Preuss
5175ca7dfd
avr: improved timer module.
...
- simplified timer handling. still using cascading counters but in an
extendable way
- added onEvery5m while on it
- renamed everyMinute to every1m (unifies routine names)
- send network stats every 5m, not every minute
2023-04-08 02:23:34 +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
a104b78f62
some formatting.
2023-03-28 21:45:16 +02:00
Martin Preuss
0db8a14972
avr: added code and messages for device information.
...
- send firmware information in DEVICE message
- introduced new version of VALUE message (sending UID now instead of
timestamp)
- make SENDSTATS and RECVSTATS messages also send UID instead of timestamp
2023-03-19 23:20:16 +01:00
Martin Preuss
a0e45034fe
avr: setup module mask to be later reported to a host.
2023-03-19 13:24:21 +01:00
Martin Preuss
ef6625d421
Shortened blink pattern.
2023-03-19 12:43:52 +01:00
Martin Preuss
08d6cab1e9
avr: started working on base system vs. main system.
...
base system will be a base system which can be used to flash and start
the main system.
2023-02-20 23:47:30 +01:00
Martin Preuss
5cfdaf5ffe
Removed code no longer needed.
2023-02-06 21:55:36 +01:00
Martin Preuss
f0e4ac5595
Always use new shortened address assignment protocol if possible.
2023-02-06 21:11:24 +01:00
Martin Preuss
716248c4e1
Implemented address assignment protocol.
2023-02-05 23:43:16 +01:00
Martin Preuss
0acb92d3cb
Moved routine sendValueMsg to Main_SendValueMsg in main.asm. Removed debug code.
2023-02-05 15:38:32 +01:00
Martin Preuss
29e2054ab9
Call UID generator (if necessary).
2023-02-04 16:02:18 +01:00
Martin Preuss
e0d392c895
Moved protocol stuff into comproto.asm.
2023-02-04 00:56:29 +01:00
Martin Preuss
ea2b592406
main: Fixed a bug.
...
Need to save R22 if you use it..
2023-02-02 00:54:44 +01:00
Martin Preuss
1389ab1953
build: Reorganized code.
...
Most MCU-dependent variable definitions ist now put into node-specific files.
Makes it easier to maintain code for different node types.
2023-02-02 00:44:50 +01:00