Mercurial > public > hwos_code
comparison src/start.asm @ 359:2be48ccfa9de
make AUTO SP available on OSTC2 hardware
author | heinrichsweikamp |
---|---|
date | Mon, 03 Aug 2015 17:27:05 +0200 |
parents | 2811932b4e99 |
children | a9e35c1327aa |
comparison
equal
deleted
inserted
replaced
358:366f8b31f222 | 359:2be48ccfa9de |
---|---|
349 | 349 |
350 restart_set_modes_and_flags2: | 350 restart_set_modes_and_flags2: |
351 decfsz lo,F | 351 decfsz lo,F |
352 bra restart_set_modes_and_flags3 | 352 bra restart_set_modes_and_flags3 |
353 ; CC Mode | 353 ; CC Mode |
354 btfsc analog_o2_input ; cR? | |
355 bra restart_set_modes_and_flags2b ; Yes, skip mode check | |
356 btfsc optical_input ; 3 | |
357 bra restart_set_modes_and_flags2b ; Yes, skip mode check | |
358 ; Make sure Sensor is not selected | |
359 ; opt_ccr_mode must be <> 1 (=0: Fixed SP, =1: Sensor, =2: Auto SP) | |
360 banksel opt_ccr_mode | |
361 movlw .1 | |
362 cpfseq opt_ccr_mode ; = Sensor? | |
363 bra restart_set_modes_and_flags2b ; No | |
364 clrf opt_ccr_mode ; Yes, reset to Fixed SP | |
365 restart_set_modes_and_flags2b: | |
366 banksel common | |
354 bsf FLAG_ccr_mode ; =1: CCR mode (Fixed SP, Auto SP or Sensor) active | 367 bsf FLAG_ccr_mode ; =1: CCR mode (Fixed SP, Auto SP or Sensor) active |
355 call enable_ir_s8 ; Enable IR/S8-Port | 368 call enable_ir_s8 ; Enable IR/S8-Port |
356 return | 369 return |
357 | 370 |
358 restart_set_modes_and_flags3: | 371 restart_set_modes_and_flags3: |