Commit Graph

59 Commits

Author SHA1 Message Date
Bart Van Der Meerssche 90b129a67a [avr] link the RS485 driver/receiver enable line to TXCIE0 2011-05-10 16:19:32 +02:00
Bart Van Der Meerssche 346e22a0ae [avr] increase UART Rx buffer to 256 bytes 2011-05-10 11:36:19 +02:00
Bart Van Der Meerssche b80c95c752 [fluksod + avr] revert to using main as avr target name 2011-05-03 06:15:15 +02:00
Bart Van Der Meerssche fc90003688 [fluksod + avr] include freshly compiled avr binaries into the flukso package 2011-05-02 23:03:50 +02:00
Bart Van Der Meerssche 5bd4c40157 [avr] encapsulate stopping/starting the flukso daemon in rprogram 2011-04-29 10:23:45 +02:00
Bart Van Der Meerssche cd5ff2ed60 [avr] fix bug in power-loss detection debug logic 2011-04-05 09:18:32 +02:00
Bart Van Der Meerssche 3bb1345b29 [avr] wrap setup functions in a cli/sei pair 2011-02-17 23:49:54 +01:00
Bart Van Der Meerssche 18d91b024f [avr] throttle back the clock when in power-loss mode 2011-02-17 23:48:31 +01:00
Bart Van Der Meerssche 5df1cae92c [avr] subsitute eeprom_write_block for eeprom_update_block so that a byte is written only when it differs from the value stored in EEPROM 2011-02-16 17:33:29 +01:00
Bart Van Der Meerssche acf658dd26 [avr] wrap eeprom_read_blocks in a cli/sei pair 2011-02-16 16:37:16 +01:00
Bart Van Der Meerssche a90b7a8dce [avr] connect the analog comp to the input capture noise canceler for spike suppression 2011-02-15 23:26:54 +01:00
Bart Van Der Meerssche 35e79ca1bf [avr] double-check the ACO to protect against spikes on the sensing circuit 2011-02-15 22:52:46 +01:00
Bart Van Der Meerssche 4fc914558f [avr] enable brown-out counter 2011-02-14 20:53:34 +01:00
Bart Van Der Meerssche 9deaf89d04 [avr] make fdude default programmer for rprogram target 2011-02-12 19:56:15 +01:00
Bart Van Der Meerssche a1b981e4f8 [avr] switch avr to SPI mode 2 (inverted SCK) for new level-shifer 2011-02-03 12:20:24 +01:00
Bart Van Der Meerssche f99ea292ff [avr] write sensor data to EEPROM when power-loss is detected 2011-02-03 12:17:33 +01:00
Bart Van Der Meerssche e842040395 [avr + avrdude] switching to m168p hardware 2011-02-03 12:15:41 +01:00
Bart Van Der Meerssche 23b47bd955 [avr + fsync] check against MAX_ANALOG_SENSOR 2011-01-28 21:28:43 +01:00
Bart Van Der Meerssche 13fad26051 [avr] add macro ENABLED(x) and STATE_POWER_LOCK 2011-01-28 20:53:18 +01:00
Bart Van Der Meerssche 035bc2d4fe [avr] cmd parameter checking for enable/disable 2011-01-28 16:30:50 +01:00
Bart Van Der Meerssche 62f36ce02d [avr] add cmd check on sensor id 2011-01-28 10:57:26 +01:00
Bart Van Der Meerssche 9fbbb99a88 [avr] check state flags in main loop for all sensors 2011-01-28 10:45:50 +01:00
Bart Van Der Meerssche 78b1ec3be3 [avr + fluksod] add per-port enable/disable commands 2011-01-26 14:08:46 +01:00
Bart Van Der Meerssche 112661303d [avr] add debugging to INT{0,1} ISRs 2011-01-25 20:51:08 +01:00
Bart Van Der Meerssche fc1f955b51 [avr] set commands should repeat the params in the reply 2011-01-24 22:16:48 +01:00
Bart Van Der Meerssche 5dcac14c60 [avr] change SPI definitions to hex values 2011-01-24 22:14:48 +01:00
Bart Van Der Meerssche d208545000 [avr + fluksod] enable crc checking in both spi directions 2011-01-17 11:11:44 +01:00
Bart Van Der Meerssche e282a750de [avr] add comments to commands 2011-01-16 23:41:53 +01:00
Bart Van Der Meerssche b641230fc8 [avr] add {hw,sw} {major,minor} sensor board versioning 2011-01-16 23:25:11 +01:00
Bart Van Der Meerssche dedbb4daf6 [avr] add interrupt tracing to TIMER1 ISR 2011-01-16 17:32:21 +01:00
Bart Van Der Meerssche 8813c816ff [avr] fix interrupt tracing and remove unneeded volatiles 2011-01-16 17:30:55 +01:00
Bart Van Der Meerssche b224ffdf23 [avr] optimize btoh and htob for 8-bit uc 2011-01-16 12:00:41 +01:00
Bart Van Der Meerssche 0af40cf27d [avr] couple the LED heartbeat to activity on the SPI bus 2011-01-16 10:44:48 +01:00
Bart Van Der Meerssche 9c47f71514 [avr] inline htob and btoh functions 2011-01-15 23:30:59 +01:00
Bart Van Der Meerssche 65db2fe1dd [avr] add debug macros for tracing interrupts 2011-01-15 23:06:48 +01:00
Bart Van Der Meerssche f74b124884 [avr] add DOW CRC8 function and add the checksum to a ctrl message 2011-01-15 23:03:16 +01:00
Bart Van Der Meerssche b0fd16364e avr: add version field and s/gv [set/get version] command 2010-12-29 21:45:41 +01:00
Bart Van Der Meerssche 21984e237a avr: port INT0 and INT1 ISRs to flukso v2 2010-12-29 17:43:17 +01:00
Bart Van Der Meerssche db42f36f91 avr: return an [e]rror in case of an unrecognized command 2010-12-29 16:22:01 +01:00
Bart Van Der Meerssche 20a13be0d3 avr: flush the ctrl Tx buffer when decoding a new command 2010-12-29 15:29:31 +01:00
Bart Van Der Meerssche 9c5842f262 avr: adapt scaling factor in power calc to increased sampling freq [667Hz] 2010-12-29 15:28:43 +01:00
Bart Van Der Meerssche d80377ee19 avr: set up the ADC with bandgap as a reference 2010-12-29 14:08:20 +01:00
Bart Van Der Meerssche 381e235af3 avr: port analog input sampling + power calculation and implement gd [get delta] command 2010-12-28 23:23:16 +01:00
Bart Van Der Meerssche b63f36cba0 avr: move SPI_... defs to header file, change value into counter name 2010-12-28 14:34:56 +01:00
Bart Van Der Meerssche 263d3d107a avr: prevent race conditions when getting/setting parameters 2010-12-28 00:34:50 +01:00
Bart Van Der Meerssche 1ada193cea avr: implement g/sw [get/set watchdog time-out events] and g/sb [get/set brown-out events] 2010-12-27 23:23:15 +01:00
Bart Van Der Meerssche 3d1b67f221 avr: implement gm [get meterconst] and sm [set meterconst] commands 2010-12-27 23:12:52 +01:00
Bart Van Der Meerssche 80ae936348 avr: implement gv [get value] and sv [set value] commands 2010-12-27 23:04:55 +01:00
Bart Van Der Meerssche 98496e442d avr: implement char/short/long read and write functions from/to ctrl buffer 2010-12-27 21:39:55 +01:00
Bart Van Der Meerssche 01863a6594 avr: implement the ct [commit] command 2010-12-26 22:30:51 +01:00