0
|
1 ;=============================================================================
|
|
2 ;
|
582
|
3 ; File eeprom_rs232.inc V2.98
|
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
|
|
28 extern enable_ir_s8
|
|
29 extern disable_ir_s8
|
|
30
|
0
|
31 extern write_int_eeprom_1
|
|
32 extern read_int_eeprom_1
|
|
33 extern read_eeprom
|
|
34 extern write_eeprom
|
582
|
35 extern update_battery_registers
|
|
36 extern vault_decodata_into_eeprom
|
|
37 extern restore_decodata_from_eeprom
|
|
38 extern do_logoffset_common_write
|
|
39 extern do_logoffset_common_read
|
|
40 extern reset_battery_internal_only
|
|
41 extern eeprom_reset_logbook_pointers
|