comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 760:e16e636def61

2.74 release
author heinrichsweikamp
date Sun, 01 Dec 2013 10:33:12 +0100
parents 4f3c91ef3bfe
children ff2b4f5fad9c
comparison
equal deleted inserted replaced
759:ae830d5e63ef 760:e16e636def61
55 #DEFINE SPBRG_VALUE d'68' 55 #DEFINE SPBRG_VALUE d'68'
56 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL) 56 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL)
57 ; #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy 57 ; #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy
58 #DEFINE SSPADD_VALUE d'32' ; 200kHz I2C clock @ 32MHz Fcy 58 #DEFINE SSPADD_VALUE d'32' ; 200kHz I2C clock @ 32MHz Fcy
59 #DEFINE SSPSTAT_VALUE b'00000000' ; with slew rate control 59 #DEFINE SSPSTAT_VALUE b'00000000' ; with slew rate control
60 ; #DEFINE T0CON_VALUE b'00010000' ; Timer0 1:2 -> 32ms 60 ; #DEFINE T0CON_VALUE b'00010000' ; Timer0 1:2 -> 32ms
61 #DEFINE T0CON_VALUE b'00010011' ; Timer0 1:16 -> 256ms 61 ; #DEFINE T0CON_VALUE b'00010011' ; Timer0 1:16 -> 256ms
62 #DEFINE T0CON_VALUE b'00010010' ; Timer0 1:8 -> 128ms
62 #DEFINE SPEED_32MHz 63 #DEFINE SPEED_32MHz
63 64
64 #DEFINE FT_SMALL .0 65 #DEFINE FT_SMALL .0
65 #DEFINE FT_MEDIUM .1 66 #DEFINE FT_MEDIUM .1
66 #DEFINE FT_LARGE .2 67 #DEFINE FT_LARGE .2
361 safety_stop_countdown res 1 ; counts seconds of safety stop 362 safety_stop_countdown res 1 ; counts seconds of safety stop
362 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available 363 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available
363 364
364 marker_depth res 2 ; rel. pressure [mbar] of last set marker 365 marker_depth res 2 ; rel. pressure [mbar] of last set marker
365 marker_time res 3 ; divetime mins:2 and sec of last marker 366 marker_time res 3 ; divetime mins:2 and sec of last marker
367
368 sim_btm_time res 1 ; Simulated bottom time
369 sim_btm_depth res 1 ; Simulated max depth
370 sim_CNS res 1 ; Backup CNS value during decoplanning.
371
366 372
367 373
368 ASSERT_BANK1 MACRO tag 374 ASSERT_BANK1 MACRO tag
369 Ifdef __DEBUG 375 Ifdef __DEBUG
370 local @end 376 local @end