1 ; C Compiler for STM8 (COSMIC Software) 2 ; Parser V4.8.32 - 23 Mar 2010 3 ; Generator V4.3.4 - 23 Mar 2010 2742 ; 3 void GPIO_INIT(void) 2742 ; 4 { 2744 switch .text 2745 0000 _GPIO_INIT: 2749 ; 6 PA_DDR |= DDR_1; 2751 0000 72125002 bset _PA_DDR,#1 2752 ; 7 PA_CR1 |= CR1_1; 2754 0004 72125003 bset _PA_CR1,#1 2755 ; 8 PA_CR2 |= CR2_1; 2757 0008 72125004 bset _PA_CR2,#1 2758 ; 10 PA_DDR |= DDR_2; 2760 000c 72145002 bset _PA_DDR,#2 2761 ; 11 PA_CR1 |= CR1_2; 2763 0010 72145003 bset _PA_CR1,#2 2764 ; 12 PA_CR2 |= CR2_2; 2766 0014 72145004 bset _PA_CR2,#2 2767 ; 14 PA_DDR |= DDR_3; 2769 0018 72165002 bset _PA_DDR,#3 2770 ; 15 PA_CR1 |= CR1_3; 2772 001c 72165003 bset _PA_CR1,#3 2773 ; 16 PA_CR2 |= CR2_3; 2775 0020 72165004 bset _PA_CR2,#3 2776 ; 18 PC_DDR |= DDR_5; 2778 0024 721a500c bset _PC_DDR,#5 2779 ; 19 PC_CR1 |= CR1_5; 2781 0028 721a500d bset _PC_CR1,#5 2782 ; 20 PC_CR2 |= CR2_5; 2784 002c 721a500e bset _PC_CR2,#5 2785 ; 42 PD_DDR |= 0xFF; 2787 0030 c65011 ld a,_PD_DDR 2788 0033 aaff or a,#255 2789 0035 c75011 ld _PD_DDR,a 2790 ; 43 PD_CR1 |= 0xFF; 2792 0038 c65012 ld a,_PD_CR1 2793 003b aaff or a,#255 2794 003d c75012 ld _PD_CR1,a 2795 ; 44 PD_CR2 |= 0xFF; 2797 0040 c65013 ld a,_PD_CR2 2798 0043 aaff or a,#255 2799 0045 c75013 ld _PD_CR2,a 2800 ; 47 COLD = 0; 2802 0048 7219500f bres _COLD 2803 ; 48 HEAT = 0; 2805 004c 7213500f bres _HEAT 2806 ; 49 COLLECT_FAN = 0; 2808 0050 72135000 bres _COLLECT_FAN 2809 ; 50 COOL = 0; 2811 0054 72155000 bres _COOL 2812 ; 51 REST = 1; 2814 0058 72165000 bset _REST 2815 ; 52 TURN = 0; 2817 005c 721b500a bres _TURN 2818 ; 55 } 2821 0060 81 ret 2834 xdef _GPIO_INIT 2853 end