; 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\bootloader\mico-fire_f429\obj_rvmdk\rgb_led.o --asm_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\rgb_led.d --cpu=Cortex-M4.fp --apcs=interwork --diag_suppress=9931,1,1293 -I..\..\..\..\Bootloader -I..\..\..\..\Board\fire_F429 -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 -IG:\GIT_OSC\F429_OV2640_MICO_SDRAM\Projects\STM32F429\bootloader\RVMDK\RTE -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -ID:\work\keil5\ARM\CMSIS\Include -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__MICROLIB -D__UVISION_VERSION=516 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DBOOTLOADER -DNO_MICO_RTOS -DHSE_VALUE=25000000 --omf_browse=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\rgb_led.crf ..\..\..\..\Platform\Drivers\rgb_led\P9813\rgb_led.c]
                          THUMB

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

                  P9813_PIN_write_frame PROC
;;;28     /* use gpio */
;;;29     static void P9813_PIN_write_frame(uint32_t data)
000000  b570              PUSH     {r4-r6,lr}
;;;30     { 
000002  4604              MOV      r4,r0
;;;31       uint8_t i;        
;;;32       uint32_t f_data = data;
;;;33       //rgb_led_log("P9813_PIN_write_frame = %X", f_data);
;;;34       
;;;35       for(i=0; i<32; i++){
000004  2500              MOVS     r5,#0
                  |L1.6|
;;;36         P9813_PIN_CIN_Clr();
000006  200d              MOVS     r0,#0xd
000008  f7fffffe          BL       MicoGpioOutputLow
;;;37         if(f_data & 0x80000000){
00000c  2c00              CMP      r4,#0
;;;38           P9813_PIN_DIN_Set();
;;;39         }
;;;40         else{
;;;41           P9813_PIN_DIN_Clr();
00000e  f04f000d          MOV      r0,#0xd
000012  da02              BGE      |L1.26|
000014  f7fffffe          BL       MicoGpioOutputHigh
000018  e001              B        |L1.30|
                  |L1.26|
00001a  f7fffffe          BL       MicoGpioOutputLow
                  |L1.30|
;;;42         }
;;;43         P9813_PIN_CIN_Set();  // raise edge to set data
00001e  200d              MOVS     r0,#0xd
000020  f7fffffe          BL       MicoGpioOutputHigh
;;;44         f_data = f_data << 1;
000024  1c6d              ADDS     r5,r5,#1
000026  0064              LSLS     r4,r4,#1
000028  b2ed              UXTB     r5,r5                 ;35
00002a  2d20              CMP      r5,#0x20              ;35
00002c  d3eb              BCC      |L1.6|
;;;45         //rgb_led_log("frame_data<<1 =%x", f_data);
;;;46       } 
;;;47       
;;;48       //P9813_PIN_CIN_Clr();
;;;49       //P9813_PIN_DIN_Clr();
;;;50     }
00002e  bd70              POP      {r4-r6,pc}
;;;51     
                          ENDP


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

                  P9813_PIN_write_start_frame PROC
;;;51     
;;;52     static void P9813_PIN_write_start_frame(void)
000000  2000              MOVS     r0,#0
;;;53     { 
;;;54       uint32_t start_frame = 0x00000000;
;;;55       P9813_PIN_write_frame(start_frame);     
000002  f7ffbffe          B.W      P9813_PIN_write_frame
;;;56     }
;;;57     
                          ENDP


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

                  rgb_led_close PROC
;;;90     
;;;91     void rgb_led_close(void)
000000  b510              PUSH     {r4,lr}
;;;92     {
;;;93       rgb_led_init();
000002  f7fffffe          BL       rgb_led_init
;;;94       rgb_led_open(0, 0, 0);
000006  2200              MOVS     r2,#0
000008  e8bd4010          POP      {r4,lr}
00000c  4611              MOV      r1,r2
00000e  4610              MOV      r0,r2
000010  f7ffbffe          B.W      rgb_led_open
;;;95     }
                          ENDP


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

                  rgb_led_init PROC
;;;77     
;;;78     void rgb_led_init(void)
000000  b510              PUSH     {r4,lr}
;;;79     {
;;;80       MicoGpioInitialize( (mico_gpio_t)P9813_PIN_CIN, OUTPUT_PUSH_PULL );
000002  2103              MOVS     r1,#3
000004  200d              MOVS     r0,#0xd
000006  f7fffffe          BL       MicoGpioInitialize
;;;81       MicoGpioInitialize( (mico_gpio_t)P9813_PIN_DIN, OUTPUT_PUSH_PULL );
00000a  2103              MOVS     r1,#3
00000c  e8bd4010          POP      {r4,lr}
000010  200d              MOVS     r0,#0xd
000012  f7ffbffe          B.W      MicoGpioInitialize
;;;82     }
;;;83     
                          ENDP


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

                  rgb_led_open PROC
;;;83     
;;;84     void rgb_led_open(uint8_t red, uint8_t green, uint8_t blue)
000000  b570              PUSH     {r4-r6,lr}
;;;85     {
000002  4615              MOV      r5,r2
000004  460c              MOV      r4,r1
000006  4606              MOV      r6,r0
;;;86       P9813_PIN_write_start_frame();
000008  f7fffffe          BL       P9813_PIN_write_start_frame
00000c  43e8              MVNS     r0,r5
00000e  2130              MOVS     r1,#0x30
000010  ea0100a0          AND      r0,r1,r0,ASR #2
000014  f04001c0          ORR      r1,r0,#0xc0
000018  43e0              MVNS     r0,r4
00001a  220c              MOVS     r2,#0xc
00001c  ea021020          AND      r0,r2,r0,ASR #4
000020  4308              ORRS     r0,r0,r1
000022  43f1              MVNS     r1,r6
000024  f3c11181          UBFX     r1,r1,#6,#2
000028  4308              ORRS     r0,r0,r1
00002a  0600              LSLS     r0,r0,#24
00002c  ea404005          ORR      r0,r0,r5,LSL #16
000030  ea402004          ORR      r0,r0,r4,LSL #8
000034  4330              ORRS     r0,r0,r6
000036  f7fffffe          BL       P9813_PIN_write_frame
;;;87       P9813_PIN_write_data(blue, green, red);
;;;88       P9813_PIN_write_start_frame();  // fix led bink bug
00003a  e8bd4070          POP      {r4-r6,lr}
00003e  f7ffbffe          B.W      P9813_PIN_write_start_frame
;;;89     }
;;;90     
                          ENDP


;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\Platform\\Drivers\\rgb_led\\P9813\\rgb_led.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___9_rgb_led_c_226ef8dd____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___9_rgb_led_c_226ef8dd____REV16| PROC
#line 115

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
