; generated by Component: ARM Compiler 5.05 update 2 (build 169) Tool: ArmCC [4d0f38]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\bma2x2_user.o --asm_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\bma2x2_user.d --cpu=Cortex-M4.fp --apcs=interwork -O0 --diag_suppress=9931,1,1293 -I..\..\..\..\Board\fire_F429 -I..\..\..\..\Demos\fire\ov2640 -I..\..\..\..\include -I..\..\..\..\libraries\utilities -I..\..\..\..\libraries\utilities\json_c -I..\..\..\..\MICO\core -I..\..\..\..\MICO\security -I..\..\..\..\MICO\system -I..\..\..\..\MICO\system\command_console -I..\..\..\..\Platform\include -I..\..\..\..\Platform\Cortex-M4 -I..\..\..\..\Platform\Cortex-M4\CMSIS -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries -I..\..\..\..\Platform\MCU\STM32F4xx\wlan_bus_driver -I..\..\..\..\Platform\Drivers\spi_flash -I..\..\..\..\Platform\Drivers -I..\..\..\..\libraries\daemons\homekit_server -I..\..\..\..\libraries\daemons\http_server -I..\..\..\..\Platform\Drivers\malloc -I..\..\..\..\Platform\Drivers\SDRAM -I..\..\..\..\Platform\Drivers\ov5640 -IG:\GIT_OSC\STM32_develop\F429-V2\develop\6-WIFI\STM32-WiFi\3.wifi_ov5640\Projects\STM32F429\demo\RVMDK\RTE -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -IC:\Keil_v5\ARM\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__UVISION_VERSION=515 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DDEBUG -DHSE_VALUE=25000000 -DOV5640 --omf_browse=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\bma2x2_user.crf ..\..\..\..\Platform\Drivers\sensor\BMA2x2\bma2x2_user.c]
                          THUMB

                          AREA ||i.BMA2x2_I2C_bus_read||, CODE, READONLY, ALIGN=2

                  BMA2x2_I2C_bus_read PROC
