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

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

?? 71x_init.s

?? str710處理器的演示例程
?? S
字號(hào):
;-----------------------------------------------------------------------------
; This file contains the startup code used by the ICCARM C compiler.
;
; The modules in this file are included in the libraries, and may be replaced
; by any user-defined modules that define the PUBLIC symbol _program_start or
; a user defined start symbol.
; To override the cstartup defined in the library, simply add your modified
; version to the workbench project.
;
; All code in the modules (except ?RESET) will be placed in the ICODE segment.
;
; $Revision: 1.2 $
;
;-----------------------------------------------------------------------------
	
;
; Naming covention of labels in this file:
;
;  ?xxx	  - External labels only accessed from assembler.
;  __xxx  - External labels accessed from or defined in C.
;  xxx	  - Labels local to one module (note: this file contains
;           several modules).
;  main	  - The starting point of the user program.
;

;---------------------------------------------------------------
; Macros and definitions for the whole file
;---------------------------------------------------------------


; --- Standard definitions of mode bits and interrupt (I & F) flags in PSRs

Mode_USR           DEFINE   0x10
Mode_FIQ           DEFINE   0x11
Mode_IRQ           DEFINE   0x12
Mode_SVC           DEFINE   0x13
Mode_ABT           DEFINE   0x17
Mode_UNDEF         DEFINE   0x1B
Mode_SYS           DEFINE   0x1F ; available on ARM Arch 4 and later

I_Bit              DEFINE   0x80 ; when I bit is set, IRQ is disabled
F_Bit              DEFINE   0x40 ; when F bit is set, FIQ is disabled



EIC_Base_addr      DEFINE   0xFFFFF800; EIC base address
ICR_off_addr       DEFINE   0x00      ; Interrupt Control register offset
CIPR_off_addr      DEFINE   0x08      ; Current Interrupt Priority Register offset
IVR_off_addr       DEFINE   0x18      ; Interrupt Vector Register offset
FIR_off_addr       DEFINE   0x1C      ; Fast Interrupt Register offset
IER_off_addr       DEFINE   0x20      ; Interrupt Enable Register offset
IPR_off_addr       DEFINE   0x40      ; Interrupt Pending Bit Register offset
SIR0_off_addr      DEFINE   0x60      ; Source Interrupt Register 0

EMI_Base_addr      DEFINE   0x6C000000; EMI base address
BCON0_off_addr     DEFINE   0x00      ; Bank 0 configuration register offset
BCON1_off_addr     DEFINE   0x04      ; Bank 1 configuration register offset
BCON2_off_addr     DEFINE   0x08      ; Bank 2 configuration register offset
BCON3_off_addr     DEFINE   0x0C      ; Bank 3 configuration register offset

EMI_ENABLE         DEFINE   0x8000
EMI_SIZE_16        DEFINE   0x0001

GPIO2_Base_addr    DEFINE   0xE0005000; GPIO2 base address
PC0_off_addr       DEFINE   0x00      ; Port Configuration Register 0 offset
PC1_off_addr       DEFINE   0x04      ; Port Configuration Register 1 offset
PC2_off_addr       DEFINE   0x08      ; Port Configuration Register 2 offset
PD_off_addr        DEFINE   0x0C      ; Port Data Register offset

CPM_Base_addr      DEFINE   0xA0000040; CPM Base Address
BOOTCR_off_addr    DEFINE   0x10      ; CPM - Boot Configuration Register
FLASH_mask         DEFINE   0x0000    ; to remap FLASH at 0x0
RAM_mask           DEFINE   0x0002    ; to remap RAM at 0x0

;|----------------------------------------------------------------------------------|
;| - APB Bridge  (System Peripheral)                                               |
;|----------------------------------------------------------------------------------|
APB1_base_addr     DEFINE   0xC0000000          ; APB Bridge1 Base Address
APB2_base_addr     DEFINE   0xE0000000          ; APB Bridge2 Base Address
CKDIS_off_addr     DEFINE   0x10                ; APB Bridge1 - Clock Disable  Register
SWRES_off_addr     DEFINE   0x14                ; APB Bridge1 - Software Reset Register
CKDIS1_config_all  DEFINE   0x27FB              ; To enable/disable clock of all APB1's peripherals
SWRES1_config_all  DEFINE   0x27FB              ; To reset all APB1's peripherals
CKDIS2_config_all  DEFINE   0x7FDD              ; To enable/disable clock of all APB2's peripherals
SWRES2_config_all  DEFINE   0x7FDD              ; To reset all APB2's peripherals


