comparison src/hwos.inc @ 624:7bdcc591196c

Support for Compass3 hardware
author heinrichsweikamp
date Thu, 13 Jun 2019 10:07:55 +0200
parents c40025d8e750
children cd58f7fc86db
comparison
equal deleted inserted replaced
623:c40025d8e750 624:7bdcc591196c
442 #DEFINE analog_switches HW_variants,4 ; =1: analog switches available 442 #DEFINE analog_switches HW_variants,4 ; =1: analog switches available
443 #DEFINE battery_is_36v HW_variants,5 ; =1: a 3.6 Volt battery is detected 443 #DEFINE battery_is_36v HW_variants,5 ; =1: a 3.6 Volt battery is detected
444 #DEFINE cc_active HW_variants,6 ; =1: constant current charging active (cR hardware only) 444 #DEFINE cc_active HW_variants,6 ; =1: constant current charging active (cR hardware only)
445 #DEFINE cv_active HW_variants,7 ; =1: constant voltage charging active (cR hardware only) 445 #DEFINE cv_active HW_variants,7 ; =1: constant voltage charging active (cR hardware only)
446 446
447 #DEFINE compass_type3 HW_variants2,0 ; =1: compass 3, =0: compass 0, 1 or 2
448
447 449
448 ;---- Hardware - States (stored in access RAM) 450 ;---- Hardware - States (stored in access RAM)
449 #DEFINE analog_sw1_pressed HW_flags_state,0 ; =1: analog switch 1 pressed 451 #DEFINE analog_sw1_pressed HW_flags_state,0 ; =1: analog switch 1 pressed
450 #DEFINE analog_sw2_pressed HW_flags_state,1 ; =1: analog switch 2 pressed 452 #DEFINE analog_sw2_pressed HW_flags_state,1 ; =1: analog switch 2 pressed
451 #DEFINE switch_left HW_flags_state,2 ; =1: left button was pressed 453 #DEFINE switch_left HW_flags_state,2 ; =1: left button was pressed
811 813
812 ifndef ACCESS_RAM_VARS 814 ifndef ACCESS_RAM_VARS
813 815
814 extern HW_descriptor 816 extern HW_descriptor
815 extern HW_variants 817 extern HW_variants
818 extern HW_variants2
816 819
817 extern HW_flags_state 820 extern HW_flags_state
818 821
819 extern OS_flags_persist 822 extern OS_flags_persist
820 extern OS_flags_ISR1 823 extern OS_flags_ISR1