;;;347     */
;;;348    s8 BMA2x2_I2C_bus_read(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt)
000000  e92d41f0          PUSH     {r4-r8,lr}
;;;349    {
000004  b088              SUB      sp,sp,#0x20
000006  4680              MOV      r8,r0
000008  460d              MOV      r5,r1
00000a  4617              MOV      r7,r2
00000c  461e              MOV      r6,r3
;;;350            mico_i2c_message_t bma2x2_i2c_msg = {NULL, NULL, 0, 0, 0, false};
00000e  2000              MOVS     r0,#0
000010  9004              STR      r0,[sp,#0x10]
000012  9005              STR      r0,[sp,#0x14]
000014  9006              STR      r0,[sp,#0x18]
000016  9007              STR      r0,[sp,#0x1c]
;;;351    	s32 iError = 0;
000018  2400              MOVS     r4,#0
;;;352    	u8 array[I2C_BUFFER_LEN] = {0};
00001a  9002              STR      r0,[sp,#8]
00001c  9003              STR      r0,[sp,#0xc]
;;;353    //	u8 stringpos = 0;
;;;354    	array[0] = reg_addr;
00001e  f88d5008          STRB     r5,[sp,#8]
;;;355    	/* Please take the below function as your reference
;;;356    	 * for read the data using I2C communication
;;;357    	 * add your I2C rad function here.
;;;358    	 * "IERROR = I2C_WRITE_READ_STRING(DEV_ADDR, ARRAY, ARRAY, 1, CNT)"
;;;359    	 * iError is an return value of SPI write function
;;;360    	 * Please select your valid return value
;;;361         * In the driver SUCCESS defined as 0
;;;362         * and FAILURE defined as -1
;;;363    	 */
;;;364            
;;;365            iError = MicoI2cBuildCombinedMessage(&bma2x2_i2c_msg, array, reg_data, 1, cnt, 3);
000022  2003              MOVS     r0,#3
000024  2301              MOVS     r3,#1
000026  463a              MOV      r2,r7
000028  a902              ADD      r1,sp,#8
00002a  e9cd6000          STRD     r6,r0,[sp,#0]
00002e  a804              ADD      r0,sp,#0x10
000030  f7fffffe          BL       MicoI2cBuildCombinedMessage
000034  4604              MOV      r4,r0
;;;366             if(0 != iError){
000036  b11c              CBZ      r4,|L1.64|
;;;367              return (s8)iError; 
000038  b260              SXTB     r0,r4
                  |L1.58|
;;;368            }
;;;369            iError = MicoI2cTransfer(&bma2x2_i2c_device, &bma2x2_i2c_msg, 1);
;;;370            if(0 != iError){
;;;371              return (s8)iError;
;;;372            }
;;;373            
;;;374    //	for (stringpos = 0; stringpos < cnt; stringpos++) {
;;;375    //		*(reg_data + stringpos) = array[stringpos];
;;;376    //	}
;;;377    	return (s8)iError;
;;;378    }
00003a  b008              ADD      sp,sp,#0x20
00003c  e8bd81f0          POP      {r4-r8,pc}
                  |L1.64|
000040  2201              MOVS     r2,#1                 ;369
000042  a904              ADD      r1,sp,#0x10           ;369
000044  4804              LDR      r0,|L1.88|
000046  f7fffffe          BL       MicoI2cTransfer
00004a  4604              MOV      r4,r0                 ;369
00004c  b10c              CBZ      r4,|L1.82|
00004e  b260              SXTB     r0,r4                 ;371
000050  e7f3              B        |L1.58|
                  |L1.82|
000052  b260              SXTB     r0,r4                 ;377
000054  e7f1              B        |L1.58|
;;;379    
                          ENDP

000056  0000              DCW      0x0000
                  |L1.88|
                          DCD      bma2x2_i2c_device

                          AREA ||i.BMA2x2_I2C_bus_write||, CODE, READONLY, ALIGN=2

                  BMA2x2_I2C_bus_write PROC
;;;306     */
;;;307    s8 BMA2x2_I2C_bus_write(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt)
000000  e92d43f0          PUSH     {r4-r9,lr}
;;;308    {
000004  b087              SUB      sp,sp,#0x1c
000006  4681              MOV      r9,r0
000008  460e              MOV      r6,r1
00000a  4617              MOV      r7,r2
00000c  461d              MOV      r5,r3
;;;309            mico_i2c_message_t bma2x2_i2c_msg = {NULL, NULL, 0, 0, 0, false};
00000e  2000              MOVS     r0,#0
000010  9003              STR      r0,[sp,#0xc]
000012  9004              STR      r0,[sp,#0x10]
000014  9005              STR      r0,[sp,#0x14]
000016  9006              STR      r0,[sp,#0x18]
;;;310    	s32 iError = 0;
000018  4680              MOV      r8,r0
;;;311    	u8 array[I2C_BUFFER_LEN];
;;;312    	u8 stringpos = 0;
00001a  2400              MOVS     r4,#0
;;;313    	array[0] = reg_addr;
00001c  f88d6004          STRB     r6,[sp,#4]
;;;314    	for (stringpos = 0; stringpos < cnt; stringpos++) {
000020  bf00              NOP      
000022  e004              B        |L2.46|
                  |L2.36|
;;;315    		array[stringpos + 1] = *(reg_data + stringpos);
000024  5d39              LDRB     r1,[r7,r4]
000026  aa01              ADD      r2,sp,#4
000028  1c60              ADDS     r0,r4,#1
00002a  5411              STRB     r1,[r2,r0]
00002c  b2c4              UXTB     r4,r0                 ;314
                  |L2.46|
00002e  42ac              CMP      r4,r5                 ;314
000030  dbf8              BLT      |L2.36|
;;;316    	}
;;;317    	/*
;;;318    	* Please take the below function as your reference for
;;;319    	* write the data using I2C communication
;;;320    	* "IERROR = I2C_WRITE_STRING(DEV_ADDR, ARRAY, CNT+1)"
;;;321    	* add your I2C write function here
;;;322    	* iError is an return value of I2C read function
;;;323    	* Please select your valid return value
;;;324    	* In the driver SUCCESS defined as 0
;;;325        * and FAILURE defined as -1
;;;326    	* Note :
;;;327    	* This is a full duplex operation,
;;;328    	* The first read data is discarded, for that extra write operation
;;;329    	* have to be initiated. For that cnt+1 operation done in the I2C write string function
;;;330    	* For more information please refer data sheet SPI communication:
;;;331    	*/
;;;332            iError = MicoI2cBuildTxMessage(&bma2x2_i2c_msg, array, cnt + 1, 3);
000032  2303              MOVS     r3,#3
000034  1c6a              ADDS     r2,r5,#1
000036  a901              ADD      r1,sp,#4
000038  a803              ADD      r0,sp,#0xc
00003a  f7fffffe          BL       MicoI2cBuildTxMessage
00003e  4680              MOV      r8,r0
;;;333            iError = MicoI2cTransfer(&bma2x2_i2c_device, &bma2x2_i2c_msg, 1);
000040  2201              MOVS     r2,#1
000042  a903              ADD      r1,sp,#0xc
000044  4806              LDR      r0,|L2.96|
000046  f7fffffe          BL       MicoI2cTransfer
00004a  4680              MOV      r8,r0
;;;334            if(0 != iError){
00004c  f1b80f00          CMP      r8,#0
000050  d001              BEQ      |L2.86|
;;;335              iError = -1;
000052  f04f38ff          MOV      r8,#0xffffffff
                  |L2.86|
;;;336            }
;;;337            
;;;338    	return (s8)iError;
000056  fa4ff088          SXTB     r0,r8
;;;339    }
00005a  b007              ADD      sp,sp,#0x1c
00005c  e8bd83f0          POP      {r4-r9,pc}
;;;340    
                          ENDP

                  |L2.96|
                          DCD      bma2x2_i2c_device

                          AREA ||i.BMA2x2_I2C_routine||, CODE, READONLY, ALIGN=2

                  BMA2x2_I2C_routine PROC
;;;230    *-------------------------------------------------------------------------*/
;;;231    s8 BMA2x2_I2C_routine(void) {
000000  4805              LDR      r0,|L3.24|
;;;232    /*--------------------------------------------------------------------------*
;;;233     *  By using bma2x2 the following structure parameter can be accessed
;;;234     *	Bus write function pointer: BMA2x2_WR_FUNC_PTR
;;;235     *	Bus read function pointer: BMA2x2_RD_FUNC_PTR
;;;236     *	Delay function pointer: delay_msec
;;;237     *	I2C address: dev_addr
;;;238     *--------------------------------------------------------------------------*/
;;;239    	bma2x2.bus_write = BMA2x2_I2C_bus_write;
000002  4906              LDR      r1,|L3.28|
000004  6088              STR      r0,[r1,#8]  ; bma2x2
;;;240    	bma2x2.bus_read = BMA2x2_I2C_bus_read;
000006  4806              LDR      r0,|L3.32|
000008  60c8              STR      r0,[r1,#0xc]  ; bma2x2
;;;241    	bma2x2.delay_msec = BMA2x2_delay_msek;
00000a  4806              LDR      r0,|L3.36|
00000c  6148              STR      r0,[r1,#0x14]  ; bma2x2
;;;242    	bma2x2.dev_addr = BMA2x2_I2C_ADDR2;
00000e  2019              MOVS     r0,#0x19
000010  7108              STRB     r0,[r1,#4]
;;;243    
;;;244    	return 0;
000012  2000              MOVS     r0,#0
;;;245    }
000014  4770              BX       lr
;;;246    
                          ENDP

000016  0000              DCW      0x0000
                  |L3.24|
                          DCD      BMA2x2_I2C_bus_write
                  |L3.28|
                          DCD      bma2x2
                  |L3.32|
                          DCD      BMA2x2_I2C_bus_read
                  |L3.36|
                          DCD      BMA2x2_delay_msek

                          AREA ||i.BMA2x2_SPI_bus_read||, CODE, READONLY, ALIGN=2

                  BMA2x2_SPI_bus_read PROC
;;;385     *	\param cnt : The no of byte of data to be read */
;;;386    s8 BMA2x2_SPI_bus_read(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt)
000000  b5fc              PUSH     {r2-r7,lr}
;;;387    {
000002  4606              MOV      r6,r0
000004  460c              MOV      r4,r1
;;;388    	s32 iError=0;
000006  2500              MOVS     r5,#0
;;;389    	u8 array[SPI_BUFFER_LEN]={0xFF};
000008  4f09              LDR      r7,|L4.48|
00000a  cf81              LDM      r7,{r0,r7}
00000c  e9cd0700          STRD     r0,r7,[sp,#0]
;;;390    	u8 stringpos;
;;;391    	/*	For the SPI mode only 7 bits of register addresses are used.
;;;392    	The MSB of register address is declared the bit what functionality it is
;;;393    	read/write (read as 1/write as 0)*/
;;;394    	array[0] = reg_addr|0x80;/*read routine is initiated register address is mask with 0x80*/
000010  f0440080          ORR      r0,r4,#0x80
000014  f88d0000          STRB     r0,[sp,#0]
;;;395    	/*
;;;396    	* Please take the below function as your reference for
;;;397    	* read the data using SPI communication
;;;398    	* " IERROR = SPI_READ_WRITE_STRING(ARRAY, ARRAY, CNT+1)"
;;;399    	* add your SPI read function here
;;;400    	* iError is an return value of SPI read function
;;;401    	* Please select your valid return value
;;;402    	* In the driver SUCCESS defined as 0
;;;403        * and FAILURE defined as -1
;;;404    	* Note :
;;;405    	* This is a full duplex operation,
;;;406    	* The first read data is discarded, for that extra write operation
;;;407    	* have to be initiated. For that cnt+1 operation done in the SPI read
;;;408    	* and write string function
;;;409    	* For more information please refer data sheet SPI communication:
;;;410    	*/
;;;411    	for (stringpos = 0; stringpos < cnt; stringpos++) {
000018  2100              MOVS     r1,#0
00001a  e005              B        |L4.40|
                  |L4.28|
;;;412    		*(reg_data + stringpos) = array[stringpos+1];
00001c  1c48              ADDS     r0,r1,#1
00001e  f81d0000          LDRB     r0,[sp,r0]
000022  5450              STRB     r0,[r2,r1]
000024  1c48              ADDS     r0,r1,#1              ;411
000026  b2c1              UXTB     r1,r0                 ;411
                  |L4.40|
000028  4299              CMP      r1,r3                 ;411
00002a  dbf7              BLT      |L4.28|
;;;413    	}
;;;414    	return (s8)iError;
00002c  b268              SXTB     r0,r5
;;;415    }
00002e  bdfc              POP      {r2-r7,pc}
;;;416    //
                          ENDP

                  |L4.48|
                          DCD      ||.constdata||

                          AREA ||i.BMA2x2_delay_msek||, CODE, READONLY, ALIGN=1

                  BMA2x2_delay_msek PROC
;;;451    */
;;;452    void BMA2x2_delay_msek(u32 msek)
000000  b510              PUSH     {r4,lr}
;;;453    {
000002  4604              MOV      r4,r0
;;;454    	/*Here you can write your own delay routine*/
;;;455      mico_thread_msleep(msek);
000004  4620              MOV      r0,r4
000006  f7fffffe          BL       msleep
;;;456    }
00000a  bd10              POP      {r4,pc}
;;;457    #endif
                          ENDP


                          AREA ||i.bma2x2_data_readout||, CODE, READONLY, ALIGN=2

                  bma2x2_data_readout PROC
;;;517    
;;;518    OSStatus bma2x2_data_readout(s16 *v_accel_x_s16, s16 *v_accel_y_s16, s16 *v_accel_z_s16)
000000  e92d41f0          PUSH     {r4-r8,lr}
;;;519    {
000004  4607              MOV      r7,r0
000006  460d              MOV      r5,r1
000008  4616              MOV      r6,r2
;;;520      OSStatus err = kUnknownErr;
00000a  f8df8030          LDR      r8,|L6.60|
;;;521      
;;;522      /* result of communication results*/
;;;523      s32 com_rslt = BMA2x2_ERROR;
00000e  f04f34ff          MOV      r4,#0xffffffff
;;;524      
;;;525      //-------------------------- NOTE ----------------------------------
;;;526      // this is to avoid i2c pin is re-init by other module because they use the same pin.
;;;527      MicoI2cInitialize(&bma2x2_i2c_device);
000012  480b              LDR      r0,|L6.64|
000014  f7fffffe          BL       MicoI2cInitialize
;;;528      //------------------------------------------------------------------
;;;529        
;;;530      /************ START READ TRUE PRESSURE, TEMPERATURE AND HUMIDITY DATA *********/
;;;531    
;;;532      com_rslt = bma2x2_read_accel_x(v_accel_x_s16);/* Read the accel X data*/
000018  4638              MOV      r0,r7
00001a  f7fffffe          BL       bma2x2_read_accel_x
00001e  4604              MOV      r4,r0
;;;533    
;;;534      com_rslt += bma2x2_read_accel_y(v_accel_y_s16);/* Read the accel Y data*/
000020  4628              MOV      r0,r5
000022  f7fffffe          BL       bma2x2_read_accel_y
000026  4404              ADD      r4,r4,r0
;;;535    
;;;536      com_rslt += bma2x2_read_accel_z(v_accel_z_s16);/* Read the accel Z data*/
000028  4630              MOV      r0,r6
00002a  f7fffffe          BL       bma2x2_read_accel_z
00002e  4404              ADD      r4,r4,r0
;;;537      
;;;538      /************ END READ TRUE PRESSURE, TEMPERATURE AND HUMIDITY ********/
;;;539      
;;;540      if(0 == com_rslt){
000030  b90c              CBNZ     r4,|L6.54|
;;;541        err = kNoErr;
000032  f04f0800          MOV      r8,#0
                  |L6.54|
;;;542      }
;;;543      return err;
000036  4640              MOV      r0,r8
;;;544    }
000038  e8bd81f0          POP      {r4-r8,pc}
;;;545    
                          ENDP

                  |L6.60|
                          DCD      0xffffe5d4
                  |L6.64|
                          DCD      bma2x2_i2c_device

                          AREA ||i.bma2x2_data_readout_template||, CODE, READONLY, ALIGN=2

                  bma2x2_data_readout_template PROC
;;;123     */
;;;124    s32 bma2x2_data_readout_template(void)
000000  b530              PUSH     {r4,r5,lr}
;;;125    {
000002  b089              SUB      sp,sp,#0x24
;;;126    	/*Local variables for reading accel x, y and z data*/
;;;127    	s16	v_accel_x_s16, v_accel_y_s16, v_accel_z_s16 = 0;
000004  2000              MOVS     r0,#0
000006  9006              STR      r0,[sp,#0x18]
;;;128    
;;;129    	/* bma2x2acc_data structure used to read accel xyz data*/
;;;130    	struct bma2x2_accel_data sample_xyz;
;;;131    	/* bma2x2acc_data_temp structure used to read accel xyz and temperature data*/
;;;132    	struct bma2x2_accel_data_temp sample_xyzt;
;;;133    	/* Local variable used to assign the bandwidth value*/
;;;134    	u8 v_bw_value_u8 = 0;
000008  2500              MOVS     r5,#0
;;;135    	/* Local variable used to set the bandwidth value*/
;;;136    	u8 banwid = 0;
00000a  9001              STR      r0,[sp,#4]
;;;137    	/* status of communication*/
;;;138    	s32 com_rslt = 0;
00000c  2400              MOVS     r4,#0
;;;139    
;;;140    
;;;141    /*********************** START INITIALIZATION ************************
;;;142      *	Based on the user need configure I2C or SPI interface.
;;;143      *	It is example code to explain how to use the bma2x2 API*/
;;;144    	#ifdef BMA2x2_API
;;;145    	BMA2x2_I2C_routine();
00000e  f7fffffe          BL       BMA2x2_I2C_routine
;;;146    	/*BMA2x2_SPI_routine(); */
;;;147    	#endif
;;;148     /*--------------------------------------------------------------------------*
;;;149     *  This function used to assign the value/reference of
;;;150     *	the following parameters
;;;151     *	I2C address
;;;152     *	Bus Write
;;;153     *	Bus read
;;;154     *	Chip id
;;;155     *-------------------------------------------------------------------------*/
;;;156    	com_rslt = bma2x2_init(&bma2x2);
000012  4816              LDR      r0,|L7.108|
000014  f7fffffe          BL       bma2x2_init
000018  4604              MOV      r4,r0
;;;157    
;;;158    /*	For initialization it is required to set the mode of
;;;159     *	the sensor as "NORMAL"
;;;160     *	NORMAL mode is set from the register 0x11 and 0x12
;;;161     *	0x11 -> bit 5,6,7 -> set value as 0
;;;162     *	0x12 -> bit 5,6 -> set value as 0
;;;163     *	data acquisition/read/write is possible in this mode
;;;164     *	by using the below API able to set the power mode as NORMAL
;;;165     *	For the Normal/standby/Low power 2 mode Idle time of at least 2us(micro seconds)
;;;166     *	required for read/write operations*/
;;;167    	/* Set the power mode as NORMAL*/
;;;168    	com_rslt += bma2x2_set_power_mode(BMA2x2_MODE_NORMAL);
00001a  2000              MOVS     r0,#0
00001c  f7fffffe          BL       bma2x2_set_power_mode
000020  4404              ADD      r4,r4,r0
;;;169    /*	Note:
;;;170    	*	For the Suspend/Low power1 mode Idle time of at least 450us(micro seconds)
;;;171    	*	required for read/write operations*/
;;;172    
;;;173    /************************* END INITIALIZATION *************************/
;;;174    
;;;175    /*------------------------------------------------------------------------*
;;;176    ************************* START GET and SET FUNCTIONS DATA ****************
;;;177    *---------------------------------------------------------------------------*/
;;;178    	/* This API used to Write the bandwidth of the sensor input
;;;179    	value have to be given
;;;180    	bandwidth is set from the register 0x10 bits from 1 to 4*/
;;;181    	v_bw_value_u8 = 0x08;/* set bandwidth of 7.81Hz*/
000022  2508              MOVS     r5,#8
;;;182    	com_rslt += bma2x2_set_bw(v_bw_value_u8);
000024  4628              MOV      r0,r5
000026  f7fffffe          BL       bma2x2_set_bw
00002a  4404              ADD      r4,r4,r0
;;;183    
;;;184    	/* This API used to read back the written value of bandwidth*/
;;;185    	com_rslt += bma2x2_get_bw(&banwid);
00002c  a801              ADD      r0,sp,#4
00002e  f7fffffe          BL       bma2x2_get_bw
000032  4404              ADD      r4,r4,r0
;;;186    /*-----------------------------------------------------------------*
;;;187    ************************* END GET and SET FUNCTIONS ****************
;;;188    *-------------------------------------------------------------------*/
;;;189    /*------------------------------------------------------------------*
;;;190    ************************* START READ SENSOR DATA(X,Y and Z axis) ********
;;;191    *---------------------------------------------------------------------*/
;;;192    	com_rslt += bma2x2_read_accel_x(&v_accel_x_s16);/* Read the accel X data*/
000034  a808              ADD      r0,sp,#0x20
000036  f7fffffe          BL       bma2x2_read_accel_x
00003a  4404              ADD      r4,r4,r0
;;;193    
;;;194    	com_rslt += bma2x2_read_accel_y(&v_accel_y_s16);/* Read the accel Y data*/
00003c  a807              ADD      r0,sp,#0x1c
00003e  f7fffffe          BL       bma2x2_read_accel_y
000042  4404              ADD      r4,r4,r0
;;;195    
;;;196    	com_rslt += bma2x2_read_accel_z(&v_accel_z_s16);/* Read the accel Z data*/
000044  a806              ADD      r0,sp,#0x18
000046  f7fffffe          BL       bma2x2_read_accel_z
00004a  4404              ADD      r4,r4,r0
;;;197    
;;;198    	/* accessing the bma2x2acc_data parameter by using sample_xyz*/
;;;199    	com_rslt += bma2x2_read_accel_xyz(&sample_xyz);/* Read the accel XYZ data*/
00004c  a804              ADD      r0,sp,#0x10
00004e  f7fffffe          BL       bma2x2_read_accel_xyz
000052  4404              ADD      r4,r4,r0
;;;200    
;;;201    	/* accessing the bma2x2acc_data_temp parameter by using sample_xyzt*/
;;;202    	com_rslt += bma2x2_read_accel_xyzt(&sample_xyzt);/* Read the accel XYZT data*/
000054  a802              ADD      r0,sp,#8
000056  f7fffffe          BL       bma2x2_read_accel_xyzt
00005a  4404              ADD      r4,r4,r0
;;;203    
;;;204    /*--------------------------------------------------------------------*
;;;205    ************************* END READ SENSOR DATA(X,Y and Z axis) ************
;;;206    *-------------------------------------------------------------------------*/
;;;207    /*-----------------------------------------------------------------------*
;;;208    ************************* START DE-INITIALIZATION ***********************
;;;209    *-------------------------------------------------------------------------*/
;;;210    /*	For de-initialization it is required to set the mode of
;;;211     *	the sensor as "DEEP SUSPEND"
;;;212     *	DEEP SUSPEND mode is set from the register 0x11
;;;213     *	0x11 -> bit 5 -> set value as 1
;;;214     *	the device reaches the lowest power consumption only
;;;215     *	interface selection is kept alive
;;;216     *	No data acquisition is performed
;;;217     *	by using the below API able to set the power mode as DEEPSUSPEND*/
;;;218     /* Set the power mode as DEEPSUSPEND*/
;;;219    	com_rslt += bma2x2_set_power_mode(BMA2x2_MODE_DEEP_SUSPEND);
00005c  2003              MOVS     r0,#3
00005e  f7fffffe          BL       bma2x2_set_power_mode
000062  4404              ADD      r4,r4,r0
;;;220    /*---------------------------------------------------------------------*
;;;221    ************************* END DE-INITIALIZATION **********************
;;;222    *---------------------------------------------------------------------*/
;;;223    return com_rslt;
000064  4620              MOV      r0,r4
;;;224    }
000066  b009              ADD      sp,sp,#0x24
000068  bd30              POP      {r4,r5,pc}
;;;225    
                          ENDP

00006a  0000              DCW      0x0000
                  |L7.108|
                          DCD      bma2x2

                          AREA ||i.bma2x2_sensor_deinit||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  bma2x2_sensor_deinit PROC
;;;545    
;;;546    OSStatus bma2x2_sensor_deinit(void)
000000  e92d41fc          PUSH     {r2-r8,lr}
;;;547    {
;;;548      OSStatus err = kUnknownErr;
000004  4c32              LDR      r4,|L8.208|
;;;549      s32 com_rslt = BMA2x2_ERROR;
000006  1365              ASRS     r5,r4,#13
;;;550      
;;;551      err = MicoI2cFinalize(&bma2x2_i2c_device);
000008  4832              LDR      r0,|L8.212|
00000a  f7fffffe          BL       MicoI2cFinalize
00000e  4604              MOV      r4,r0
;;;552      require_noerr_action( err, exit, bma2x2_user_log("BMA2x2_ERROR: MicoI2cFinalize err = %d.", err));
000010  bf00              NOP      
000012  4626              MOV      r6,r4
000014  2e00              CMP      r6,#0
000016  d04f              BEQ      |L8.184|
000018  bf00              NOP      
00001a  482f              LDR      r0,|L8.216|
00001c  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00001e  b900              CBNZ     r0,|L8.34|
000020  e021              B        |L8.102|
                  |L8.34|
000022  482e              LDR      r0,|L8.220|
000024  f7fffffe          BL       mico_rtos_lock_mutex
000028  215c              MOVS     r1,#0x5c
00002a  a02d              ADR      r0,|L8.224|
00002c  f7fffffe          BL       strrchr
000030  b128              CBZ      r0,|L8.62|
000032  215c              MOVS     r1,#0x5c
000034  a02a              ADR      r0,|L8.224|
000036  f7fffffe          BL       strrchr
00003a  1c40              ADDS     r0,r0,#1
00003c  e000              B        |L8.64|
                  |L8.62|
00003e  a028              ADR      r0,|L8.224|
                  |L8.64|
000040  4607              MOV      r7,r0
000042  f7fffffe          BL       mico_get_time
000046  4680              MOV      r8,r0
000048  a033              ADR      r0,|L8.280|
00004a  f44f710a          MOV      r1,#0x228
00004e  4b33              LDR      r3,|L8.284|
000050  463a              MOV      r2,r7
000052  e9cd1000          STRD     r1,r0,[sp,#0]
000056  4641              MOV      r1,r8
000058  a031              ADR      r0,|L8.288|
00005a  f7fffffe          BL       __2printf
00005e  481f              LDR      r0,|L8.220|
000060  f7fffffe          BL       mico_rtos_unlock_mutex
000064  bf00              NOP      
                  |L8.102|
000066  bf00              NOP      
000068  bf00              NOP      
00006a  481b              LDR      r0,|L8.216|
00006c  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00006e  b900              CBNZ     r0,|L8.114|
000070  e020              B        |L8.180|
                  |L8.114|
000072  481a              LDR      r0,|L8.220|
000074  f7fffffe          BL       mico_rtos_lock_mutex
000078  215c              MOVS     r1,#0x5c
00007a  a019              ADR      r0,|L8.224|
00007c  f7fffffe          BL       strrchr
000080  b128              CBZ      r0,|L8.142|
000082  215c              MOVS     r1,#0x5c
000084  a016              ADR      r0,|L8.224|
000086  f7fffffe          BL       strrchr
00008a  1c40              ADDS     r0,r0,#1
00008c  e000              B        |L8.144|
                  |L8.142|
00008e  a014              ADR      r0,|L8.224|
                  |L8.144|
000090  4607              MOV      r7,r0
000092  f7fffffe          BL       mico_get_time
000096  4680              MOV      r8,r0
000098  f44f700a          MOV      r0,#0x228
00009c  463b              MOV      r3,r7
00009e  a22a              ADR      r2,|L8.328|
0000a0  4641              MOV      r1,r8
0000a2  e9cd0400          STRD     r0,r4,[sp,#0]
0000a6  a02b              ADR      r0,|L8.340|
0000a8  f7fffffe          BL       __2printf
0000ac  480b              LDR      r0,|L8.220|
0000ae  f7fffffe          BL       mico_rtos_unlock_mutex
0000b2  bf00              NOP      
                  |L8.180|
0000b4  bf00              NOP      
0000b6  e007              B        |L8.200|
                  |L8.184|
0000b8  bf00              NOP      
;;;553      
;;;554    /*-----------------------------------------------------------------------*
;;;555    ************************* START DE-INITIALIZATION ***********************
;;;556    *-------------------------------------------------------------------------*/
;;;557    /*	For de-initialization it is required to set the mode of
;;;558     *	the sensor as "DEEP SUSPEND"
;;;559     *	DEEP SUSPEND mode is set from the register 0x11
;;;560     *	0x11 -> bit 5 -> set value as 1
;;;561     *	the device reaches the lowest power consumption only
;;;562     *	interface selection is kept alive
;;;563     *	No data acquisition is performed
;;;564     *	by using the below API able to set the power mode as DEEPSUSPEND*/
;;;565     /* Set the power mode as DEEPSUSPEND*/
;;;566    	com_rslt = bma2x2_set_power_mode(BMA2x2_MODE_DEEP_SUSPEND);
0000ba  2003              MOVS     r0,#3
0000bc  f7fffffe          BL       bma2x2_set_power_mode
0000c0  4605              MOV      r5,r0
;;;567    /*---------------------------------------------------------------------*
;;;568    ************************* END DE-INITIALIZATION **********************
;;;569    *---------------------------------------------------------------------*/
;;;570            
;;;571      if(0 == com_rslt){
0000c2  b905              CBNZ     r5,|L8.198|
;;;572        err = kNoErr;
0000c4  2400              MOVS     r4,#0
                  |L8.198|
;;;573      }
;;;574      
;;;575    exit:
0000c6  bf00              NOP      
                  |L8.200|
;;;576      return err;
0000c8  4620              MOV      r0,r4
;;;577    }
0000ca  e8bd81fc          POP      {r2-r8,pc}
;;;578    
                          ENDP

0000ce  0000              DCW      0x0000
                  |L8.208|
                          DCD      0xffffe5d4
                  |L8.212|
                          DCD      bma2x2_i2c_device
                  |L8.216|
                          DCD      mico_debug_enabled
                  |L8.220|
                          DCD      stdio_tx_mutex
                  |L8.224|
0000e0  2e2e5c2e          DCB      "..\\..\\..\\..\\Platform\\Drivers\\sensor\\BMA2x2\\bma2"
0000e4  2e5c2e2e
0000e8  5c2e2e5c
0000ec  506c6174
0000f0  666f726d
0000f4  5c447269
0000f8  76657273
0000fc  5c73656e
000100  736f725c
000104  424d4132
000108  78325c62
00010c  6d6132  
00010f  78325f75          DCB      "x2_user.c"
000113  7365722e
000117  63      
                  |L8.280|
000118  00                DCB      0
000119  00                DCB      0
00011a  00                DCB      0
00011b  00                DCB      0
                  |L8.284|
                          DCD      |symbol_number.33|
                  |L8.288|
000120  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
000124  5b4d4943
000128  4f3a2573
00012c  3a25733a
000130  2534645d
000134  202a2a41
000138  53534552
00013c  542a2a20
000140  25730d0a
000144  00      
000145  00                DCB      0
000146  00                DCB      0
000147  00                DCB      0
                  |L8.328|
000148  424d4132          DCB      "BMA2x2_USER",0
00014c  78325f55
000150  53455200
                  |L8.340|
000154  5b25645d          DCB      "[%d][%s: %s:%4d] BMA2x2_ERROR: MicoI2cFinalize err = %d"
000158  5b25733a
00015c  2025733a
000160  2534645d
000164  20424d41
000168  3278325f
00016c  4552524f
000170  523a204d
000174  69636f49
000178  32634669
00017c  6e616c69
000180  7a652065
000184  7272203d
000188  202564  
00018b  2e0d0a00          DCB      ".\r\n",0
00018f  00                DCB      0

                          AREA ||i.bma2x2_sensor_init||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  bma2x2_sensor_init PROC
;;;459    
;;;460    OSStatus bma2x2_sensor_init(void)
000000  e92d43fe          PUSH     {r1-r9,lr}
;;;461    {
;;;462      OSStatus err = kUnknownErr;
000004  4c69              LDR      r4,|L9.428|
;;;463      /* Local variable used to assign the bandwidth value*/
;;;464      u8 v_bw_value_u8 = 0;
000006  2600              MOVS     r6,#0
;;;465      /* Local variable used to set the bandwidth value*/
;;;466      u8 banwid = 0;
000008  2000              MOVS     r0,#0
00000a  9002              STR      r0,[sp,#8]
;;;467      s32 com_rslt = BMA2x2_ERROR;  // result of communication results
00000c  1e45              SUBS     r5,r0,#1
;;;468     // u8 v_stand_by_time_u8 = BME280_INIT_VALUE;  //  The variable used to assign the standby time
;;;469      
;;;470      // I2C init
;;;471      MicoI2cFinalize(&bma2x2_i2c_device);   // in case error
00000e  4868              LDR      r0,|L9.432|
000010  f7fffffe          BL       MicoI2cFinalize
;;;472      err = MicoI2cInitialize(&bma2x2_i2c_device);
000014  4866              LDR      r0,|L9.432|
000016  f7fffffe          BL       MicoI2cInitialize
00001a  4604              MOV      r4,r0
;;;473      require_noerr_action( err, exit, bma2x2_user_log("BMA2x2_ERROR: MicoI2cInitialize err = %d.", err) );
00001c  bf00              NOP      
00001e  4627              MOV      r7,r4
000020  2f00              CMP      r7,#0
000022  d04f              BEQ      |L9.196|
000024  bf00              NOP      
000026  4863              LDR      r0,|L9.436|
000028  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00002a  b900              CBNZ     r0,|L9.46|
00002c  e021              B        |L9.114|
                  |L9.46|
00002e  4862              LDR      r0,|L9.440|
000030  f7fffffe          BL       mico_rtos_lock_mutex
000034  215c              MOVS     r1,#0x5c
000036  a061              ADR      r0,|L9.444|
000038  f7fffffe          BL       strrchr
00003c  b128              CBZ      r0,|L9.74|
00003e  215c              MOVS     r1,#0x5c
000040  a05e              ADR      r0,|L9.444|
000042  f7fffffe          BL       strrchr
000046  1c40              ADDS     r0,r0,#1
000048  e000              B        |L9.76|
                  |L9.74|
00004a  a05c              ADR      r0,|L9.444|
                  |L9.76|
00004c  4680              MOV      r8,r0
00004e  f7fffffe          BL       mico_get_time
000052  4681              MOV      r9,r0
000054  a067              ADR      r0,|L9.500|
000056  f24011d9          MOV      r1,#0x1d9
00005a  4b67              LDR      r3,|L9.504|
00005c  4642              MOV      r2,r8
00005e  e9cd1000          STRD     r1,r0,[sp,#0]
000062  4649              MOV      r1,r9
000064  a065              ADR      r0,|L9.508|
000066  f7fffffe          BL       __2printf
00006a  4853              LDR      r0,|L9.440|
00006c  f7fffffe          BL       mico_rtos_unlock_mutex
000070  bf00              NOP      
                  |L9.114|
000072  bf00              NOP      
000074  bf00              NOP      
000076  484f              LDR      r0,|L9.436|
000078  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00007a  b900              CBNZ     r0,|L9.126|
00007c  e020              B        |L9.192|
                  |L9.126|
00007e  484e              LDR      r0,|L9.440|
000080  f7fffffe          BL       mico_rtos_lock_mutex
000084  215c              MOVS     r1,#0x5c
000086  a04d              ADR      r0,|L9.444|
000088  f7fffffe          BL       strrchr
00008c  b128              CBZ      r0,|L9.154|
00008e  215c              MOVS     r1,#0x5c
000090  a04a              ADR      r0,|L9.444|
000092  f7fffffe          BL       strrchr
000096  1c40              ADDS     r0,r0,#1
000098  e000              B        |L9.156|
                  |L9.154|
00009a  a048              ADR      r0,|L9.444|
                  |L9.156|
00009c  4680              MOV      r8,r0
00009e  f7fffffe          BL       mico_get_time
0000a2  4681              MOV      r9,r0
0000a4  f24010d9          MOV      r0,#0x1d9
0000a8  4643              MOV      r3,r8
0000aa  a25e              ADR      r2,|L9.548|
0000ac  4649              MOV      r1,r9
0000ae  e9cd0400          STRD     r0,r4,[sp,#0]
0000b2  a05f              ADR      r0,|L9.560|
0000b4  f7fffffe          BL       __2printf
0000b8  483f              LDR      r0,|L9.440|
0000ba  f7fffffe          BL       mico_rtos_unlock_mutex
0000be  bf00              NOP      
                  |L9.192|
0000c0  bf00              NOP      
0000c2  e070              B        |L9.422|
                  |L9.196|
0000c4  bf00              NOP      
;;;474      if( false == MicoI2cProbeDevice(&bma2x2_i2c_device, 5) ){
0000c6  2105              MOVS     r1,#5
0000c8  4839              LDR      r0,|L9.432|
0000ca  f7fffffe          BL       MicoI2cProbeDevice
0000ce  2800              CMP      r0,#0
0000d0  d128              BNE      |L9.292|
;;;475        bma2x2_user_log("BMA2x2_ERROR: no i2c device found!");
0000d2  bf00              NOP      
0000d4  4837              LDR      r0,|L9.436|
0000d6  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
0000d8  b900              CBNZ     r0,|L9.220|
0000da  e01f              B        |L9.284|
                  |L9.220|
0000dc  4836              LDR      r0,|L9.440|
0000de  f7fffffe          BL       mico_rtos_lock_mutex
0000e2  215c              MOVS     r1,#0x5c
0000e4  a035              ADR      r0,|L9.444|
0000e6  f7fffffe          BL       strrchr
0000ea  b128              CBZ      r0,|L9.248|
0000ec  215c              MOVS     r1,#0x5c
0000ee  a033              ADR      r0,|L9.444|
0000f0  f7fffffe          BL       strrchr
0000f4  1c40              ADDS     r0,r0,#1
0000f6  e000              B        |L9.250|
                  |L9.248|
0000f8  a030              ADR      r0,|L9.444|
                  |L9.250|
0000fa  4607              MOV      r7,r0
0000fc  f7fffffe          BL       mico_get_time
000100  4680              MOV      r8,r0
000102  f24010db          MOV      r0,#0x1db
000106  463b              MOV      r3,r7
000108  a246              ADR      r2,|L9.548|
00010a  4641              MOV      r1,r8
00010c  9000              STR      r0,[sp,#0]
00010e  a058              ADR      r0,|L9.624|
000110  f7fffffe          BL       __2printf
000114  4828              LDR      r0,|L9.440|
000116  f7fffffe          BL       mico_rtos_unlock_mutex
00011a  bf00              NOP      
                  |L9.284|
00011c  bf00              NOP      
;;;476        err = kNotFoundErr;
00011e  4c23              LDR      r4,|L9.428|
000120  3c1b              SUBS     r4,r4,#0x1b
;;;477        goto exit;
000122  e040              B        |L9.422|
                  |L9.292|
;;;478      }
;;;479      
;;;480      // sensor init
;;;481    
;;;482      /*********************** START INITIALIZATION ************************/
;;;483      /*	Based on the user need configure I2C or SPI interface.
;;;484      *	It is example code to explain how to use the bme280 API*/
;;;485    #ifdef BMA2x2_API
;;;486      BMA2x2_I2C_routine();
000124  f7fffffe          BL       BMA2x2_I2C_routine
;;;487      com_rslt = bma2x2_init(&bma2x2);
000128  485f              LDR      r0,|L9.680|
00012a  f7fffffe          BL       bma2x2_init
00012e  4605              MOV      r5,r0
;;;488      com_rslt += bma2x2_set_power_mode(BMA2x2_MODE_NORMAL);
000130  2000              MOVS     r0,#0
000132  f7fffffe          BL       bma2x2_set_power_mode
000136  4405              ADD      r5,r5,r0
;;;489      /*------------------------------------------------------------------------*
;;;490    ************************* START GET and SET FUNCTIONS DATA ****************
;;;491    *---------------------------------------------------------------------------*/
;;;492      /* This API used to Write the bandwidth of the sensor input
;;;493      value have to be given
;;;494      bandwidth is set from the register 0x10 bits from 1 to 4*/
;;;495      v_bw_value_u8 = 0x08;/* set bandwidth of 7.81Hz*/
000138  2608              MOVS     r6,#8
;;;496      com_rslt += bma2x2_set_bw(v_bw_value_u8);
00013a  4630              MOV      r0,r6
00013c  f7fffffe          BL       bma2x2_set_bw
000140  4405              ADD      r5,r5,r0
;;;497    
;;;498      /* This API used to read back the written value of bandwidth*/
;;;499      com_rslt += bma2x2_get_bw(&banwid);
000142  a802              ADD      r0,sp,#8
000144  f7fffffe          BL       bma2x2_get_bw
000148  4405              ADD      r5,r5,r0
;;;500    /*-----------------------------------------------------------------*
;;;501    ************************* END GET and SET FUNCTIONS ****************
;;;502    *-------------------------------------------------------------------*/
;;;503    
;;;504      if(com_rslt < 0){
00014a  2d00              CMP      r5,#0
00014c  da28              BGE      |L9.416|
;;;505        bma2x2_user_log("BMA2x2_ERROR: bme280 sensor init failed!");
00014e  bf00              NOP      
000150  4818              LDR      r0,|L9.436|
000152  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000154  b900              CBNZ     r0,|L9.344|
000156  e01f              B        |L9.408|
                  |L9.344|
000158  4817              LDR      r0,|L9.440|
00015a  f7fffffe          BL       mico_rtos_lock_mutex
00015e  215c              MOVS     r1,#0x5c
000160  a016              ADR      r0,|L9.444|
000162  f7fffffe          BL       strrchr
000166  b128              CBZ      r0,|L9.372|
000168  215c              MOVS     r1,#0x5c
00016a  a014              ADR      r0,|L9.444|
00016c  f7fffffe          BL       strrchr
000170  1c40              ADDS     r0,r0,#1
000172  e000              B        |L9.374|
                  |L9.372|
000174  a011              ADR      r0,|L9.444|
                  |L9.374|
000176  4607              MOV      r7,r0
000178  f7fffffe          BL       mico_get_time
00017c  4680              MOV      r8,r0
00017e  f24010f9          MOV      r0,#0x1f9
000182  463b              MOV      r3,r7
000184  a227              ADR      r2,|L9.548|
000186  4641              MOV      r1,r8
000188  9000              STR      r0,[sp,#0]
00018a  a048              ADR      r0,|L9.684|
00018c  f7fffffe          BL       __2printf
000190  4809              LDR      r0,|L9.440|
000192  f7fffffe          BL       mico_rtos_unlock_mutex
000196  bf00              NOP      
                  |L9.408|
000198  bf00              NOP      
;;;506        err = kNotInitializedErr;
00019a  4c04              LDR      r4,|L9.428|
00019c  3c12              SUBS     r4,r4,#0x12
;;;507        goto exit;
00019e  e002              B        |L9.422|
                  |L9.416|
;;;508      }
;;;509      /************************* END INITIALIZATION *************************/
;;;510    #endif
;;;511      return kNoErr;
0001a0  2000              MOVS     r0,#0
                  |L9.418|
;;;512      
;;;513    exit:
;;;514      return err;
;;;515    }
0001a2  e8bd83fe          POP      {r1-r9,pc}
                  |L9.422|
0001a6  4620              MOV      r0,r4                 ;514
0001a8  e7fb              B        |L9.418|
;;;516    
                          ENDP

0001aa  0000              DCW      0x0000
                  |L9.428|
                          DCD      0xffffe5d4
                  |L9.432|
                          DCD      bma2x2_i2c_device
                  |L9.436|
                          DCD      mico_debug_enabled
                  |L9.440|
                          DCD      stdio_tx_mutex
                  |L9.444|
0001bc  2e2e5c2e          DCB      "..\\..\\..\\..\\Platform\\Drivers\\sensor\\BMA2x2\\bma2"
0001c0  2e5c2e2e
0001c4  5c2e2e5c
0001c8  506c6174
0001cc  666f726d
0001d0  5c447269
0001d4  76657273
0001d8  5c73656e
0001dc  736f725c
0001e0  424d4132
0001e4  78325c62
0001e8  6d6132  
0001eb  78325f75          DCB      "x2_user.c"
0001ef  7365722e
0001f3  63      
                  |L9.500|
0001f4  00                DCB      0
0001f5  00                DCB      0
0001f6  00                DCB      0
0001f7  00                DCB      0
                  |L9.504|
                          DCD      __PRETTY_FUNCTION__
                  |L9.508|
0001fc  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
000200  5b4d4943
000204  4f3a2573
000208  3a25733a
00020c  2534645d
000210  202a2a41
000214  53534552
000218  542a2a20
00021c  25730d0a
000220  00      
000221  00                DCB      0
000222  00                DCB      0
000223  00                DCB      0
                  |L9.548|
000224  424d4132          DCB      "BMA2x2_USER",0
000228  78325f55
00022c  53455200
                  |L9.560|
000230  5b25645d          DCB      "[%d][%s: %s:%4d] BMA2x2_ERROR: MicoI2cInitialize err = "
000234  5b25733a
000238  2025733a
00023c  2534645d
000240  20424d41
000244  3278325f
000248  4552524f
00024c  523a204d
000250  69636f49
000254  3263496e
000258  69746961
00025c  6c697a65
000260  20657272
000264  203d20  
000267  25642e0d          DCB      "%d.\r\n",0
00026b  0a00    
00026d  00                DCB      0
00026e  00                DCB      0
00026f  00                DCB      0
                  |L9.624|
000270  5b25645d          DCB      "[%d][%s: %s:%4d] BMA2x2_ERROR: no i2c device found!\r\n"
000274  5b25733a
000278  2025733a
00027c  2534645d
000280  20424d41
000284  3278325f
000288  4552524f
00028c  523a206e
000290  6f206932
000294  63206465
000298  76696365
00029c  20666f75
0002a0  6e64210d
0002a4  0a      
0002a5  00                DCB      0
0002a6  00                DCB      0
0002a7  00                DCB      0
                  |L9.680|
                          DCD      bma2x2
                  |L9.684|
0002ac  5b25645d          DCB      "[%d][%s: %s:%4d] BMA2x2_ERROR: bme280 sensor init faile"
0002b0  5b25733a
0002b4  2025733a
0002b8  2534645d
0002bc  20424d41
0002c0  3278325f
0002c4  4552524f
0002c8  523a2062
0002cc  6d653238
0002d0  30207365
0002d4  6e736f72
0002d8  20696e69
0002dc  74206661
0002e0  696c65  
0002e3  64210d0a          DCB      "d!\r\n",0
0002e7  00      

                          AREA ||.bss||, DATA, NOINIT, ALIGN=2

                  bma2x2
                          %        24

                          AREA ||.constdata||, DATA, READONLY, ALIGN=2

000000  ff000000          DCB      0xff,0x00,0x00,0x00
000004  00                DCB      0x00
                  __PRETTY_FUNCTION__
000005  736967            DCB      0x73,0x69,0x67
000008  6e656420          DCB      0x6e,0x65,0x64,0x20
00000c  696e7420          DCB      0x69,0x6e,0x74,0x20
000010  626d6132          DCB      0x62,0x6d,0x61,0x32
000014  78325f73          DCB      0x78,0x32,0x5f,0x73
000018  656e736f          DCB      0x65,0x6e,0x73,0x6f
00001c  725f696e          DCB      0x72,0x5f,0x69,0x6e
000020  69742876          DCB      0x69,0x74,0x28,0x76
000024  6f696429          DCB      0x6f,0x69,0x64,0x29
000028  00                DCB      0x00
                  |symbol_number.33|
000029  736967            DCB      0x73,0x69,0x67
00002c  6e656420          DCB      0x6e,0x65,0x64,0x20
000030  696e7420          DCB      0x69,0x6e,0x74,0x20
000034  626d6132          DCB      0x62,0x6d,0x61,0x32
000038  78325f73          DCB      0x78,0x32,0x5f,0x73
00003c  656e736f          DCB      0x65,0x6e,0x73,0x6f
000040  725f6465          DCB      0x72,0x5f,0x64,0x65
000044  696e6974          DCB      0x69,0x6e,0x69,0x74
000048  28766f69          DCB      0x28,0x76,0x6f,0x69
00004c  642900            DCB      0x64,0x29,0x00

                          AREA ||.data||, DATA, ALIGN=1

                  bma2x2_i2c_device
000000  0200              DCB      0x02,0x00
000002  0018              DCW      0x0018
000004  0001              DCB      0x00,0x01

;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\Platform\\Drivers\\sensor\\BMA2x2\\bma2x2_user.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___13_bma2x2_user_c_02c227ed____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___13_bma2x2_user_c_02c227ed____REV16| PROC
#line 115

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___13_bma2x2_user_c_02c227ed____REVSH|
#line 128
|__asm___13_bma2x2_user_c_02c227ed____REVSH| PROC
#line 129

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
