Subversion Repositories HomeAutomation

Rev

Hide changed files | Details | Compare with Previous | Blame | SVN | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
319 7171 d 5 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c (flash_write_word): Access the pagebuffer correctly.
* EmbeddedSoftware/AVR/AVR-Bios/bios.c: Small size optimization.
 
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
315 7171 d 12 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ EmbeddedSoftware/AVR/AVR-Bios
* bios_funs.h: Made __bios_start void instead of uint16_t.
* bios.c: CAN_NMT_TIME resets watchdog.
Comments cleanup.
Improved crc calculation loop and address validity check.
Pass page buffer to flash_init.
* can.h: Added CAN_NMT_TIME and some space between the rest of the NMT types.
* flash.c: Rewrite to use SRAM page buffer instead.
Reimplemented flash_load_buffer.
Deleted old unused code and cleaned up comments.
* flash.h: Some cleaning.
 
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios_funs.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/can.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.h
311 7172 d 11 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c (flash_copy_data): Forgot to stop before writing over ourself. Had to remove eeprom and spm check to fit. These will have to go in bios.c instead, if neccesary.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
310 7172 d 12 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c (flash_copy_data): Enable RWW section after flashing so next word can be read.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
309 7172 d 12 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c (flash_copy_data): Extra checks to make sure spm is finished before every flash access. Rewrote loop to fit in flash.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
307 7172 d 14 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c: Fix bug in flash_copy_data where last part of page were never written. Also made sure .flash_code will be included in hex-file.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega88_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega8_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
299 7175 d 4 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c: Made flash_copy_data independent and located in top two pages of flash. All other code should be possible to update now.
* EmbeddedSoftware/AVR/AVR-Bios/can.h: Corrected defines for additional communication classes.
 
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega88_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega8_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/can.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.h
283 7180 d 9 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios: New dangerous feature to enable BIOS updating over CAN.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/Makefile
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega88_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega8_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios_funs.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/can.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.h
254 7190 d 4 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios: Fixed address increment bug in bios.c. Send ACK at PGM_START. Added #ifdefs around uart and some flash code for conditional compilation.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios_funs.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.h
233 7203 d 4 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/AVR-Bios/flash.c (flash_flush_buffer): Mark buffer as not dirty after page write.  
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
228 7203 d 6 h andfri /trunk/EmbeddedSoftware/AVR/AVR-Bios/ * EmbeddedSoftware/AVR/app_vectors.h: Deleted.
* EmbeddedSoftware/AVR/*_app.ld: Removed the need for editing these files. Values are defined in application makefile.
* EmbeddedSoftware/AVR/*_bios.ld: Bios and bootloader location is now configurable in makefile. .bootloader section added.
* EmbeddedSoftware/AVR/avr_cfg.h: Moved avr-specific initialization here.
* EmbeddedSoftware/AVR/bios.c: Moved flash functionality to separate file.
* EmbeddedSoftware/AVR/Makefile: Added configurability options.
* EmbeddedSoftware/AVR/flash.*: Flash functionality moved here. flash_load_buffer implemented, needs testing.
* EmbeddedSoftware/AVR/vectors.*: New interrupt handling system, works on all avrs without configuration (hopefully). Not tested.
 
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/flash.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/vectors.S
/trunk/EmbeddedSoftware/AVR/AVR-Bios/vectors.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/app_vectors.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/Makefile
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega88_app.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega88_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega8_app.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/atmega8_bios.ld
/trunk/EmbeddedSoftware/AVR/AVR-Bios/avr_cfg.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.c
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios.h
/trunk/EmbeddedSoftware/AVR/AVR-Bios/bios_funs.h