亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fwxsc1.inc

?? 在ADS環境下LCD 測試例子
?? INC
?? 第 1 頁 / 共 2 頁
字號:
        ;GetFLASHType $w4, $w1, $w2, $w3, $w5, $w6, $w7
        ; insert the flash type into the config reg
        orr     $w8,  $w8,  $w4,  LSL  #12

        ; determine bus speed
        ;getHexSwitchLo $w2                     ; read S14 for bus speed, flash page mode, bus width
        ands    $w1,  $w2,  #S14_BUSSPEED      ; test for bus speed
        bicne   $w8,  $w8,  #HwConfig_BusSPEED ; 0=51.5mhz
        orreq   $w8,  $w8,  #HwConfig_BusSPEED ; 1=103mhz

        ; turn page mode off?
        ands    $w1,  $w2,  #S14_PAGEMODE      ; test for "page mode off" switch setting
        bicne   $w8,  $w8,  #HwConfig_PAGEMODE ; clear page mode bits

        ; determine bus width - for all banks
        ands    $w1,  $w2,  #S14_BUSWIDTH      ; test for bus width = 16 bits
        bicne   $w8,  $w8,  #HwConfig_BusWIDTH ; 0=16 bit
        orreq   $w8,  $w8,  #HwConfig_BusWIDTH ; 1=32 bit

        ; determine pll speed
        ;getHexSwitchHi $w2                     ; read S13 for debug port, debug mode, pll
        ands    $w1,  $w2,  #S13_PLLSPEED
        bicne   $w8,  $w8,  #HwConfig_PLL      ; 0=?? mhz
        orreq   $w8,  $w8,  #HwConfig_PLL      ; 1=206mhz

        ; determine debug port
        ands    $w1,  $w2,  #S13_DEBUGPORT
        bicne   $w8,  $w8,  #HwConfig_PORT     ; 0=uart1
        orreq   $w8,  $w8,  #HwConfig_PORT     ; 1=uart3

        ; determine debug mode
        ands    $w1,  $w2,  #S13_DEBUGMODE
        biceq   $w8,  $w8,  #HwConfig_DbgMODE  ; 0=off (default)
        orrne   $w8,  $w8,  #HwConfig_DbgMODE  ; 1=on
;ENDIF
        
PostDetection

        ; get ScratchPad's current value (initHWConfig should already have executed)
        ldr     $w3, =PSPR_BASE_PHYSICAL
        ldr     $w3, [$w3]

        ; orr in the new bits
        orr     $w8,  $w8,  $w3
 
        ; ensure that the sleep reset valid bit is clear - this should only
        ; be set by an app that is prepared to handle a sleep reset.
        bic     $w8,  $w8,  #HwConfig_RESET

        ; write back the new value
        ldr     $w2, =PSPR_BASE_PHYSICAL
        str     $w8, [$w2]

    MEND


; //////////////////////////////////////////////////////////////////////    
        
	MACRO
	mtc15	$cpureg, $cp15reg
	mcr	p15,0,$cpureg,$cp15reg,c0,0
	MEND

	MACRO
	mfc15	$cpureg, $cp15reg
	mrc	p15,0,$cpureg,$cp15reg,c0,0
	MEND
    
    
    
; **** Macro DisableInts *********************************************
; * Params: $gp1 (scratch reg)
; *         
; * Returns: nothing
; *
; *  This macro disables both IRQ and FIQ nondestructively
; ********************************************************************
    MACRO
    DisableInts $gp1
        MRS $gp1, cpsr                                ; Get value of CPSR 
        ORR $gp1, $gp1, #NoIntsMask                ; Set IRQ and FIQ-disabling bits
        MSR cpsr_c, $gp1                                    ; Disable the IRQ/FIQ
    MEND


;
; **** Macro EnableInts *********************************************
; * Params: $gp1 (scratch reg)
; *         
; * Returns: nothing
; *
; *  This macro enables both IRQ and FIQ nondestructively
; ********************************************************************
    MACRO
    EnableInts $gp1
        MRS $gp1, cpsr                     ; Get value of CPSR 
		AND $gp1, $gp1, #IrqFiqEnable      ; Set enable/disable bits
        MSR cpsr_c, $gp1                   ; Control the IRQ/FIQ
    MEND
    

