comparison src/surfmode.asm @ 221:90923a081ae7

minor: configure buttons during splash screen
author heinrichsweikamp
date Mon, 05 Jan 2015 16:13:15 +0100
parents 3b5df65d53fc
children 8c11f60193be
comparison
equal deleted inserted replaced
220:effd7259f5a5 221:90923a081ae7
42 ;============================================================================= 42 ;=============================================================================
43 ; Boot tasks for all modes 43 ; Boot tasks for all modes
44 global surfloop 44 global surfloop
45 surfloop: 45 surfloop:
46 call speed_normal 46 call speed_normal
47 btfss cr_hardware
48 call piezo_config ; Configure buttons
49 bcf no_sensor_int ; Normal pressure mode 47 bcf no_sensor_int ; Normal pressure mode
50 48
51 clrf CCP1CON ; stop PWM 49 clrf CCP1CON ; stop PWM
52 bcf PORTC,2 ; Pull PWM output to GND 50 bcf PORTC,2 ; Pull PWM output to GND
53 call TFT_boot ; Initialize TFT (includes clear screen) 51 call TFT_boot ; Initialize TFT (includes clear screen)
83 call I2C_init_compass 81 call I2C_init_compass
84 call I2C_init_accelerometer 82 call I2C_init_accelerometer
85 clrf ext_flash_address+0 83 clrf ext_flash_address+0
86 clrf ext_flash_address+1 84 clrf ext_flash_address+1
87 clrf ext_flash_address+2 85 clrf ext_flash_address+2
86
87 btfss cr_hardware
88 call piezo_config ; Configure buttons
88 89
89 clrf timeout_counter2 90 clrf timeout_counter2
90 clrf timeout_counter3 91 clrf timeout_counter3
91 bcf menubit ; clear menu flag 92 bcf menubit ; clear menu flag
92 clrf last_pressure+0 93 clrf last_pressure+0