;---------------------------------------------------------------
; ?program_start
;---------------------------------------------------------------
		MODULE	?program_start
		RSEG	IRQ_STACK:DATA(2)
		RSEG	FIQ_STACK:DATA(2)
		RSEG	UND_STACK:DATA(2)
		RSEG	ABT_STACK:DATA(2)		
		RSEG	SVC_STACK:DATA(2)
		RSEG	CSTACK:DATA(2)
		RSEG	ICODE:CODE:NOROOT(2)
		PUBLIC	__program_start
		EXTERN	?main
                CODE32


;*******************************************************************************
;*******                         -- MACROS --                            *******
;*******************************************************************************

;*******************************************************************************
;* Macro Name     : EIC_INIT
;* Description    : This macro Initialize the EIC as following :
;                 - IRQ disabled
;                 - FIQ disabled
;                 - IVR contain the load PC opcode (0xF59FF00)
;                 - Current priority level equal to 0
;                 - All channels are disabled
;                 - All channels priority equal to 0
;                 - All SIR registers contain offset to the related IRQ
;                   table entry
;* Input          : None.
;* Output         : None.
;*******************************************************************************
EIC_INIT   MACRO

        LDR     r3, =EIC_Base_addr
        LDR     r4, =0xE59F0000
        STR     r4, [r3, #IVR_off_addr]; Write the LDR pc,[pc,#offset]
                                       ; instruction code in IVR[31:16]
        LDR     r2, =32                ; 32 Channel to initialize
        LDR     r0, =T0TIMI_Addr       ; Read the address of the IRQs
                                       ; address table
        LDR     r1, =0x00000FFF
        AND     r0,r0,r1
        LDR     r5, =SIR0_off_addr     ; Read SIR0 address
        SUB     r4,r0,#8               ; subtract 8 for prefetch
        LDR     r1, =0xF7E8            ; add the offset to the 0x00000000
                                       ; address(IVR address + 7E8 = 0x00000000)
                                       ; 0xF7E8 used to complete the
                                       ; LDR pc,[pc,#offset] opcode
        ADD     r1,r4,r1               ; compute the jump offset
EIC_INI MOV     r4, r1, LSL #16        ; Left shift the result
        STR     r4, [r3, r5]           ; Store the result in SIRx register
        ADD     r1, r1, #4             ; Next IRQ address
        ADD     r5, r5, #4             ; Next SIR
        SUBS    r2, r2, #1             ; Decrement the number of SIR registers
                                       ; to initialize
        BNE     EIC_INI                ; If more then continue
        ENDM
;*******************************************************************************
;* Macro Name     : PERIPHERAL_INIT
;* Description    : This macro reset all device peripherals.
;* Input          : None.
;* Output         : None.
;*******************************************************************************
PERIPHERAL_INIT MACRO

        LDR     r1, =APB1_base_addr      ; r0= APB1 base address
        LDR     r2, =APB2_base_addr      ; r0= APB2 base address
        LDR     r0, =CKDIS1_config_all
        STRH    r0, [r1, #CKDIS_off_addr]; Clock Disabling for all APB1 peripherals
        LDR     r0, =CKDIS2_config_all
        STRH    r0, [r2, #CKDIS_off_addr]; Clock Disabling for all APB2 peripherals
        LDR     r0, =SWRES1_config_all
        STRH    r0, [r1, #SWRES_off_addr]; Keep under reset all APB1 peropherals
        LDR     r0, =SWRES2_config_all
        STRH    r0, [r2, #SWRES_off_addr]; Keep under reset all APB2 peropherals
        MOV     r7, #10                  ; Wait that the selected macrocells exit from reset
loop1   SUBS    r7, r7, #1
        BNE     loop1
        MOV     r0, #0
        STRH    r0, [r1, #SWRES_off_addr]; Enable all all APB1 peropherals
        STRH    r0, [r2, #SWRES_off_addr]; Enable all all APB2 peropherals
        STRH    r0, [r1, #CKDIS_off_addr]; Clock Enabling for all APB1 peripherals
        STRH    r0, [r2, #CKDIS_off_addr]; Clock Enabling for all APB2 peripherals
        MOV     r7, #10                  ; Wait that the selected macrocells exit from reset
loop2   SUBS    r7, r7, #1
        BNE     loop2
        ENDM
;********************************************************************************************

; define remapping
; If you need to remap memory before entring the main program
; uncomment next ligne
;            #define   remapping

; Then define which memory to remap to address 0x00000000
;  Uncomment next line if you want to remap RAM
;         #define  remap_ram

;  Uncomment next line if you want to remap FLASH
;         #define remap_flash


        IMPORT  T0TIMI_Addr
__program_start
         LDR     pc, =NextInst
NextInst
		NOP		; Wait for OSC stabilization
		NOP
		NOP
		NOP
		NOP
		NOP
		NOP
		NOP
		NOP

        MSR     CPSR_c, #Mode_ABT|F_Bit|I_Bit
        ldr      sp,=SFE(ABT_STACK) & 0xFFFFFFF8     ; End of ABT_STACK

        MSR     CPSR_c, #Mode_UNDEF|F_Bit|I_Bit
        ldr      sp,=SFE(UND_STACK) & 0xFFFFFFF8     ; End of UND_STACK

        MSR     CPSR_c, #Mode_SVC|F_Bit|I_Bit
       ldr      sp,=SFE(SVC_STACK) & 0xFFFFFFF8     ; End of SVC_STACK
       
       
       
; Uncomment next ligne if you need to reset all device pripherals
;       PERIPHERAL_INIT           ; Reset all device peripherals

;Uncomment next ligne if you need to initialize the EIC
        EIC_INIT                  ; Initialize EIC

;******************************************************************************
;REMAPPING
;Description  : Remapping  memory whether RAM,FLASH
;               at Address 0x0 after the application has started executing.
;               Remapping is generally done to allow RAM  to replace FLASH
;               at 0x0.
;               the remapping of RAM allow copying of vector table into RAM
;******************************************************************************
#ifdef remapping
    #ifdef remap_flash
        MOV     r0, #FLASH_mask
    #endif
    #ifdef remap_ram
        MOV     r0, #RAM_mask
    #endif

        LDR     r1, =CPM_Base_addr
        LDRH    r2, [r1, #BOOTCR_off_addr]; Read BOOTCR Register
        BIC     r2, r2, #0x03             ; Reset the two LSB bits of BOOTCR
        ORR     r2, r2, r0                ; change the two LSB bits of BOOTCR
        STRH    r2, [r1, #BOOTCR_off_addr]; Write BOOTCR Register
#endif

       	MSR     CPSR_c, #Mode_FIQ|I_Bit; Change to FIQ mode
        ldr      sp,=SFE(FIQ_STACK) & 0xFFFFFFF8     ; End of FIQ_STACK

       	MSR     CPSR_c, #Mode_IRQ|I_Bit; Change to IRQ mode
        ldr      sp,=SFE(IRQ_STACK) & 0xFFFFFFF8     ; End of IRQ_STACK

        MSR     CPSR_c, #Mode_USR         ; Change to User mode, Enable IRQ and FIQ
       ldr     sp,=SFE(CSTACK) & 0xFFFFFFF8        ; End of CSTACK(user)


; --- Now branches to a C lib function

        b ?main   ; Note : use B not BL, because an application will
                         ; never return this way

        LTORG

        END








?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品一区二区三区四区| 久久精品在线免费观看| 69久久99精品久久久久婷婷| 欧美乱妇23p| 精品久久一区二区| 国产日韩欧美亚洲| 日韩一区欧美小说| 亚洲.国产.中文慕字在线| 久久黄色级2电影| 国产91精品精华液一区二区三区| 国产精品一二三区| 欧美日韩综合不卡| 国产亚洲短视频| 亚洲超丰满肉感bbw| 国内精品国产成人国产三级粉色| 不卡一二三区首页| 91精品国产91综合久久蜜臀| 久久久影视传媒| 亚洲国产成人av好男人在线观看| 麻豆成人免费电影| 91麻豆免费观看| 久久综合丝袜日本网| 一区二区高清在线| 国产成人99久久亚洲综合精品| 在线免费观看日本一区| 国产丝袜欧美中文另类| 日韩中文字幕一区二区三区| 波多野结衣中文一区| 精品裸体舞一区二区三区| 玖玖九九国产精品| 国产一区999| 色悠久久久久综合欧美99| 国产欧美一区二区精品性色 | 欧美国产日韩a欧美在线观看| 亚洲精品欧美综合四区| 国产麻豆91精品| 精品少妇一区二区三区在线播放| 一区二区三区在线视频观看58| 国产一区二区美女| 日韩视频在线观看一区二区| 一区二区三区美女视频| 色婷婷综合视频在线观看| 中文字幕不卡一区| 91在线无精精品入口| 欧美激情一区二区三区不卡 | 午夜视频在线观看一区二区| 色综合激情五月| 亚洲成人精品影院| 欧美一区二区三区四区久久| 日本成人中文字幕| 日韩精品专区在线| 国产一区二区三区蝌蚪| 久久精品亚洲精品国产欧美kt∨| 国产盗摄一区二区三区| 日本一区二区免费在线| 91一区二区三区在线观看| 亚洲欧美激情在线| 欧美美女视频在线观看| 奇米影视7777精品一区二区| 欧美v国产在线一区二区三区| 国产一区不卡精品| 亚洲三级小视频| 日韩一级片在线播放| 成人一二三区视频| 五月婷婷欧美视频| 亚洲精品在线一区二区| 色偷偷久久一区二区三区| 午夜精品一区二区三区免费视频| 久久婷婷久久一区二区三区| 波多野结衣欧美| 免费看欧美女人艹b| 国产亚洲精品aa午夜观看| 欧美性三三影院| 国产福利视频一区二区三区| 亚洲精品第1页| 亚洲欧美偷拍卡通变态| 国产一区二区三区| 亚洲欧美精品午睡沙发| 91精品国产丝袜白色高跟鞋| av资源站一区| 极品瑜伽女神91| 亚洲成人激情自拍| 国产日产欧美精品一区二区三区| 在线区一区二视频| 免费在线观看成人| 天天av天天翘天天综合网色鬼国产| 精品三级在线观看| 欧美精品aⅴ在线视频| 成人高清视频免费观看| 久久爱www久久做| 日本亚洲欧美天堂免费| 亚洲卡通动漫在线| 成人欧美一区二区三区白人| 精品电影一区二区三区 | 亚洲成人www| 欧美激情综合五月色丁香小说| 日本精品免费观看高清观看| 成人小视频免费观看| 国产91精品一区二区麻豆网站| 看国产成人h片视频| 日韩精品免费专区| 婷婷国产在线综合| 日本视频中文字幕一区二区三区| 亚洲激情中文1区| 一区二区三区欧美久久| 伊人婷婷欧美激情| 亚洲一区二区三区免费视频| 亚洲男人天堂av| 一区二区三区久久| 丝袜美腿成人在线| 国产在线精品免费av| 国产v综合v亚洲欧| 亚洲高清不卡在线观看| 麻豆久久久久久| 九色综合国产一区二区三区| 国产一区二区在线影院| 成人毛片视频在线观看| 色综合av在线| 日韩欧美在线一区二区三区| 欧美成人一区二区三区| 日本一区二区三区四区| 亚洲精品成人a在线观看| 亚洲伊人伊色伊影伊综合网| 麻豆精品在线视频| 成人18视频日本| 日韩一区二区精品在线观看| 久久综合色婷婷| 亚洲国产美女搞黄色| 国产一区二区在线电影| 欧美tickling网站挠脚心| 欧美日韩在线一区二区| 久久综合久久鬼色| 亚洲人成7777| 麻豆91在线观看| 91成人在线观看喷潮| 欧美精品一区二区三区高清aⅴ | 国产激情一区二区三区| 欧美中文字幕一区二区三区 | 欧美人体做爰大胆视频| 国产精品国产自产拍高清av| 青青草国产精品亚洲专区无| 91免费精品国自产拍在线不卡| 久久综合久久久久88| 日韩和欧美一区二区| 日本精品视频一区二区三区| 国产日韩欧美高清在线| 久久av中文字幕片| 日韩精品一区二区在线观看| 午夜精品久久久久久久99樱桃| 91麻豆123| 亚洲欧美日韩精品久久久久| 国产sm精品调教视频网站| 精品动漫一区二区三区在线观看| 亚洲成人av中文| 欧美日本在线看| 亚洲一区二区三区视频在线播放 | 亚洲综合成人在线视频| 国产香蕉久久精品综合网| 久久99九九99精品| 日韩精品中文字幕一区| 狠狠色狠狠色综合系列| 日韩欧美一二区| 国内成+人亚洲+欧美+综合在线| 日韩你懂的在线播放| 国产精品综合一区二区| 国产欧美日韩不卡免费| heyzo一本久久综合| 亚洲精品高清视频在线观看| 欧美私模裸体表演在线观看| 婷婷丁香久久五月婷婷| 日韩一区二区在线观看视频| 麻豆精品蜜桃视频网站| 国产精品麻豆久久久| 色综合夜色一区| 亚洲国产成人高清精品| 欧美一区二区三区在线视频| 看电视剧不卡顿的网站| 国产日韩影视精品| 欧美综合色免费| 激情五月激情综合网| 国产精品久久国产精麻豆99网站| 日本黄色一区二区| 国产人久久人人人人爽| 成人开心网精品视频| 午夜影院久久久| 欧美国产日韩a欧美在线观看| 94-欧美-setu| 国模一区二区三区白浆| 亚洲精品久久久久久国产精华液| 欧美一区国产二区| 福利视频网站一区二区三区| 亚洲尤物视频在线| 国产精品久久久久久久久搜平片| 欧美日韩一区二区三区视频| 丁香六月久久综合狠狠色| 亚洲成av人片一区二区| **欧美大码日韩| 欧美国产禁国产网站cc| 精品国产一区二区亚洲人成毛片 | 粉嫩13p一区二区三区|