comparison src/start.asm @ 275:653a3ab08062

rename into hwOS
author heinrichsweikamp
date Thu, 07 May 2015 13:11:14 +0200
parents f64afa14ef07
children e4cb495aed3d
comparison
equal deleted inserted replaced
274:9347893b74ce 275:653a3ab08062
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
9 ; HISTORY 9 ; HISTORY
10 ; 2011-08-06 : [mH] moving from OSTC code 10 ; 2011-08-06 : [mH] moving from OSTC code
11 11
12 #include "ostc3.inc" ; Mandatory header 12 #include "hwos.inc" ; Mandatory header
13 #include "ms5541.inc" 13 #include "ms5541.inc"
14 #include "isr.inc" 14 #include "isr.inc"
15 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c 15 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c
16 #include "eeprom_rs232.inc" 16 #include "eeprom_rs232.inc"
17 #include "math.inc" 17 #include "math.inc"
24 #include "strings.inc" 24 #include "strings.inc"
25 #include "tft_outputs.inc" 25 #include "tft_outputs.inc"
26 #include "adc_lightsensor.inc" 26 #include "adc_lightsensor.inc"
27 #include "i2c.inc" 27 #include "i2c.inc"
28 28
29 extern init_ostc3 29 extern init_ostc
30 extern option_restore_all 30 extern option_restore_all
31 31
32 ;============================================================================= 32 ;=============================================================================
33 ; Reset vector: What to do on device wake-up and hard reset. 33 ; Reset vector: What to do on device wake-up and hard reset.
34 ; 34 ;
48 clrf POSTINC0 48 clrf POSTINC0
49 movlw 0x0F 49 movlw 0x0F
50 cpfseq FSR0H ; Bank 14 done? 50 cpfseq FSR0H ; Bank 14 done?
51 bra clear_rambank ; clear... 51 bra clear_rambank ; clear...
52 52
53 call init_ostc3 53 call init_ostc
54 bsf no_sensor_int ; disable sensor interrupt 54 bsf no_sensor_int ; disable sensor interrupt
55 55
56 ; Air pressure compensation after reset 56 ; Air pressure compensation after reset
57 call get_calibration_data ; Get calibration data from pressure sensor 57 call get_calibration_data ; Get calibration data from pressure sensor
58 banksel common ; get_calibration_data uses isr_backup 58 banksel common ; get_calibration_data uses isr_backup