diff options
author | dakkar <dakkar@thenautilus.net> | 2012-10-08 12:49:20 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2012-10-08 12:49:20 +0100 |
commit | 446ab81da2e70ea02e607418b74b1286546bd37a (patch) | |
tree | 2849036a6e32060fa6a242e498d4c43e4d1ccaf2 /additions/SW/usb-ir-toy-lirc/JessH.patch | |
parent | import all reviews (diff) | |
download | thenautilus-446ab81da2e70ea02e607418b74b1286546bd37a.tar.gz thenautilus-446ab81da2e70ea02e607418b74b1286546bd37a.tar.bz2 thenautilus-446ab81da2e70ea02e607418b74b1286546bd37a.zip |
usb-ir-toy
Diffstat (limited to 'additions/SW/usb-ir-toy-lirc/JessH.patch')
-rw-r--r-- | additions/SW/usb-ir-toy-lirc/JessH.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/additions/SW/usb-ir-toy-lirc/JessH.patch b/additions/SW/usb-ir-toy-lirc/JessH.patch new file mode 100644 index 0000000..798314b --- /dev/null +++ b/additions/SW/usb-ir-toy-lirc/JessH.patch @@ -0,0 +1,44 @@ +Index: pic_bootloader.cpp +=================================================================== +--- pic_bootloader.cpp (revision 2023) ++++ pic_bootloader.cpp (working copy) +@@ -187,7 +187,7 @@ + switch (memory)
+ {
+ case MEM_FLASH:
+- return 2;
++ return 32;
+ case MEM_EEPROM:
+ return 8;
+ case MEM_ID:
+@@ -215,11 +215,17 @@ + {
+ show_progress(OP_ERASING, type(), memory, 0);
+ open(params);
+- // erase 0x800-0x4000 //!!! 18f24j50 change
++ // erase 0x800-0x4000
+ command.erase_flash.echo = ++command_id;
+ command.erase_flash.addr_hi = 0x08;
+ command.erase_flash.addr_lo = 0x00;
+- command.erase_flash.size_x64 = 0x0D;
++ command.erase_flash.size_x64 = 0xE0;
++ transaction(&command, &response);
++ // erase 0x4000-0x6000
++ command.erase_flash.echo = ++command_id;
++ command.erase_flash.addr_hi = 0x40;
++ command.erase_flash.addr_lo = 0x00;
++ command.erase_flash.size_x64 = 0x80;
+ transaction(&command, &response);
+ close();
+ show_progress(OP_ERASING, type(), memory, OPERATION_DONE);
+@@ -379,9 +385,8 @@ + command.write_flash.echo = ++command_id;
+ command.write_flash.addr_hi = (unsigned char)((address >> 8) & 0xFF);
+ command.write_flash.addr_lo = (unsigned char)(address & 0xFF);
+- command.write_flash.flush = (unsigned char) 0xff;
+ // size must be 8 dividable
+- //eAssert(size % 8 == 0);
++ eAssert(size % 8 == 0);
+ command.write_flash.size8 = size;
+ transaction(&command, &response);
+ show_progress(OP_PROGRAMMING, type(), memory, buffer->progress());
|