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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rominit.s

?? VXWORKS BSP開(kāi)發(fā)包,初始化 驅(qū)動(dòng)文件
?? S
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
        strb            r0, [r10, #UART_FIFOControl]        /* turn fifos on */        mov             r0, #UARTFCR_RXReset | ARTFCR_TXReset | UARTFCR_Mode0RXRDYTXRDY | UARTFCR_RXTrigger1        strb            r0, [r10, #UART_FIFOControl]    /* make DTR active, RTS inactive, stop other end */        mov             r0, #UARTMCR_DTRActive        strb            r0, [r10, #UART_ModemControl]        mov             pc, lr/************************** Print Helpers ******************************************/PrintString:110:        ldrb    r0, [lr], #1/* the following chunk enables LF to CR+LF translation */        teq     r0, #0x0A               /* LF (linefeed?) */        bne     120f        mov     r0, #0x0D               /* CR             */11:        ldr     r1, =SERIAL_DISPLAY        ldrb    r2, [r1, #UART_LineStatus]        tst     r2, #UARTLSR_TXHoldingEmpty        beq     11b        strb    r0, [r1, #UART_Transmit]        mov     r0, #0x0A               /* LF             */120:        teq     r0, #0                  /* test for the string termination character (0) */        beq     130f12:        ldrb    r2, [r1, #UART_LineStatus]        tst     r2, #UARTLSR_TXHoldingEmpty        beq     12b        strb    r0, [r1, #UART_Transmit]        b       110b130:        add     lr, r14, #3             /* round up to next word boundary */        bic     pc, r14, #3/* * Print 32-bit hex value subroutine * in:  r0 = value to print in hex */PrintHex32:        mov     r2, r14        mov     r1, r0, LSR #28        bl      PrintHexDigit        mov     r1, r0, LSR #24        bl      PrintHexDigit        mov     r1, r0, LSR #20        bl      PrintHexDigit        mov     r1, r0, LSR #16        bl      PrintHexDigit        mov     r1, r0, LSR #12        bl      PrintHexDigit        mov     r1, r0, LSR #04        mov     r1, r1, LSR #04        bl      PrintHexDigit        mov     r1, r0, LSR #04        bl      PrintHexDigit        mov     r1, r0        bl      PrintHexDigit        mov     pc, r2PrintHexDigit:        and     r1, r1, #0x0F        cmp     r1, #10        addcc   r1, r1, #'0'        addcs   r1, r1, #'A'-10        ldr     r3, =SERIAL_DISPLAY13:        ldrb    r4, [r3, #UART_LineStatus]        tst     r4, #UARTLSR_TXHoldingEmpty        beq     13b        strb    r1, [r3, #UART_Transmit]        mov     pc, r14/************************** AUTO Size Mem *****************************************/SIZEDimm:/*******  I2C interface initialization ****************************************/        /*  Setup I2C Slave Address Register */        ldr             r1, =I2C_DEVID      /* Load slave address r1.*/        ldr             r2, =ISAR_ADDR      /* Load address of the I2C Slave Address Register in r2. */        ldr             r3, =0x0000007f     /* Load mask in r3. */        and             r1, r3, r3          /* The mask zeroes the 25 MSBs of r1 just to make sure. */        str             r3, [r2]            /* Save the value 0x02 (I2C_DEVID) in the register. */        /*  Setup I2C Clock Count Register */        ldr             r2, =ICCR_ADDR      /* Load the address of the I2C Clock Control Register in r2. */        ldr             r3, =0x0000014d     /* Set for 5.05 us transition time at 66MHz (0x14D = 333). */        str             r3, [r2]            /* Save the value in the register. */        /*  Enable I2C Interface Unit - status will be polled */        ldr             r2, =ICR_ADDR       /* Load the address of the Control Register in r2. */        ldr             r1, =ICR_GCALL      /* Disable General Call (will be master) */        ldr             r3, =ICR_ENB        /* Enable I2C unit ). */        orr             r1, r3, r1          /* OR the two and store in R1 */        ldr             r3, =ICR_SCLENB     /* Enable I2C Clock Generator disabled */        orr             r1, r3, r1          /* OR the two and store in R1 */        str             r1, [r2]            /* Save the value to the Control Register. *//****** Now read the SPD Data *************************************************/        /* Pointers to I2C Registers */        ldr             r11, =ICR_ADDR      /* Load the address of the I2C Control Register in r11. */        ldr             r12, =ISR_ADDR      /* Load the address of the I2C Status Register in r12. */        ldr             r13, =IDBR_ADDR     /* Load the address of the I2C Data Buffer Register in r13. */        /* Initialize byte counters */        ldr             r5, =0x00000000     /* R5 has running checksum calculation */        ldr             r7, =0x00000000     /* Counter incremented before byte is read */        ldr             r9, =I2C_TIMOUT     /* Timeout limit in case EEPROM does not respond */        /* At the end of all this, R4 has DRAM size, R8 has bank count, and R10 has Bank size */        ldr             r10,=0x00000000     /* Bank size */        ldr             r6, =0x00000000     /* Bank count */        ldr             r4, =0x00000000     /* SDRAM size */        /*  FREE REGISTERS ARE R0 - R3 *//*** Put out address, with WRITE mode ***/        /* Set SDRAM module address and write mode */        ldr             r1, =SDRAM_DEVID    /* Load slave address for SDRAM module: 0xA2 (Presence Detect Data) */        bic             r1, r1, #IDBR_MODE  /* Clear read bit (bit #0) */        str             r1, [r13]           /* Store to data register */        /* Initiate dummy write to set EEPROM pointer to 0 */        ldr             r1, [r11]             /* read the current Control Register value */        orr             r1, r1, #ICR_START    /* Set start bit */        orr             r1, r1, #ICR_TRANSFER /* Set transfer bit - bit is self_clearing */        str             r1, [r11]                         /* Store to control register */        /* Wait for transmit empty status */        ldr             r1, =0x00000000       /* Initialize I2C timeout counter */0:        add             r1, r1, #1            /* Increment I2C timeout counter (r1 = r1 + 1) */        cmp             r1, r9        beq             i2c_error             /* Kick out of SDRAM initialization if timeout occurs */        ldr             r0, [r12]             /* Load I2C Status Reg into R0 */        ldr             r2, =ISR_EMPTY        /* Poll status register */        and             r3, r2, r0            /* Bit #6 is checked: IDBR Transmit Empty */        cmp             r3, r2                /* If bit = 0 then branch to 0 and check again */        bne             0b        str             r0, [r12]             /* Write back status to clear *//*** Write pointer register on EEPROM to 0x00000000 ***/        /*  Set SDRAM module EEPROM address to 0 */        ldr             r1, =0x00000000       /* Load base address of SDRAM module EEPROM */        str             r1, [r13]             /* Store to data register */        /*  Send address to EEPROM */        ldr             r1, [r11]             /* read the current Control Register value */        bic             r1, r1, #ICR_START    /* No start bit (already started) */        orr             r1, r1, #ICR_TRANSFER /* Set transfer bit - bit is self_clearing */        str             r1, [r11]             /* Store to control register */        /* Wait for transmit empty status */        ldr             r1, =0x00000000       /* Initialize I2C timeout counter */0:        add             r1, r1, #1            /* Increment I2C timeout counter (r1 = r1 + 1) */        cmp             r1, r9        beq             i2c_error             /* Kick out of SDRAM initialization if timeout occurs */        ldr             r0, [r12]             /* Load I2C Status Reg into R0 -  ld    (r12), r10*/        ldr             r2, =ISR_EMPTY        /* Poll status register */        and             r3, r2, r0            /* Bit #6 is checked: IDBR Transmit Empty */        cmp             r3, r2                /* If bit = 0 then branch to 0 and check again (r3 = 0x00)*/        bne             0b        str             r0, [r12]             /* Write back status to clear *//******* Read SDRAM PD data     ************************************************//*** Put out address, with READ mode ***/        /*  Set SDRAM module address and read mode */        ldr             r0, =SDRAM_DEVID      /* Load slave address for SDRAM module (0xA2) */        orr             r1, r0, #IDBR_MODE    /* Set read bit (bit #0) */        str             r1, [r13]             /* Store to data register */        /*  Send next read request */        ldr             r1, [r11]             /* read the current Control Register value */        orr             r1, r1, #ICR_START    /* Set start bit */        orr             r1, r1, #ICR_TRANSFER /* Set transfer bit - bit is self_clearing */        str             r1, [r11]             /* Store to control register */        /* Wait for transmit empty status */        ldr             r1, =0x00000000       /* Initialize I2C timeout counter */0:        add             r1, r1, #1            /* Increment I2C timeout counter (r1 = r1 + 1) */        cmp             r1, r9        beq             i2c_error             /* Kick out of SDRAM initialization if timeout occurs */        ldr             r0, [r12]             /* Load I2C Status Reg into R0 -  ld    (r12), r10*/        ldr             r2, =ISR_EMPTY        /* Poll status register */        and             r3, r2, r0            /* Bit #6 is checked: IDBR Transmit Empty */        cmp             r3, r2                /* If bit = 0 then branch to 0 and check again (r3 = 0x00)*/        bne             0b        str             r0, [r12]             /* Write back status to clear */sdram_loop:        add             r7, r7, #1            /* Increment byte counter *//*** READ the next Byte!!! ***/        ldr             r1, [r11]             /* read the current Control Register value */        bic             r1, r1, #ICR_START    /* No start bit (already started) */        orr             r1, r1, #ICR_TRANSFER /* Set transfer bit - bit is self_clearing */        /* we have to set NACK before reading the last bit */        /* Number of bytes to read in the Presence Detect EEPROM of SDRAM: 64 bytes */        cmp             r7, #0x00000040       /* 64 (decimal) so if r7 = 64, this is the last byte to be read */        bne             1f                    /* If bytes left, skip ahead */        orr             r1, r1, #ICR_ACK      /* Set NACK if this is the last byte */        orr             r1, r1, #ICR_STOP     /* Set STOP if this is the last byte */1:        str             r1, [r11]             /* Store to control register */        /* Wait for read full status */        ldr             r1, =0x00000000       /* Initialize I2C timeout counter */0:        add             r1, r1, #1            /* Increment I2C timeout counter (r1 = r1 + 1) */        cmp             r1, r9        beq             i2c_error             /* Kick out of SDRAM initialization if timeout occurs */        ldr             r0, [r12]             /* Load I2C Status Reg into R0 */        ldr             r2, =ISR_FULL        /* Poll status register */        and             r3, r2, r0            /* Bit #6 is checked: IDBR Transmit Empty */        cmp             r3, r2                /* If bit = 0 then branch to 0 and check again */        bne             0b        str             r0, [r12]             /* Write back status to clear */        /* Read the data byte */        ldr             r1, [r13]             /* Read the byte */        ldr             r2, =CHECKSUM_BYTE        cmp             r7, r2                /* is it the CHECKSUM byte??? */        beq             1f        add             r5, r5, r1            /* Add it to the checksum if not the checksum byte */        bal             2f                    /* skip checksum comparison */1:        ldr             r0, =0xff             /* If this is the checksum byte, compare it */        and             r5, r5, r0            /*      against the calculated checksum         */        cmp             r1, r5        bne             bad_checksum          /* If no match, skip SDRAM controller initialization */2:        ldr             r2, =BANKCNT_BYTE     /* Check for bank count byte */        cmp             r7, r2        bne             1f        mov             r6, r1                /* Store bank count */1:        ldr             r2, =BANKSZ_BYTE      /* Check for bank size byte */        cmp             r7, r2        bne             1f        ldr             r2, =0x04             /* Store bank size in Mbytes (shift left 2 bits) */        mul             r10, r1, r2        mul             r2, r6, r10           /* Multiply by bank count to get DRAM size in MB */        ldr             r0, =0x100000        mul             r4, r2, r0            /* Convert size to bytes  - r4 contains DRAM size in bytes */1:/* Handle the SDRAM drive strength setup here since we are out of * temporary registers to hold the SDRAM width value until after * all of the SPD data has been read.  Using the value of r8 for * the Bank Count is allright here since the SPD specification states that * the Bank Count SPD byte is #5 and the SDRAM Width SPD byte is #13. */        ldr             r2, =SDRAM_WIDTH_BYTE           /* Check for SDRAM width byte */        cmp             r7, r2        bne             1f        ldr             r2, =0x10                       /* Check for data width of 16 */        cmp             r1, r2        bne             SDRAM_DRIVE_X8        /* Module is composed of x16 devices */        ldr             r2, =0x02        cmp             r2, r6                          /* do we have 2 banks??? */        beq             SDRAM_DRIVE_2_BANK_X16        /* Module is composed of 1 Bank of x16 devices */        ldr             r1, =SDCR_ADDR                  /* point at SDRAM Control Register */        ldr             r2, =SDCR_1BANK_X16             /* drive strength value */        str             r2, [r1]                        /* set value in SDCR */        b               1fSDRAM_DRIVE_2_BANK_X16:        /* Module is composed of 2 Banks of x16 devices */        ldr             r1, =SDCR_ADDR                  /* point at SDRAM Control Register */        ldr             r2, =SDCR_2BANK_X16             /* drive strength value */        str             r2, [r1]                        /* set value in SDCR */        b               1fSDRAM_DRIVE_X8:        /* Module is composed of x8 devices */        ldr             r2, =0x02        cmp             r2, r6                          /* do we have 2 banks??? */        beq             SDRAM_DRIVE_2_BANK_X8        /* Module is composed of 1 Bank of x8 devices */        ldr             r1, =SDCR_ADDR                  /* point at SDRAM Control Register */        ldr             r2, =SDCR_1BANK_X8              /* drive strength value */        str             r2, [r1]                        /* set value in SDCR */        b               1fSDRAM_DRIVE_2_BANK_X8:        /* Module is composed of 2 Banks of x16 devices */        ldr             r1, =SDCR_ADDR                  /* point at SDRAM Control Register */        ldr             r2, =SDCR_2BANK_X8              /* drive strength value */        str             r2, [r1]                        /* set value in SDCR */1:        /* Continue reading bytes if not done */        cmp             r7, #0x00000040        bne             sdram_loop        b               i2c_disablebad_checksum:        mov             r0, #L7SEG_B        mov             r1, #L7SEG_C        bl              SevenSegDisplay	b		bad_checksumi2c_error:        /* hit the leds if an error occurred */#ifdef SECOND_HEX_LED        mov             r0, #L7SEG_1 & L7SEG_Dot#endif        mov             r1, #L7SEG_C & L7SEG_Dot        bl              SevenSegDisplay	b		i2c_errori2c_disable:        /*  Disable I2C Interface Unit */        ldr             r1, [r11]        bic             r1, r1, #ICR_ENB      /* Disable I2C unit */        bic             r1, r1, #ICR_SCLENB   /* Disable I2C clock generator */        str             r1, [r11]             /* Store to control register */	mov	        pc, lrL$StrtInRam:    .long   ROM_TEXT_ADRS + FUNC(romStart) - FUNC(romInit)L$STACK_ADDR:	.long	STACK_ADRS

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一本久道久久综合久久鬼色| 天堂成人免费av电影一区| 8v天堂国产在线一区二区| 色综合咪咪久久| 国产成人自拍网| 风间由美一区二区三区在线观看| 亚洲成人7777| 天堂影院一区二区| 老色鬼精品视频在线观看播放| 日韩二区在线观看| 久久不见久久见免费视频7 | 成人精品电影在线观看| 国产福利视频一区二区三区| 国产福利一区在线| 成人性色生活片| 日本久久一区二区三区| 精品视频免费在线| 欧美一区二区三区系列电影| 777久久久精品| 精品1区2区在线观看| 国产偷国产偷精品高清尤物 | 99久久精品久久久久久清纯| 欧美亚洲综合久久| 欧美电视剧在线观看完整版| 中文天堂在线一区| 亚洲精品久久嫩草网站秘色| 天堂精品中文字幕在线| 国产精品88av| 91久久一区二区| 日韩一区二区三区精品视频| 国产欧美久久久精品影院| 亚洲日本成人在线观看| 免费精品视频在线| 91小视频免费看| 欧美伊人久久久久久午夜久久久久| 欧美精品色综合| 国产欧美日韩三级| 性欧美疯狂xxxxbbbb| 亚洲成人在线观看视频| 久久爱www久久做| 96av麻豆蜜桃一区二区| 日韩欧美你懂的| 国产精品你懂的在线欣赏| 香蕉影视欧美成人| 国产白丝精品91爽爽久久| 欧美人伦禁忌dvd放荡欲情| 久久久久久久综合日本| 天天色综合天天| 国产成人一级电影| 欧美高清视频一二三区| 亚洲精品免费电影| 日韩精品视频网站| 成人深夜福利app| 精品国产伦一区二区三区观看体验| 一区二区三区91| av一区二区三区四区| 久久奇米777| 免费av成人在线| 欧美精品123区| 亚洲一区二区三区在线| 一本到三区不卡视频| 国产日韩视频一区二区三区| 经典一区二区三区| 日韩一区二区三区视频| 日韩国产欧美一区二区三区| 欧美中文字幕亚洲一区二区va在线| 久久久久久9999| 国产最新精品精品你懂的| 日韩午夜在线观看| 奇米色777欧美一区二区| 6080日韩午夜伦伦午夜伦| 亚洲制服欧美中文字幕中文字幕| 97久久超碰国产精品| 国产精品国产馆在线真实露脸| 国产成人午夜视频| 国产精品丝袜黑色高跟| 懂色av一区二区在线播放| 国产三级精品三级在线专区| 国产成人精品午夜视频免费| 久久久久97国产精华液好用吗| 国产毛片精品国产一区二区三区| 精品国产一区二区国模嫣然| 久久 天天综合| 久久色成人在线| 成人av手机在线观看| 中文字幕精品—区二区四季| av不卡在线播放| 亚洲一区二区三区中文字幕| 欧美一区二区在线看| 美女看a上一区| 久久久久亚洲综合| 成人午夜电影小说| 伊人性伊人情综合网| 欧美肥妇bbw| 国产精品自拍网站| 国产精品亲子乱子伦xxxx裸| 色欧美88888久久久久久影院| 爽好久久久欧美精品| 久久综合狠狠综合| 国产一二三精品| 亚洲免费三区一区二区| 欧美一区二区三区视频免费| 国产精品99久| 五月婷婷激情综合网| 久久久久久免费毛片精品| 色婷婷久久99综合精品jk白丝| 青椒成人免费视频| 中文字幕一区二区三区在线播放| 欧美在线播放高清精品| 国产精品影视网| 一区二区国产视频| 26uuu精品一区二区在线观看| 成人aaaa免费全部观看| 免费精品视频在线| 亚洲免费视频成人| 久久久久久一二三区| 欧美日韩亚洲另类| av成人免费在线| 人人爽香蕉精品| 亚洲精品国产品国语在线app| 欧美大片一区二区三区| 色狠狠桃花综合| 美女www一区二区| 亚洲精品久久久久久国产精华液| 欧美成人aa大片| 欧美在线免费观看视频| 国产一区不卡在线| 亚洲动漫第一页| 国产日本欧洲亚洲| 精品剧情在线观看| 欧美精品黑人性xxxx| 色香蕉久久蜜桃| 不卡电影免费在线播放一区| 久久99国产精品久久99| 日韩黄色免费网站| 亚洲福利视频导航| 亚洲精品中文字幕在线观看| 国产精品毛片久久久久久久| 日韩欧美成人一区二区| 在线电影国产精品| 欧美在线视频日韩| 91丨porny丨首页| 成人av在线看| 成人在线视频首页| 国产在线视频精品一区| 久久成人av少妇免费| 秋霞电影网一区二区| 亚洲不卡av一区二区三区| 国产亚洲精品资源在线26u| 欧美精品成人一区二区三区四区| 91美女在线视频| 99国产精品国产精品久久| 成人av网站在线| 丁香婷婷综合五月| av不卡免费电影| 99久久国产综合精品女不卡| 9久草视频在线视频精品| 99久久国产综合精品麻豆| av在线播放不卡| 欧美性受xxxx黑人xyx| 精品视频在线视频| 欧美午夜视频网站| 欧美系列亚洲系列| 欧美一区欧美二区| 欧美v国产在线一区二区三区| 色一情一伦一子一伦一区| 成人成人成人在线视频| 国产成人精品午夜视频免费 | 国产精品白丝在线| 亚洲综合久久久久| 亚洲成人一二三| 热久久久久久久| 成人免费观看视频| 在线亚洲精品福利网址导航| 91 com成人网| 中文文精品字幕一区二区| 亚洲美女屁股眼交3| 偷拍自拍另类欧美| 国产综合色视频| 色噜噜狠狠成人网p站| 欧美三级一区二区| 久久精品视频一区二区| 亚洲精品美腿丝袜| 蜜臀久久99精品久久久画质超高清| 国产精品2024| 欧美美女一区二区| 国产欧美综合色| 亚洲v中文字幕| 粉嫩av一区二区三区| 欧美怡红院视频| 久久久久高清精品| 亚洲va欧美va国产va天堂影院| 国产中文字幕精品| 欧美图片一区二区三区| 中文成人综合网| 青青草一区二区三区| 91浏览器在线视频| 久久久午夜电影| 天堂久久久久va久久久久| 97久久人人超碰|