; 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\bmm050_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\bmm050_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\bmm050_user.crf ..\..\..\..\Platform\Drivers\sensor\BMM050\bmm050_user.c]
                          THUMB

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

                  BMM050_I2C_bus_read PROC
;;;314     */
;;;315    s8 BMM050_I2C_bus_read(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt)
000000  e92d41f0          PUSH     {r4-r8,lr}
;;;316    {
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
;;;317            mico_i2c_message_t bmm050_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]
;;;318    	s32 iError = BMM050_INIT_VALUE;
000018  2400              MOVS     r4,#0
;;;319    	u8 array[I2C_BUFFER_LEN] = {BMM050_INIT_VALUE};
00001a  9002              STR      r0,[sp,#8]
00001c  9003              STR      r0,[sp,#0xc]
;;;320    //	u8 stringpos = BMM050_INIT_VALUE;
;;;321    	array[BMM050_INIT_VALUE] = reg_addr;
00001e  f88d5008          STRB     r5,[sp,#8]
;;;322    	/* Please take the below function as your reference
;;;323    	 * for read the data using I2C communication
;;;324    	 * add your I2C rad function here.
;;;325    	 * "IERROR = I2C_WRITE_READ_STRING(DEV_ADDR, ARRAY, ARRAY, C_BMM050_ONE_U8X, CNT)"
;;;326    	 * iError is an return value of SPI write function
;;;327    	 * Please select your valid return value
;;;328    	 * In the driver SUCCESS defined as BMM050_INIT_VALUE
;;;329         * and FAILURE defined as -C_BMM050_ONE_U8X
;;;330    	 */
;;;331            
;;;332            iError = MicoI2cBuildCombinedMessage(&bmm050_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
;;;333             if(0 != iError){
000036  b11c              CBZ      r4,|L1.64|
;;;334              return (s8)iError; 
000038  b260              SXTB     r0,r4
                  |L1.58|
;;;335            }
;;;336            iError = MicoI2cTransfer(&bmm050_i2c_device, &bmm050_i2c_msg, 1);
;;;337            if(0 != iError){
;;;338              return (s8)iError;
;;;339            }
;;;340            
;;;341    //	for (stringpos = BMM050_INIT_VALUE; stringpos < cnt; stringpos++) {
;;;342    //		*(reg_data + stringpos) = array[stringpos];
;;;343    //	}
;;;344    	return (s8)iError;
;;;345    }
00003a  b008              ADD      sp,sp,#0x20
00003c  e8bd81f0          POP      {r4-r8,pc}
                  |L1.64|
000040  2201              MOVS     r2,#1                 ;336
000042  a904              ADD      r1,sp,#0x10           ;336
000044  4804              LDR      r0,|L1.88|
000046  f7fffffe          BL       MicoI2cTransfer
00004a  4604              MOV      r4,r0                 ;336
00004c  b10c              CBZ      r4,|L1.82|
00004e  b260              SXTB     r0,r4                 ;338
000050  e7f3              B        |L1.58|
                  |L1.82|
000052  b260              SXTB     r0,r4                 ;344
000054  e7f1              B        |L1.58|
;;;346    
                          ENDP

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

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

                  BMM050_I2C_bus_write PROC
;;;272     */
;;;273    s8 BMM050_I2C_bus_write(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt)
000000  e92d43f0          PUSH     {r4-r9,lr}
;;;274    {
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
;;;275            mico_i2c_message_t bmm050_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]
;;;276    	s32 iError = BMM050_INIT_VALUE;
000018  4680              MOV      r8,r0
;;;277    	u8 array[I2C_BUFFER_LEN];
;;;278    	u8 stringpos = BMM050_INIT_VALUE;
00001a  2400              MOVS     r4,#0
;;;279    	array[BMM050_INIT_VALUE] = reg_addr;
00001c  f88d6004          STRB     r6,[sp,#4]
;;;280    	for (stringpos = BMM050_INIT_VALUE; stringpos < cnt; stringpos++) {
000020  bf00              NOP      
000022  e004              B        |L2.46|
                  |L2.36|
;;;281    		array[stringpos + C_BMM050_ONE_U8X] = *(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                 ;280
                  |L2.46|
00002e  42ac              CMP      r4,r5                 ;280
000030  dbf8              BLT      |L2.36|
;;;282    	}
;;;283    	/*
;;;284    	* Please take the below function as your reference for
;;;285    	* write the data using I2C communication
;;;286    	* "IERROR = I2C_WRITE_STRING(DEV_ADDR, ARRAY, CNT+C_BMM050_ONE_U8X)"
;;;287    	* add your I2C write function here
;;;288    	* iError is an return value of I2C read function
;;;289    	* Please select your valid return value
;;;290    	* In the driver SUCCESS defined as BMM050_INIT_VALUE
;;;291        * and FAILURE defined as -C_BMM050_ONE_U8X
;;;292    	* Note :
;;;293    	* This is a full duplex operation,
;;;294    	* The first read data is discarded, for that extra write operation
;;;295    	* have to be initiated. For that cnt+C_BMM050_ONE_U8X operation done in the I2C write string function
;;;296    	* For more information please refer data sheet SPI communication:
;;;297    	*/
;;;298              
;;;299            iError = MicoI2cBuildTxMessage(&bmm050_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
;;;300            iError = MicoI2cTransfer(&bmm050_i2c_device, &bmm050_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
;;;301            if(0 != iError){
00004c  f1b80f00          CMP      r8,#0
000050  d001              BEQ      |L2.86|
;;;302              iError = -1;
000052  f04f38ff          MOV      r8,#0xffffffff
                  |L2.86|
;;;303            }
;;;304            
;;;305    	return (s8)iError;
000056  fa4ff088          SXTB     r0,r8
;;;306    }
00005a  b007              ADD      sp,sp,#0x1c
00005c  e8bd83f0          POP      {r4-r9,pc}
;;;307    
                          ENDP

                  |L2.96|
                          DCD      bmm050_i2c_device

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

                  BMM050_I2C_routine PROC
;;;213     *-------------------------------------------------------------------------*/
;;;214    s8 BMM050_I2C_routine(void) {
000000  4805              LDR      r0,|L3.24|
;;;215    /*--------------------------------------------------------------------------*/
;;;216    /*  By using bmm050_t the following structure parameter can be accessed
;;;217     *	Bus write function pointer: BMM050_WR_FUNC_PTR
;;;218     *	Bus read function pointer: BMM050_RD_FUNC_PTR
;;;219     *	Delay function pointer: delay_msec
;;;220     *	I2C address: dev_addr
;;;221     *--------------------------------------------------------------------------*/
;;;222    	bmm050_t.bus_write = BMM050_I2C_bus_write;
000002  4906              LDR      r1,|L3.28|
000004  6048              STR      r0,[r1,#4]  ; bmm050_t
;;;223    	bmm050_t.bus_read = BMM050_I2C_bus_read;
000006  4806              LDR      r0,|L3.32|
000008  6088              STR      r0,[r1,#8]  ; bmm050_t
;;;224    	bmm050_t.delay_msec = BMM050_delay_msek;
00000a  4806              LDR      r0,|L3.36|
00000c  60c8              STR      r0,[r1,#0xc]  ; bmm050_t
;;;225    	bmm050_t.dev_addr = BMM050_I2C_ADDRESS;
00000e  2010              MOVS     r0,#0x10
000010  7048              STRB     r0,[r1,#1]
;;;226    
;;;227    	return BMM050_INIT_VALUE;
000012  2000              MOVS     r0,#0
;;;228    }
000014  4770              BX       lr
;;;229    
                          ENDP

000016  0000              DCW      0x0000
                  |L3.24|
                          DCD      BMM050_I2C_bus_write
                  |L3.28|
                          DCD      bmm050_t
                  |L3.32|
                          DCD      BMM050_I2C_bus_read
                  |L3.36|
                          DCD      BMM050_delay_msek

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

                  BMM050_delay_msek PROC
;;;419    */
;;;420    void BMM050_delay_msek(u32 msek)
000000  b510              PUSH     {r4,lr}
;;;421    {
000002  4604              MOV      r4,r0
;;;422    	/*Here you can write your own delay routine*/
;;;423      mico_thread_msleep(msek);
000004  4620              MOV      r0,r4
000006  f7fffffe          BL       msleep
;;;424    }
00000a  bd10              POP      {r4,pc}
;;;425    #endif
                          ENDP


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

                  bmm050_data_readout PROC
;;;484    
;;;485    OSStatus bmm050_data_readout(s16 *v_mag_datax_s16, s16 *v_mag_datay_s16, s16 *v_mag_dataz_s16)
000000  e92d43fe          PUSH     {r1-r9,lr}
;;;486    {
000004  4604              MOV      r4,r0
000006  460d              MOV      r5,r1
000008  4616              MOV      r6,r2
;;;487      OSStatus err = kUnknownErr;
00000a  4f0d              LDR      r7,|L5.64|
;;;488      struct bmm050_mag_data_s16_t data;
;;;489      
;;;490      /* result of communication results*/
;;;491      s32 com_rslt = BMM050_ERROR;
00000c  f04f38ff          MOV      r8,#0xffffffff
;;;492      
;;;493      //-------------------------- NOTE ----------------------------------
;;;494      // this is to avoid i2c pin is re-init by other module because they use the same pin.
;;;495      MicoI2cInitialize(&bmm050_i2c_device);
000010  480c              LDR      r0,|L5.68|
000012  f7fffffe          BL       MicoI2cInitialize
;;;496      //------------------------------------------------------------------
;;;497        
;;;498      /************ START READ TRUE PRESSURE, TEMPERATURE AND HUMIDITY DATA *********/
;;;499    
;;;500      /* accessing the bmm050_mdata parameter by using data*/
;;;501      com_rslt = bmm050_read_mag_data_XYZ(&data);/* Reads the mag x y z data*/
000016  4668              MOV      r0,sp
000018  f7fffffe          BL       bmm050_read_mag_data_XYZ
00001c  4680              MOV      r8,r0
;;;502      
;;;503      *v_mag_datax_s16 = data.datax;
00001e  f8bd0000          LDRH     r0,[sp,#0]
000022  8020              STRH     r0,[r4,#0]
;;;504      *v_mag_datay_s16 = data.datay;
000024  f8bd0002          LDRH     r0,[sp,#2]
000028  8028              STRH     r0,[r5,#0]
;;;505      *v_mag_dataz_s16 = data.dataz;
00002a  f8bd0004          LDRH     r0,[sp,#4]
00002e  8030              STRH     r0,[r6,#0]
;;;506      /************ END READ TRUE PRESSURE, TEMPERATURE AND HUMIDITY ********/
;;;507      
;;;508      if(0 == com_rslt){
000030  f1b80f00          CMP      r8,#0
000034  d100              BNE      |L5.56|
;;;509        err = kNoErr;
000036  2700              MOVS     r7,#0
                  |L5.56|
;;;510      }
;;;511      return err;
000038  4638              MOV      r0,r7
;;;512    }
00003a  e8bd83fe          POP      {r1-r9,pc}
;;;513    
                          ENDP

00003e  0000              DCW      0x0000
                  |L5.64|
                          DCD      0xffffe5d4
                  |L5.68|
                          DCD      bmm050_i2c_device

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

                  bmm050_data_readout_template PROC
;;;116     */
;;;117    s32 bmm050_data_readout_template(void)
000000  b530              PUSH     {r4,r5,lr}
;;;118    {
000002  b08d              SUB      sp,sp,#0x34
;;;119    	/* Structure used for read the mag xyz data*/
;;;120    	struct bmm050_mag_data_s16_t data;
;;;121    	/* Structure used for read the mag xyz data with 32 bit output*/
;;;122    	struct bmm050_mag_s32_data_t data_s32;
;;;123    	/* Structure used for read the mag xyz data with float output*/
;;;124    	struct bmm050_mag_data_float_t data_float;
;;;125    	/* Variable used to get the data rate*/
;;;126    	u8 v_data_rate_u8 = BMM050_INIT_VALUE;
000004  2000              MOVS     r0,#0
000006  9001              STR      r0,[sp,#4]
;;;127    	/* Variable used to set the data rate*/
;;;128    	u8 v_data_rate_value_u8 = BMM050_INIT_VALUE;
000008  2500              MOVS     r5,#0
;;;129    	/* result of communication results*/
;;;130    	s32 com_rslt = 0;
00000a  2400              MOVS     r4,#0
;;;131    
;;;132    /*---------------------------------------------------------------------------*
;;;133     *********************** START INITIALIZATION ************************
;;;134     *--------------------------------------------------------------------------*/
;;;135     /*	Based on the user need configure I2C or SPI interface.
;;;136      *	It is sample code to explain how to use the bmm050 API*/
;;;137    	#ifdef BMM050_API
;;;138    	BMM050_I2C_routine();
00000c  f7fffffe          BL       BMM050_I2C_routine
;;;139    	/*BMM050_SPI_routine(); */
;;;140    	#endif
;;;141    /*--------------------------------------------------------------------------*
;;;142     *  This function used to assign the value/reference of
;;;143     *	the following parameters
;;;144     *	I2C address
;;;145     *	Bus Write
;;;146     *	Bus read
;;;147     *	company_id
;;;148    *-------------------------------------------------------------------------*/
;;;149    	com_rslt = bmm050_init(&bmm050_t);
000010  4811              LDR      r0,|L6.88|
000012  f7fffffe          BL       bmm050_init
000016  4604              MOV      r4,r0
;;;150    
;;;151    /*	For initialization it is required to set the mode of
;;;152     *	the sensor as "NORMAL"
;;;153     *	but before set the mode needs to configure the power control bit
;;;154     *	in the register 0x4B bit BMM050_INIT_VALUE should be enabled
;;;155     *	This bit is enabled by calling bmm050_init function
;;;156     *	For the Normal data acquisition/read/write is possible in this mode
;;;157     *	by using the below API able to set the power mode as NORMAL*/
;;;158    	/* Set the power mode as NORMAL*/
;;;159    	com_rslt += bmm050_set_functional_state(BMM050_NORMAL_MODE);
000018  2000              MOVS     r0,#0
00001a  f7fffffe          BL       bmm050_set_functional_state
00001e  4404              ADD      r4,r4,r0
;;;160    /*--------------------------------------------------------------------------*
;;;161    ************************* END INITIALIZATION *************************
;;;162    *---------------------------------------------------------------------------*/
;;;163    
;;;164    /*------------------------------------------------------------------------*
;;;165    ************************* START GET and SET FUNCTIONS DATA ****************
;;;166    *---------------------------------------------------------------------------*/
;;;167    	/* This API used to Write the data rate of the sensor, input
;;;168    	value have to be given
;;;169    	data rate value set from the register 0x4C bit 3 to 5*/
;;;170    	v_data_rate_value_u8 = BMM050_DATA_RATE_30HZ;/* set data rate of 30Hz*/
000020  2507              MOVS     r5,#7
;;;171    	com_rslt += bmm050_set_data_rate(v_data_rate_value_u8);
000022  4628              MOV      r0,r5
000024  f7fffffe          BL       bmm050_set_data_rate
000028  4404              ADD      r4,r4,r0
;;;172    
;;;173    	/* This API used to read back the written value of data rate*/
;;;174    	com_rslt += bmm050_get_data_rate(&v_data_rate_u8);
00002a  a801              ADD      r0,sp,#4
00002c  f7fffffe          BL       bmm050_get_data_rate
000030  4404              ADD      r4,r4,r0
;;;175    /*-----------------------------------------------------------------*
;;;176    ************************* END GET and SET FUNCTIONS ****************
;;;177    *-------------------------------------------------------------------*/
;;;178    /*------------------------------------------------------------------*
;;;179    ************************* START READ SENSOR DATA(X,Y and Z axis) ********
;;;180    *------------------------------------------------------------------*/
;;;181    	/* accessing the bmm050_mdata parameter by using data*/
;;;182    	com_rslt += bmm050_read_mag_data_XYZ(&data);/* Reads the mag x y z data*/
000032  a80a              ADD      r0,sp,#0x28
000034  f7fffffe          BL       bmm050_read_mag_data_XYZ
000038  4404              ADD      r4,r4,r0
;;;183    
;;;184    
;;;185    	/* accessing the bmm050_mdata_float parameter by using data_float*/
;;;186    	com_rslt += bmm050_read_mag_data_XYZ_float(&data_float);/* Reads mag xyz data output as 32bit value*/
00003a  a802              ADD      r0,sp,#8
00003c  f7fffffe          BL       bmm050_read_mag_data_XYZ_float
000040  4404              ADD      r4,r4,r0
;;;187    
;;;188    	/* accessing the bmm050_mdata_s32 parameter by using data_s32*/
;;;189    	com_rslt += bmm050_read_mag_data_XYZ_s32(&data_s32);/* Reads mag xyz data output as float value*/
000042  a806              ADD      r0,sp,#0x18
000044  f7fffffe          BL       bmm050_read_mag_data_XYZ_s32
000048  4404              ADD      r4,r4,r0
;;;190    
;;;191    /*--------------------------------------------------------------------*
;;;192    ************************* END READ SENSOR DATA(X,Y and Z axis) ************
;;;193    *-------------------------------------------------------------------------*/
;;;194    /*-----------------------------------------------------------------------*
;;;195    ************************* START DE-INITIALIZATION ***********************
;;;196    *-------------------------------------------------------------------------*/
;;;197    /*	For de-initialization it is required to set the mode of
;;;198     *	the sensor as "SUSPEND"
;;;199     *	the SUSPEND mode set from the register 0x4B bit BMM050_INIT_VALUE should be disabled
;;;200     *	by using the below API able to set the power mode as SUSPEND*/
;;;201    	/* Set the power mode as SUSPEND*/
;;;202    	com_rslt += bmm050_set_functional_state(BMM050_SUSPEND_MODE);
00004a  2002              MOVS     r0,#2
00004c  f7fffffe          BL       bmm050_set_functional_state
000050  4404              ADD      r4,r4,r0
;;;203    /*---------------------------------------------------------------------*
;;;204    ************************* END DE-INITIALIZATION **********************
;;;205    *---------------------------------------------------------------------*/
;;;206    return com_rslt;
000052  4620              MOV      r0,r4
;;;207    }
000054  b00d              ADD      sp,sp,#0x34
000056  bd30              POP      {r4,r5,pc}
;;;208    
                          ENDP

                  |L6.88|
                          DCD      bmm050_t

                          AREA ||i.bmm050_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
                  bmm050_sensor_deinit PROC
;;;513    
;;;514    OSStatus bmm050_sensor_deinit(void)
000000  e92d41fc          PUSH     {r2-r8,lr}
;;;515    {
;;;516      OSStatus err = kUnknownErr;
000004  4c32              LDR      r4,|L7.208|
;;;517      s32 com_rslt = BMM050_ERROR;
000006  1365              ASRS     r5,r4,#13
;;;518      
;;;519      err = MicoI2cFinalize(&bmm050_i2c_device);
000008  4832              LDR      r0,|L7.212|
00000a  f7fffffe          BL       MicoI2cFinalize
00000e  4604              MOV      r4,r0
;;;520      require_noerr_action( err, exit, bmm050_user_log("BMM050_ERROR: MicoI2cFinalize err = %d.", err));
000010  bf00              NOP      
000012  4626              MOV      r6,r4
000014  2e00              CMP      r6,#0
000016  d04f              BEQ      |L7.184|
000018  bf00              NOP      
00001a  482f              LDR      r0,|L7.216|
00001c  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00001e  b900              CBNZ     r0,|L7.34|
000020  e021              B        |L7.102|
                  |L7.34|
000022  482e              LDR      r0,|L7.220|
000024  f7fffffe          BL       mico_rtos_lock_mutex
000028  215c              MOVS     r1,#0x5c
00002a  a02d              ADR      r0,|L7.224|
00002c  f7fffffe          BL       strrchr
000030  b128              CBZ      r0,|L7.62|
000032  215c              MOVS     r1,#0x5c
000034  a02a              ADR      r0,|L7.224|
000036  f7fffffe          BL       strrchr
00003a  1c40              ADDS     r0,r0,#1
00003c  e000              B        |L7.64|
                  |L7.62|
00003e  a028              ADR      r0,|L7.224|
                  |L7.64|
000040  4607              MOV      r7,r0
000042  f7fffffe          BL       mico_get_time
000046  4680              MOV      r8,r0
000048  a033              ADR      r0,|L7.280|
00004a  f44f7102          MOV      r1,#0x208
00004e  4b33              LDR      r3,|L7.284|
000050  463a              MOV      r2,r7
000052  e9cd1000          STRD     r1,r0,[sp,#0]
000056  4641              MOV      r1,r8
000058  a031              ADR      r0,|L7.288|
00005a  f7fffffe          BL       __2printf
00005e  481f              LDR      r0,|L7.220|
000060  f7fffffe          BL       mico_rtos_unlock_mutex
000064  bf00              NOP      
                  |L7.102|
000066  bf00              NOP      
000068  bf00              NOP      
00006a  481b              LDR      r0,|L7.216|
00006c  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00006e  b900              CBNZ     r0,|L7.114|
000070  e020              B        |L7.180|
                  |L7.114|
000072  481a              LDR      r0,|L7.220|
000074  f7fffffe          BL       mico_rtos_lock_mutex
000078  215c              MOVS     r1,#0x5c
00007a  a019              ADR      r0,|L7.224|
00007c  f7fffffe          BL       strrchr
000080  b128              CBZ      r0,|L7.142|
000082  215c              MOVS     r1,#0x5c
000084  a016              ADR      r0,|L7.224|
000086  f7fffffe          BL       strrchr
00008a  1c40              ADDS     r0,r0,#1
00008c  e000              B        |L7.144|
                  |L7.142|
00008e  a014              ADR      r0,|L7.224|
                  |L7.144|
000090  4607              MOV      r7,r0
000092  f7fffffe          BL       mico_get_time
000096  4680              MOV      r8,r0
000098  f44f7002          MOV      r0,#0x208
00009c  463b              MOV      r3,r7
00009e  a22a              ADR      r2,|L7.328|
0000a0  4641              MOV      r1,r8
0000a2  e9cd0400          STRD     r0,r4,[sp,#0]
0000a6  a02b              ADR      r0,|L7.340|
0000a8  f7fffffe          BL       __2printf
0000ac  480b              LDR      r0,|L7.220|
0000ae  f7fffffe          BL       mico_rtos_unlock_mutex
0000b2  bf00              NOP      
                  |L7.180|
0000b4  bf00              NOP      
0000b6  e007              B        |L7.200|
                  |L7.184|
0000b8  bf00              NOP      
;;;521      
;;;522    /*---------------------------------------------------------------------------*
;;;523    *********************** START DE-INITIALIZATION *****************************
;;;524    *--------------------------------------------------------------------------*/
;;;525    /*	For de-initialization it is required to set the mode of
;;;526     *	the sensor as "SUSPEND"
;;;527     *	the SUSPEND mode set from the register 0x4B bit BMM050_INIT_VALUE should be disabled
;;;528     *	by using the below API able to set the power mode as SUSPEND*/
;;;529    	/* Set the power mode as SUSPEND*/
;;;530    	com_rslt = bmm050_set_functional_state(BMM050_SUSPEND_MODE);
0000ba  2002              MOVS     r0,#2
0000bc  f7fffffe          BL       bmm050_set_functional_state
0000c0  4605              MOV      r5,r0
;;;531    
;;;532    /*--------------------------------------------------------------------------*
;;;533    *********************** END DE-INITIALIZATION **************************
;;;534    *---------------------------------------------------------------------------*/
;;;535    
;;;536      if(0 == com_rslt){
0000c2  b905              CBNZ     r5,|L7.198|
;;;537        err = kNoErr;
0000c4  2400              MOVS     r4,#0
                  |L7.198|
;;;538      }
;;;539      
;;;540    exit:
0000c6  bf00              NOP      
                  |L7.200|
;;;541      return err;
0000c8  4620              MOV      r0,r4
;;;542    }
0000ca  e8bd81fc          POP      {r2-r8,pc}
;;;543    
                          ENDP

0000ce  0000              DCW      0x0000
                  |L7.208|
                          DCD      0xffffe5d4
                  |L7.212|
                          DCD      bmm050_i2c_device
                  |L7.216|
                          DCD      mico_debug_enabled
                  |L7.220|
                          DCD      stdio_tx_mutex
                  |L7.224|
0000e0  2e2e5c2e          DCB      "..\\..\\..\\..\\Platform\\Drivers\\sensor\\BMM050\\bmm0"
0000e4  2e5c2e2e
0000e8  5c2e2e5c
0000ec  506c6174
0000f0  666f726d
0000f4  5c447269
0000f8  76657273
0000fc  5c73656e
000100  736f725c
000104  424d4d30
000108  35305c62
00010c  6d6d30  
00010f  35305f75          DCB      "50_user.c"
000113  7365722e
000117  63      
                  |L7.280|
000118  00                DCB      0
000119  00                DCB      0
00011a  00                DCB      0
00011b  00                DCB      0
                  |L7.284|
                          DCD      |symbol_number.30|
                  |L7.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
                  |L7.328|
000148  424d4d30          DCB      "BMM050_USER",0
00014c  35305f55
000150  53455200
                  |L7.340|
000154  5b25645d          DCB      "[%d][%s: %s:%4d] BMM050_ERROR: MicoI2cFinalize err = %d"
000158  5b25733a
00015c  2025733a
000160  2534645d
000164  20424d4d
000168  3035305f
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.bmm050_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
                  bmm050_sensor_init PROC
;;;427    
;;;428    OSStatus bmm050_sensor_init(void)
000000  e92d43fe          PUSH     {r1-r9,lr}
;;;429    {
;;;430      OSStatus err = kUnknownErr;
000004  4c69              LDR      r4,|L8.428|
;;;431      /* Variable used to get the data rate*/
;;;432      u8 v_data_rate_u8 = BMM050_INIT_VALUE;
000006  2000              MOVS     r0,#0
000008  9002              STR      r0,[sp,#8]
;;;433      /* Variable used to set the data rate*/
;;;434      u8 v_data_rate_value_u8 = BMM050_INIT_VALUE;
00000a  2600              MOVS     r6,#0
;;;435      s32 com_rslt = BMM050_ERROR;  // result of communication results
00000c  1e45              SUBS     r5,r0,#1
;;;436     // u8 v_stand_by_time_u8 = BME280_INIT_VALUE;  //  The variable used to assign the standby time
;;;437      
;;;438      // I2C init
;;;439      MicoI2cFinalize(&bmm050_i2c_device);   // in case error
00000e  4868              LDR      r0,|L8.432|
000010  f7fffffe          BL       MicoI2cFinalize
;;;440      err = MicoI2cInitialize(&bmm050_i2c_device);
000014  4866              LDR      r0,|L8.432|
000016  f7fffffe          BL       MicoI2cInitialize
00001a  4604              MOV      r4,r0
;;;441      require_noerr_action( err, exit, bmm050_user_log("BMM050_ERROR: MicoI2cInitialize err = %d.", err) );
00001c  bf00              NOP      
00001e  4627              MOV      r7,r4
000020  2f00              CMP      r7,#0
000022  d04f              BEQ      |L8.196|
000024  bf00              NOP      
000026  4863              LDR      r0,|L8.436|
000028  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00002a  b900              CBNZ     r0,|L8.46|
00002c  e021              B        |L8.114|
                  |L8.46|
00002e  4862              LDR      r0,|L8.440|
000030  f7fffffe          BL       mico_rtos_lock_mutex
000034  215c              MOVS     r1,#0x5c
000036  a061              ADR      r0,|L8.444|
000038  f7fffffe          BL       strrchr
00003c  b128              CBZ      r0,|L8.74|
00003e  215c              MOVS     r1,#0x5c
000040  a05e              ADR      r0,|L8.444|
000042  f7fffffe          BL       strrchr
000046  1c40              ADDS     r0,r0,#1
000048  e000              B        |L8.76|
                  |L8.74|
00004a  a05c              ADR      r0,|L8.444|
                  |L8.76|
00004c  4680              MOV      r8,r0
00004e  f7fffffe          BL       mico_get_time
000052  4681              MOV      r9,r0
000054  a067              ADR      r0,|L8.500|
000056  f24011b9          MOV      r1,#0x1b9
00005a  4b67              LDR      r3,|L8.504|
00005c  4642              MOV      r2,r8
00005e  e9cd1000          STRD     r1,r0,[sp,#0]
000062  4649              MOV      r1,r9
000064  a065              ADR      r0,|L8.508|
000066  f7fffffe          BL       __2printf
00006a  4853              LDR      r0,|L8.440|
00006c  f7fffffe          BL       mico_rtos_unlock_mutex
000070  bf00              NOP      
                  |L8.114|
000072  bf00              NOP      
000074  bf00              NOP      
000076  484f              LDR      r0,|L8.436|
000078  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00007a  b900              CBNZ     r0,|L8.126|
00007c  e020              B        |L8.192|
                  |L8.126|
00007e  484e              LDR      r0,|L8.440|
000080  f7fffffe          BL       mico_rtos_lock_mutex
000084  215c              MOVS     r1,#0x5c
000086  a04d              ADR      r0,|L8.444|
000088  f7fffffe          BL       strrchr
00008c  b128              CBZ      r0,|L8.154|
00008e  215c              MOVS     r1,#0x5c
000090  a04a              ADR      r0,|L8.444|
000092  f7fffffe          BL       strrchr
000096  1c40              ADDS     r0,r0,#1
000098  e000              B        |L8.156|
                  |L8.154|
00009a  a048              ADR      r0,|L8.444|
                  |L8.156|
00009c  4680              MOV      r8,r0
00009e  f7fffffe          BL       mico_get_time
0000a2  4681              MOV      r9,r0
0000a4  f24010b9          MOV      r0,#0x1b9
0000a8  4643              MOV      r3,r8
0000aa  a25e              ADR      r2,|L8.548|
0000ac  4649              MOV      r1,r9
0000ae  e9cd0400          STRD     r0,r4,[sp,#0]
0000b2  a05f              ADR      r0,|L8.560|
0000b4  f7fffffe          BL       __2printf
0000b8  483f              LDR      r0,|L8.440|
0000ba  f7fffffe          BL       mico_rtos_unlock_mutex
0000be  bf00              NOP      
                  |L8.192|
0000c0  bf00              NOP      
0000c2  e070              B        |L8.422|
                  |L8.196|
0000c4  bf00              NOP      
;;;442      if( false == MicoI2cProbeDevice(&bmm050_i2c_device, 5) ){
0000c6  2105              MOVS     r1,#5
0000c8  4839              LDR      r0,|L8.432|
0000ca  f7fffffe          BL       MicoI2cProbeDevice
0000ce  2800              CMP      r0,#0
0000d0  d128              BNE      |L8.292|
;;;443        bmm050_user_log("BMM050_ERROR: no i2c device found!");
0000d2  bf00              NOP      
0000d4  4837              LDR      r0,|L8.436|
0000d6  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
0000d8  b900              CBNZ     r0,|L8.220|
0000da  e01f              B        |L8.284|
                  |L8.220|
0000dc  4836              LDR      r0,|L8.440|
0000de  f7fffffe          BL       mico_rtos_lock_mutex
0000e2  215c              MOVS     r1,#0x5c
0000e4  a035              ADR      r0,|L8.444|
0000e6  f7fffffe          BL       strrchr
0000ea  b128              CBZ      r0,|L8.248|
0000ec  215c              MOVS     r1,#0x5c
0000ee  a033              ADR      r0,|L8.444|
0000f0  f7fffffe          BL       strrchr
0000f4  1c40              ADDS     r0,r0,#1
0000f6  e000              B        |L8.250|
                  |L8.248|
0000f8  a030              ADR      r0,|L8.444|
                  |L8.250|
0000fa  4607              MOV      r7,r0
0000fc  f7fffffe          BL       mico_get_time
000100  4680              MOV      r8,r0
000102  f24010bb          MOV      r0,#0x1bb
000106  463b              MOV      r3,r7
000108  a246              ADR      r2,|L8.548|
00010a  4641              MOV      r1,r8
00010c  9000              STR      r0,[sp,#0]
00010e  a058              ADR      r0,|L8.624|
000110  f7fffffe          BL       __2printf
000114  4828              LDR      r0,|L8.440|
000116  f7fffffe          BL       mico_rtos_unlock_mutex
00011a  bf00              NOP      
                  |L8.284|
00011c  bf00              NOP      
;;;444        err = kNotFoundErr;
00011e  4c23              LDR      r4,|L8.428|
000120  3c1b              SUBS     r4,r4,#0x1b
;;;445        goto exit;
000122  e040              B        |L8.422|
                  |L8.292|
;;;446      }
;;;447      
;;;448      // sensor init
;;;449    
;;;450      /*********************** START INITIALIZATION ************************/
;;;451      /*	Based on the user need configure I2C or SPI interface.
;;;452      *	It is example code to explain how to use the bme280 API*/
;;;453    #ifdef BMM050_API
;;;454      BMM050_I2C_routine();
000124  f7fffffe          BL       BMM050_I2C_routine
;;;455      com_rslt = bmm050_init(&bmm050_t);
000128  485f              LDR      r0,|L8.680|
00012a  f7fffffe          BL       bmm050_init
00012e  4605              MOV      r5,r0
;;;456      com_rslt += bmm050_set_functional_state(BMM050_NORMAL_MODE);
000130  2000              MOVS     r0,#0
000132  f7fffffe          BL       bmm050_set_functional_state
000136  4405              ADD      r5,r5,r0
;;;457      /*------------------------------------------------------------------------*
;;;458      ************************* START GET and SET FUNCTIONS DATA ****************
;;;459      *---------------------------------------------------------------------------*/
;;;460      /* This API used to Write the data rate of the sensor, input
;;;461      value have to be given
;;;462      data rate value set from the register 0x4C bit 3 to 5*/
;;;463      v_data_rate_value_u8 = BMM050_DATA_RATE_30HZ;/* set data rate of 30Hz*/
000138  2607              MOVS     r6,#7
;;;464      com_rslt += bmm050_set_data_rate(v_data_rate_value_u8);
00013a  4630              MOV      r0,r6
00013c  f7fffffe          BL       bmm050_set_data_rate
000140  4405              ADD      r5,r5,r0
;;;465    
;;;466      /* This API used to read back the written value of data rate*/
;;;467      com_rslt += bmm050_get_data_rate(&v_data_rate_u8);
000142  a802              ADD      r0,sp,#8
000144  f7fffffe          BL       bmm050_get_data_rate
000148  4405              ADD      r5,r5,r0
;;;468      /*-----------------------------------------------------------------*
;;;469      ************************* END GET and SET FUNCTIONS ****************
;;;470      *-------------------------------------------------------------------*/
;;;471      if(com_rslt < 0){
00014a  2d00              CMP      r5,#0
00014c  da28              BGE      |L8.416|
;;;472        bmm050_user_log("BMM050_ERROR: bme280 sensor init failed!");
00014e  bf00              NOP      
000150  4818              LDR      r0,|L8.436|
000152  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000154  b900              CBNZ     r0,|L8.344|
000156  e01f              B        |L8.408|
                  |L8.344|
000158  4817              LDR      r0,|L8.440|
00015a  f7fffffe          BL       mico_rtos_lock_mutex
00015e  215c              MOVS     r1,#0x5c
000160  a016              ADR      r0,|L8.444|
000162  f7fffffe          BL       strrchr
000166  b128              CBZ      r0,|L8.372|
000168  215c              MOVS     r1,#0x5c
00016a  a014              ADR      r0,|L8.444|
00016c  f7fffffe          BL       strrchr
000170  1c40              ADDS     r0,r0,#1
000172  e000              B        |L8.374|
                  |L8.372|
000174  a011              ADR      r0,|L8.444|
                  |L8.374|
000176  4607              MOV      r7,r0
000178  f7fffffe          BL       mico_get_time
00017c  4680              MOV      r8,r0
00017e  f44f70ec          MOV      r0,#0x1d8
000182  463b              MOV      r3,r7
000184  a227              ADR      r2,|L8.548|
000186  4641              MOV      r1,r8
000188  9000              STR      r0,[sp,#0]
00018a  a048              ADR      r0,|L8.684|
00018c  f7fffffe          BL       __2printf
000190  4809              LDR      r0,|L8.440|
000192  f7fffffe          BL       mico_rtos_unlock_mutex
000196  bf00              NOP      
                  |L8.408|
000198  bf00              NOP      
;;;473        err = kNotInitializedErr;
00019a  4c04              LDR      r4,|L8.428|
00019c  3c12              SUBS     r4,r4,#0x12
;;;474        goto exit;
00019e  e002              B        |L8.422|
                  |L8.416|
;;;475      }
;;;476      /************************* END INITIALIZATION *************************/
;;;477    #endif
;;;478      return kNoErr;
0001a0  2000              MOVS     r0,#0
                  |L8.418|
;;;479      
;;;480    exit:
;;;481      return err;
;;;482    }
0001a2  e8bd83fe          POP      {r1-r9,pc}
                  |L8.422|
0001a6  4620              MOV      r0,r4                 ;481
0001a8  e7fb              B        |L8.418|
;;;483    
                          ENDP

0001aa  0000              DCW      0x0000
                  |L8.428|
                          DCD      0xffffe5d4
                  |L8.432|
                          DCD      bmm050_i2c_device
                  |L8.436|
                          DCD      mico_debug_enabled
                  |L8.440|
                          DCD      stdio_tx_mutex
                  |L8.444|
0001bc  2e2e5c2e          DCB      "..\\..\\..\\..\\Platform\\Drivers\\sensor\\BMM050\\bmm0"
0001c0  2e5c2e2e
0001c4  5c2e2e5c
0001c8  506c6174
0001cc  666f726d
0001d0  5c447269
0001d4  76657273
0001d8  5c73656e
0001dc  736f725c
0001e0  424d4d30
0001e4  35305c62
0001e8  6d6d30  
0001eb  35305f75          DCB      "50_user.c"
0001ef  7365722e
0001f3  63      
                  |L8.500|
0001f4  00                DCB      0
0001f5  00                DCB      0
0001f6  00                DCB      0
0001f7  00                DCB      0
                  |L8.504|
                          DCD      __PRETTY_FUNCTION__
                  |L8.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
                  |L8.548|
000224  424d4d30          DCB      "BMM050_USER",0
000228  35305f55
00022c  53455200
                  |L8.560|
000230  5b25645d          DCB      "[%d][%s: %s:%4d] BMM050_ERROR: MicoI2cInitialize err = "
000234  5b25733a
000238  2025733a
00023c  2534645d
000240  20424d4d
000244  3035305f
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
                  |L8.624|
000270  5b25645d          DCB      "[%d][%s: %s:%4d] BMM050_ERROR: no i2c device found!\r\n"
000274  5b25733a
000278  2025733a
00027c  2534645d
000280  20424d4d
000284  3035305f
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
                  |L8.680|
                          DCD      bmm050_t
                  |L8.684|
0002ac  5b25645d          DCB      "[%d][%s: %s:%4d] BMM050_ERROR: bme280 sensor init faile"
0002b0  5b25733a
0002b4  2025733a
0002b8  2534645d
0002bc  20424d4d
0002c0  3035305f
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

                  bmm050_t
                          %        32

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

                  __PRETTY_FUNCTION__
000000  7369676e          DCB      0x73,0x69,0x67,0x6e
000004  65642069          DCB      0x65,0x64,0x20,0x69
000008  6e742062          DCB      0x6e,0x74,0x20,0x62
00000c  6d6d3035          DCB      0x6d,0x6d,0x30,0x35
000010  305f7365          DCB      0x30,0x5f,0x73,0x65
000014  6e736f72          DCB      0x6e,0x73,0x6f,0x72
000018  5f696e69          DCB      0x5f,0x69,0x6e,0x69
00001c  7428766f          DCB      0x74,0x28,0x76,0x6f
000020  69642900          DCB      0x69,0x64,0x29,0x00
                  |symbol_number.30|
000024  7369676e          DCB      0x73,0x69,0x67,0x6e
000028  65642069          DCB      0x65,0x64,0x20,0x69
00002c  6e742062          DCB      0x6e,0x74,0x20,0x62
000030  6d6d3035          DCB      0x6d,0x6d,0x30,0x35
000034  305f7365          DCB      0x30,0x5f,0x73,0x65
000038  6e736f72          DCB      0x6e,0x73,0x6f,0x72
00003c  5f646569          DCB      0x5f,0x64,0x65,0x69
000040  6e697428          DCB      0x6e,0x69,0x74,0x28
000044  766f6964          DCB      0x76,0x6f,0x69,0x64
000048  2900              DCB      0x29,0x00

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

                  bmm050_i2c_device
000000  0200              DCB      0x02,0x00
000002  0010              DCW      0x0010
000004  0001              DCB      0x00,0x01

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
