///////////////////////////////////////////////////////////////////////////////
//
// IAR C/C++ Compiler V2.10.4.157 for STM8                10/Aug/2020  13:50:18
// Copyright 2010-2015 IAR Systems AB.
//
//    Source file  =  F:\2-Lora\Code\stm8l151K6T6-WLAN\USER\main.c
//    Command line =  
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\USER\main.c -e -Ol --no_cse
//        --no_unroll --no_inline --no_code_motion --no_tbaa --no_cross_call
//        --debug --code_model small --data_model medium -o
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\Debug\Obj\ --dlib_config
//        E:\IAR\stm8\LIB\dlstm8smf.h -lB
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\Debug\List\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\FWLIB\inc\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\FWLIB\src\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\USER\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\BSP\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\radio\ -I
//        F:\2-Lora\Code\stm8l151K6T6-WLAN\SX1278\ --vregs 16
//    List file    =  F:\2-Lora\Code\stm8l151K6T6-WLAN\Debug\List\main.s
//
///////////////////////////////////////////////////////////////////////////////

        EXTERN GPIO_ToggleBits
        EXTERN UserTest
        EXTERN bsp_init

        PUBLIC main

// F:\2-Lora\Code\stm8l151K6T6-WLAN\USER\main.c
//    1 #include "user.h"

        SECTION `.near_func.text`:CODE:REORDER:NOROOT(0)
        CODE
//    2 void main(void)
//    3 {
//    4       bsp_init();
main:
        CALL      L:bsp_init
//    5       GPIO_ToggleBits(LED_GPIO,LED2_PIN);
        LD        A, #0x10
        LDW       X, #0x5000
        CALL      L:GPIO_ToggleBits
//    6       while(1)
//    7       {
//    8         UserTest();
??main_0:
        CALL      L:UserTest
        JRA       L:??main_0
//    9         //halt();
//   10       }
//   11 }

        SECTION VREGS:DATA:REORDER:NOROOT(0)

        END
// 
// 16 bytes in section .near_func.text
// 
// 16 bytes of CODE memory
//
//Errors: none
//Warnings: none
