Index: ecos/packages/devs/flash/atmel/at49xxxx/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/ChangeLog,v retrieving revision 1.3 diff -a -w -u -r1.3 ChangeLog --- ecos/packages/devs/flash/atmel/at49xxxx/current/ChangeLog 15 Jul 2003 01:52:21 -0000 1.3 +++ ecos/packages/devs/flash/atmel/at49xxxx/current/ChangeLog 14 Aug 2003 10:47:08 -0000 @@ -1,3 +1,8 @@ +2003-08-14 Oyvind Harboe + * Disable interrupts during flash program/erase as the + application can be running out of flash and the flash is + invalid during the program/erase cycle. + 2003-07-15 Jonathan Larmour * include/flash_at49xxxx.inl: Reorganise to support boot blocks, Index: ecos/packages/devs/flash/atmel/at49xxxx/current/cdl/flash_atmel_at49xxxx.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/cdl/flash_atmel_at49xxxx.cdl,v retrieving revision 1.2 diff -a -w -u -r1.2 flash_atmel_at49xxxx.cdl --- ecos/packages/devs/flash/atmel/at49xxxx/current/cdl/flash_atmel_at49xxxx.cdl 15 Jul 2003 01:52:39 -0000 1.2 +++ ecos/packages/devs/flash/atmel/at49xxxx/current/cdl/flash_atmel_at49xxxx.cdl 14 Aug 2003 10:47:08 -0000 @@ -59,6 +59,14 @@ implements CYGHWR_IO_FLASH_DEVICE include_dir cyg/io + + define_proc { + puts $::cdl_system_header "/***** at49xxxx driver proc output *****/" + puts $::cdl_system_header "// interrupts can not be enable during programming/erase" + puts $::cdl_system_header "#define CYGIMP_FLASH_ENABLE at49xxxx_enable" + puts $::cdl_system_header "#define CYGIMP_FLASH_DISABLE at49xxxx_disable" + puts $::cdl_system_header "/***** at49xxxx driver proc output end *****/" + } } # EOF flash_atmel_49xxxx.cdl Index: ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl =================================================================== RCS file: /cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl,v retrieving revision 1.3 diff -a -w -u -r1.3 flash_at49xxxx.inl --- ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl 15 Jul 2003 01:52:22 -0000 1.3 +++ ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl 14 Aug 2003 10:47:08 -0000 @@ -368,6 +368,19 @@ return res; } +void +at49xxxx_enable(void *start, void *end) +{ + cyg_interrupt_disable(); +} + +void +at49xxxx_disable(void *start, void *end) +{ + cyg_interrupt_enable(); +} + + #endif // CYGONCE_DEVS_FLASH_ATMEL_AT49XXXX_INL // EOF flash_at49xxxx.inl