0
|
1 ;=============================================================================
|
|
2 ;
|
623
|
3 ; File eeprom_rs232.inc combined next generation V3.03.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
|
|
29 IFDEF _external_sensor
|
582
|
30 extern enable_ir_s8
|
|
31 extern disable_ir_s8
|
623
|
32 ENDIF
|
582
|
33
|
0
|
34 extern write_int_eeprom_1
|
|
35 extern read_int_eeprom_1
|
|
36 extern read_eeprom
|
|
37 extern write_eeprom
|
582
|
38 extern update_battery_registers
|
623
|
39 extern retrieve_battery_registers
|
582
|
40 extern vault_decodata_into_eeprom
|
|
41 extern restore_decodata_from_eeprom
|
|
42 extern do_logoffset_common_write
|
|
43 extern do_logoffset_common_read
|
|
44 extern eeprom_reset_logbook_pointers
|
623
|
45
|
|
46 extern reset_battery_pointer ; reset battery pointer 0x07-0x0C and battery_gauge
|
|
47 extern reset_battery_internal_only ; reset internal battery registers only
|