0
|
1 ;=============================================================================
|
|
2 ;
|
629
|
3 ; File eeprom_rs232.inc combined next generation V3.06.1
|
0
|
4 ;
|
|
5 ;
|
|
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
7 ;=============================================================================
|
|
8 ; HISTORY
|
|
9 ; 2011-08-03 : [mH] moving from OSTC code
|
|
10
|
582
|
11
|
0
|
12 write_int_eeprom macro eeprom_address
|
|
13 movlw eeprom_address
|
|
14 call write_int_eeprom_1
|
|
15 endm
|
|
16
|
582
|
17 read_int_eeprom macro eeprom_address
|
0
|
18 movlw eeprom_address
|
|
19 call read_int_eeprom_1
|
|
20 endm
|
|
21
|
582
|
22
|
|
23 extern enable_rs232
|
|
24 extern disable_rs232
|
|
25 extern rs232_get_byte
|
|
26 extern rs232_wait_tx
|
|
27 extern rs232_wait_tx2
|
623
|
28
|
582
|
29 extern enable_ir_s8
|
|
30 extern disable_ir_s8
|
|
31
|
0
|
32 extern write_int_eeprom_1
|
|
33 extern read_int_eeprom_1
|
|
34 extern read_eeprom
|
|
35 extern write_eeprom
|
629
|
36
|
582
|
37 extern update_battery_registers
|
623
|
38 extern retrieve_battery_registers
|
629
|
39
|
582
|
40 extern vault_decodata_into_eeprom
|
|
41 extern restore_decodata_from_eeprom
|
629
|
42
|
582
|
43 extern do_logoffset_common_write
|
|
44 extern do_logoffset_common_read
|
|
45 extern eeprom_reset_logbook_pointers
|
623
|
46
|
|
47 extern reset_battery_pointer ; reset battery pointer 0x07-0x0C and battery_gauge
|
|
48 extern reset_battery_internal_only ; reset internal battery registers only
|