Commit Graph

150 Commits

Author SHA1 Message Date
Martin Preuss
c2a6d33ff2 avr: reduced code (bootloader now 569 words). 2024-09-01 22:29:08 +02:00
Martin Preuss
8aeb488e2e avr: share code (saves 8 bytes) 2024-09-01 20:19:32 +02:00
Martin Preuss
45cae14f6a avr: reuse code (saves a few more bytes). 2024-09-01 20:12:02 +02:00
Martin Preuss
892d9f5c5a avr: fixed a possible problem (generated machine code is shorter). 2024-09-01 20:11:18 +02:00
Martin Preuss
65e60c2dec Replace multiple wait macros with calls (saves 10 bytes). 2024-09-01 20:06:05 +02:00
Martin Preuss
319cdbce18 added future message defs 2024-08-25 14:27:13 +02:00
Martin Preuss
c800e99dc8 avr: added comments 2024-08-25 14:26:36 +02:00
Martin Preuss
2da873bbb9 avr: fixed comments. 2024-08-25 14:18:56 +02:00
Martin Preuss
0fc18c1da1 add missing files to DIST list. 2023-10-06 18:06:25 +02:00
Martin Preuss
9b7d043682 Started working on aqhome-nodes which will replace aqhomed. 2023-09-13 23:31:02 +02:00
Martin Preuss
16ce958964 aqhome: added service definitions, started implementing HTTP service. 2023-07-24 21:49:17 +02:00
Martin Preuss
3e85dc9bd5 avr: removed unused code. 2023-05-14 22:24:05 +02:00
Martin Preuss
54301fed44 avr/reed: moved notification source to REED_Run.
This make the node send the new status almost immediately after change.
2023-05-13 01:13:28 +02:00
Martin Preuss
a29a314976 minor docu fix. 2023-05-12 23:48:30 +02:00
Martin Preuss
226922d3e4 avr/reed: implemented tilt detection mode
- implemented tilt detection mode
- added docu
- change the way a VALUE2 message is printed when value type is "door"
2023-05-12 23:19:01 +02:00
Martin Preuss
84403d07f6 avr: added initial module to handle reed contacts.
Detects and reports opening and closing of a window/door.
Nexts step is to allow for external configuration (e.g. standard mode
with one reed contact versus multi-contact mode to detect tilting of a
window/door).
2023-05-12 21:41:39 +02:00
Martin Preuss
45a63ad70b avr: minor reformatting 2023-05-10 21:10:00 +02:00
Martin Preuss
f8d9447fde avr/lcd: renamed some defs. 2023-05-10 21:09:37 +02:00
Martin Preuss
44bed4dc14 avr: fixed some bugs in address handling code
- fixed bugs in jumptable code and calls
  NOTE to self: addresses in flash are WORD addresses, so we need
  to double the address difference when working with bytes!
- correctly set params for call to cproAddressSetTimer
2023-05-10 21:09:08 +02:00
Martin Preuss
459f261133 avr: added include for tiny841. 2023-05-10 21:06:02 +02:00
Martin Preuss
4a093905e8 Started working on CNY70 module (doesn't work, yet). 2023-05-02 00:03:41 +02:00
Martin Preuss
383e3ad93d build: added more build files for subfolders. 2023-04-26 17:55:40 +02:00
Martin Preuss
1893d50908 avr: minor changes to watchdogOn (not used, yet). 2023-04-22 16:38:03 +02:00
Martin Preuss
4bf20fb032 avr: added a note about the wait macro. 2023-04-22 16:37:37 +02:00
Martin Preuss
ebd5829435 avr: renamned some filesfrom flash module. handle FLASH_END. 2023-04-22 14:47:16 +02:00
Martin Preuss
270066dd9f avr: cleanup lowlevel com2 routines. 2023-04-22 12:45:06 +02:00
Martin Preuss
462515b566 avr: reduce register use in com2WaitForDataState1ms 2023-04-22 12:12:19 +02:00
Martin Preuss
3b44fb9c5b avr: split code in multiple files and routines. 2023-04-22 11:54:09 +02:00
Martin Preuss
3e6501c834 finished basic new structure. 2023-04-22 00:23:44 +02:00
Martin Preuss
5e12b8ad4e started reorganizing code into subfolders. 2023-04-22 00:04:10 +02:00
Martin Preuss
97016b21b9 Rebooting and flashing a node now works! 2023-04-21 23:38:44 +02:00
Martin Preuss
76e58b6fec avr: removed command to switch on debug led. 2023-04-21 00:15:42 +02:00
Martin Preuss
11c674d673 avr: started adding some often needed snippets to reduce code size. 2023-04-20 23:59:10 +02:00
Martin Preuss
82c7626783 flashing a device via boot loader works now!!
- use a simple rjmp to start main firmware
- add buffer size as a parameter for com2ReceivePacketRaw
- fixed bugs in
  - Flash_StartPage
  - Flash_FinishPage
  - Flash_ReadPageIntoPageBuffer
- assume irqs disabled in flash routines
- increase flash receive buffer size to 128
2023-04-20 23:57:13 +02:00
Martin Preuss
66d5afb882 fixed description of a message. 2023-04-20 00:45:44 +02:00
Martin Preuss
d8e5252697 avr: some more work on flash code. 2023-04-20 00:45:20 +02:00
Martin Preuss
1af9a78818 avr: added clobbered regs to calls. 2023-04-20 00:45:01 +02:00
Martin Preuss
39c4bcd720 avr: added routine com2WaitForDataState1ms (not yet used). 2023-04-20 00:44:30 +02:00
Martin Preuss
600a6d01ac avr: added test image for flash tests. 2023-04-20 00:44:02 +02:00
Martin Preuss
a7d587a134 avr: first step of boot loader works
- send FLASH_READY
- waits for FLASH_START

NOTE: Utils_WaitNanoSecs only works reliably with values way above 1000
because 1000 is already one cycle time, and since each assembler command
already uses multiple clock cycles a value of 1000 never flies.
2023-04-19 15:43:17 +02:00
Martin Preuss
b7a36cc732 avr: removed TODO. Fixed jump to bootloader. 2023-04-19 15:41:16 +02:00
Martin Preuss
6cb1a9816e avr: commented-out def. 2023-04-19 15:40:39 +02:00
Martin Preuss
a3502a3a40 avr: fixed comment. 2023-04-19 15:40:14 +02:00
Martin Preuss
cf3a90dccc avr: moved bootloader down to 0x0d00. 2023-04-18 23:51:40 +02:00
Martin Preuss
87c1692a7c implemented DEVICE msg again. 2023-04-18 23:46:58 +02:00
Martin Preuss
5c111aa935 avr: add modules mask variable.
will be used by bootloader.
2023-04-18 23:46:38 +02:00
Martin Preuss
4467f60645 avr: fixed a bug.
answering with a PONG to a PING packet works again.
2023-04-16 23:54:39 +02:00
Martin Preuss
519546babd avr: added some message documentation. 2023-04-16 23:23:25 +02:00
Martin Preuss
5f4260d605 avr: moved COM and COMPROTO defs and routines into dedicated files. 2023-04-16 23:23:06 +02:00
Martin Preuss
c00b90bf28 more work on switching to new COM and TIMER stack. 2023-04-13 21:16:51 +02:00