;
; **** Macro InitFFUART *********************************************
; * Params: $FBA (FFUart Base Address )$gp2, $gp3 (scratch regs)
; *         
; * Returns: nothing
; *
; * Registers:  PReserves $FBA, corrupts the rest
; *
; *  This macro inits the FFUART in non-polled, non-FIFO mode at 38400 baud.
; ********************************************************************
    MACRO
    InitFFUART $FBA, $gp2, $gp3


    ;ldr $FBA, =FFUART_BASE_U_VIRTUAL

	; Disable UART and disable interrupts
	ldr $gp2, =0x0
	str $gp2, [$FBA, #0x0c]	; (DLAB OFF)
	str $gp2, [$FBA, #0x04]	; IER_DLH = 0x0

	; Set baud rate divisor (115200 baud)
	ldr $gp2, =0x80		
	str $gp2, [$FBA, #0x0c]	; (DLAB ON)
	ldr $gp2, =0x08		
	str $gp2, [$FBA]		; THR_RBR_DLL = 0x08
	ldr $gp2, =0x0
	str $gp2, [$FBA, #0x04]	; IER_DLH = 0x0

	; Set communications parameters to 8,N,1
	ldr $gp2, =0x0
	str $gp2, [$FBA, #0x0c]	; (DLAB OFF)
	ldr $gp2, =0x3
	str $gp2, [$FBA, #0x0c]	; LCR = 0x3

	; Clear and enable fifos
	ldr $gp2, =0x7
	str $gp2, [$FBA, #0x08]	; IIR_FCR = 0x8

	; Set polled mode
	ldr $gp2, =0x0
	str $gp2, [$FBA, #0x04]	; IER_DLH = 0x0

	; Set normal UART mode
	ldr $gp2, =0x0
	str $gp2, [$FBA, #0x10]	; MCR = 0


    ; Enable UART
	ldr $gp2, [$FBA, #0x04]	; $gp2 = IER_DLH
	orr $gp2, $gp2, #0x40	; Set the enable uart bit
	str $gp2, [$FBA, #0x04]	; 

        
    MEND    


;
; **** Macro PrintStr *********************************************
; * Params: $FBA (FFUART Base Address), $pStr (pointer to string), $gp1
; *         
; * Returns: nothing
; *
; * Effects: Corrupts $pStr & $gp1, preserves $FBA
; *
; *  This macro writes the string pointed to by $pSTr until a '0' is reached.
; ********************************************************************
    MACRO
    PrintStr $FBA, $pStr, $gp1
        

10
        ldrb    $gp1, [$pStr]        ; load the first byte
        cmp     $gp1, #0             ; is it NULL?
        beq     %FT20                 ; if so, let's end now (search forward, this macro only)
        
        IsTBE   $FBA, $gp1           ; ensure TBE
        ldrb    $gp1, [$pStr]        ; load the first byte (agin, for now... really need another register)
        
        strb    $gp1, [$FBA]         ; transmit a byte
        add     $pStr, $pStr, #1     ;  and increment the byte pointer
        b       %BT10                 ; otherwise, keep looping (search backwards, this macro only)
        
20

    MEND


;
; **** Macro IsTBE *********************************************
; * Params: $FBA (FFUART Base Address), $gp1 (scratch reg)
; *         
; * Returns: nothing
; *
; * Effects: Corrupts $gp1, preserves $FBA
; *
; *  This macro spins until FFUART.LSR.TEMT gets set, indicating it
; *    is ready for data.
; ********************************************************************

    MACRO
    IsTBE $FBA, $gp1

10
    ldr  $gp1, [$FBA, #FF_LSR_OFFSET]
    ands $gp1, $gp1, #0x40    ; mask all but bit 6, and set Z if result=0 (i.e. if bit not set)
    beq  %BT10
    
    MEND


;
; **** Macro SCRUB_SDRAM *********************************************
; * Params: $StartAdx: 32-bit aligned start address.
; *         $NumMB   : Number of MB to clear.
; *         $gp1,2   : general purpose scratch
; *         
; * Returns: nothing
; *
; * Effects: corrupts $gp1,2
; *
; *  This macro simply zeros out RAM, ending at $StartAdx, and
; *    starting at ($StartAdx + ($NumMB*0x100000)), inclusive.  It is the resposibility of the
; *    caller to ensure that the addresses are valid!  Ensure $StartAdx
; *    is 32-bit aligned, or my math will get hosed.  I will not alter
; *    the $StartAdx parameter to ensure this alignment!
; *
; Ex:
;    ldr r0, =0xA0000000     ; start Adx
;    mov r1, #64             ; #MB
;
;    SCRUB_SDRAM r0, r1, r2, r3
;
; ********************************************************************

    MACRO
    SCRUB_SDRAM $StartAdx, $NumMB, $gp1, $gp2
    ;
    ; Determine ending address: endAdx = (($NumMB * 0x0010 0000) + $StartAdx)
    ;
    mov     $gp1, #0x100000
    mla     $gp2, $NumMB, $gp1, $StartAdx      

    ldr     $gp1, =0x00000000           ; source data
10    
    sub     $gp2, $gp2, #4              ; word pre-decrement

    str     $gp1, [$gp2]                ; 32-bit zero fill
    cmp     $gp2, $StartAdx
    bne     %BT10                                      
    
    MEND
    
;---------------------------------

    ENDIF
    END
   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久先锋影音av鲁色资源| 97se亚洲国产综合自在线| 欧美一级xxx| 婷婷久久综合九色综合伊人色| 欧美在线免费视屏| 日日夜夜一区二区| 精品国产乱码久久久久久老虎| 国产原创一区二区| 中文字幕在线播放不卡一区| 在线观看视频一区二区| 精品一区二区三区欧美| 亚洲国产人成综合网站| 6080日韩午夜伦伦午夜伦| 美女在线一区二区| 中文字幕乱码久久午夜不卡| 欧美成人vps| 高清在线观看日韩| 亚洲不卡av一区二区三区| 日韩精品专区在线影院观看| 国产不卡视频一区二区三区| 亚洲综合一区二区三区| 欧美精品一区二区三区视频| 99视频一区二区三区| 日韩电影免费在线观看网站| 亚洲国产精品99久久久久久久久| 欧美图片一区二区三区| 国产精品一二二区| 亚洲国产精品一区二区www在线| 日韩欧美美女一区二区三区| 99精品视频在线播放观看| 日韩高清一区二区| 中文字幕一区二区三区色视频| 欧美日本韩国一区二区三区视频| 国产一区二区免费视频| 亚洲午夜成aⅴ人片| 国产视频视频一区| 欧美一区二区在线播放| 97精品久久久午夜一区二区三区 | 日韩亚洲欧美高清| 波多野结衣在线aⅴ中文字幕不卡| 午夜激情久久久| 国产精品伦一区| 精品久久久久一区| 欧美三级午夜理伦三级中视频| 国产精品一二二区| 麻豆精品一二三| 午夜欧美视频在线观看| 亚洲精品中文在线| 国产精品美女一区二区| 精品国产91乱码一区二区三区 | 欧美日韩国产三级| 成人黄色av网站在线| 激情深爱一区二区| 日本不卡在线视频| 亚洲综合成人在线视频| 亚洲色图视频免费播放| 国产日韩欧美高清在线| 欧美tickling网站挠脚心| 欧美日韩欧美一区二区| 91亚洲永久精品| www.日韩av| 不卡av免费在线观看| 国产69精品久久久久毛片| 国产精品一区二区不卡| 国产一二三精品| 久草中文综合在线| 久久99久久精品欧美| 日本va欧美va欧美va精品| 亚洲777理论| 性做久久久久久久久| 国产精品18久久久久久vr| 国内不卡的二区三区中文字幕| 久久精品免费观看| 久久国产乱子精品免费女| 日本不卡一区二区三区 | 一个色综合av| 一区二区免费在线播放| 一区二区三区电影在线播| 亚洲综合999| 婷婷夜色潮精品综合在线| 日韩精品欧美成人高清一区二区| 亚洲第一狼人社区| 免费日本视频一区| 国产乱码精品一品二品| 大白屁股一区二区视频| 不卡电影一区二区三区| 91麻豆swag| 欧美高清视频一二三区| 精品国产乱码久久| 国产精品卡一卡二| 夜夜嗨av一区二区三区中文字幕 | 日韩三级视频中文字幕| 日韩精品一区二区三区在线播放 | 国产精品成人一区二区三区夜夜夜| 国产精品日产欧美久久久久| 亚洲精品国产a久久久久久| 亚洲不卡av一区二区三区| 毛片av一区二区| 成人av在线网| 欧美日韩国产系列| 26uuu欧美日本| 亚洲男人的天堂在线观看| 同产精品九九九| 国产精品综合一区二区三区| 色香蕉成人二区免费| 91精品国产福利在线观看| 久久精品亚洲麻豆av一区二区 | 欧美视频一二三区| 欧美精品一区二区三| 1区2区3区欧美| 日本亚洲视频在线| 91在线小视频| 日韩一级二级三级| 综合在线观看色| 免费观看在线综合| 色综合天天综合给合国产| 欧美一区二区福利视频| 中文字幕第一区二区| 视频在线在亚洲| aaa欧美大片| 欧美电影精品一区二区 | 性感美女久久精品| 国产美女在线观看一区| 在线看不卡av| 久久久久久久久一| 香蕉成人啪国产精品视频综合网| 国产成人精品免费| 国产精品久久久久久久岛一牛影视 | 日韩午夜激情电影| 中文字幕一区二区在线播放| 日韩高清一级片| 色老汉一区二区三区| 国产丝袜美腿一区二区三区| 亚洲成av人片在www色猫咪| 波多野结衣中文一区| www久久精品| 日本免费在线视频不卡一不卡二| 91啪亚洲精品| 欧美国产激情一区二区三区蜜月| 蜜桃一区二区三区四区| 欧美性猛片aaaaaaa做受| 中文字幕一区在线| 国产精品一区二区无线| 日韩欧美国产一二三区| 日韩中文字幕91| 欧美日本在线观看| 一区二区在线观看免费视频播放| 福利一区二区在线| 久久久国产一区二区三区四区小说| 蜜桃视频第一区免费观看| 欧美日韩一区二区不卡| 一级特黄大欧美久久久| 97久久人人超碰| 国产精品国产三级国产a| 国产精品亚洲一区二区三区妖精| 日韩欧美一级精品久久| 青青青爽久久午夜综合久久午夜| 在线不卡a资源高清| 亚洲成人中文在线| 欧美亚洲动漫精品| 亚洲一区二区三区四区五区黄| 色国产精品一区在线观看| 亚洲激情中文1区| 在线观看91精品国产入口| 一区二区三区国产| 欧美在线观看一二区| 亚洲一区二区视频| 欧美日本在线观看| 日本欧美大码aⅴ在线播放| 3atv在线一区二区三区| 日韩av电影天堂| 精品久久国产字幕高潮| 韩国女主播成人在线| 国产夜色精品一区二区av| 国产99久久久国产精品免费看| 国产精品免费看片| 91一区在线观看| 亚洲精品高清视频在线观看| 欧美唯美清纯偷拍| 美女国产一区二区| 久久奇米777| 92国产精品观看| 亚洲国产精品麻豆| 欧美一级一级性生活免费录像| 久久99久久99小草精品免视看| 久久久精品一品道一区| 成人激情动漫在线观看| 一区二区三区**美女毛片| 欧美一区二区在线观看| 国产精品66部| 亚洲欧美aⅴ...| 欧美一区二区大片| 国产成a人亚洲精品| 亚洲制服丝袜av| 夜夜嗨av一区二区三区网页| 欧美一区二区三区影视| 国产99精品国产| 亚洲午夜电影在线观看| 久久久久久久综合色一本| 欧洲国产伦久久久久久久|