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

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

?? 71x_init.s

?? STR710控制CC1100模塊程序說明
?? S
字號:
;******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
;* File Name          : 71x_init.s
;* Author             : MCD Application Team
;* Date First Issued  : 06/23/2004
;* Description        : This is the first code executed after RESET.
;*                      This code used to initialize system stacks
;*                      and critical peripherals before entering the C code.
;*******************************************************************************
;* History:
;*  01/01/2004 : V1.2
;*  14/07/2004 : V1.3
;******************************************************************************/

        PRESERVE8
        AREA    Init, CODE, READONLY


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

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

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


; --- System memory locations

RAM_Base            EQU    0x20000000
RAM_Limit           EQU    0x20010000
SRAM_Base           EQU    0x60000000
Stack_Base          EQU    RAM_Limit

SVC_Stack_Length    EQU    256
IRQ_Stack_Length    EQU    1024
USR_Stack_Length    EQU    1024
FIQ_Stack_Length    EQU    256
ABT_Stack_Length    EQU    256
UNDEF_Stack_Length  EQU    256


SVC_Stack           EQU    Stack_Base                 ; SVC stack
IRQ_Stack           EQU    SVC_Stack-SVC_Stack_Length ; followed by IRQ stack
USR_Stack           EQU    IRQ_Stack-IRQ_Stack_Length ; followed by USR stack
FIQ_Stack           EQU    USR_Stack-USR_Stack_Length ; followed by FIQ stack
ABT_Stack           EQU    FIQ_Stack-FIQ_Stack_Length ; followed by ABT stack
UNDEF_Stack         EQU    ABT_Stack-ABT_Stack_Length ; followed by UNDEF stack

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

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

EMI_ENABLE          EQU    0x8000
EMI_SIZE_16         EQU    0x0001

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

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

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

;*******************************************************************************
;*******                         -- MACROS --                            *******
;*******************************************************************************
;*******************************************************************************
;* Macro Name     : EMI_INIT
;* Description    : This macro Initialise EMI bank 1.
;* Input          : None.
;* Output         : None.
;*******************************************************************************
        MACRO   
        EMI_INIT
        LDR     r0, =GPIO2_Base_addr      ; Configure P2.0 -> 3 in AF_PP mode
        LDR     r2, [r0, #PC0_off_addr]
        ORR     r2, r2,#0x0000000F
        STR     r2, [r0, #PC0_off_addr]
        LDR     r2, [r0, #PC1_off_addr]
        ORR     r2, r2,#0x0000000F
        STR     r2, [r0, #PC1_off_addr]
        LDR     r2, [r0, #PC2_off_addr]
        ORR     r2, r2,#0x0000000F
        STR     r2, [r0, #PC2_off_addr]
        LDR     r0, =EMI_Base_addr
        LDR     r1, =0x18:OR:EMI_ENABLE:OR:EMI_SIZE_16
        STR     r1, [r0, #BCON1_off_addr] ; Enable bank 1 16-bit 7 wait state
        MEND
;*******************************************************************************
;* 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.
;*******************************************************************************
        MACRO   
        EIC_INIT
        LDR     r3, =EIC_Base_addr
        MOV     r0, #0
        MVN     r1, #0
        MOV     r2, #0x0c
        STR     r0, [r3, #ICR_off_addr]
        STR     r0, [r3, #IER_off_addr]
        STR     r1, [r3, #IPR_off_addr]
        STR     r2, [r3, #FIR_off_addr]
        STR     r0, [r3, #CIPR_off_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
        MEND
;*******************************************************************************
;* Macro Name     : PERIPHERAL_INIT
;* Description    : This macro reset all device peripherals.
;* Input          : None.
;* Output         : None.
;*******************************************************************************
        MACRO   
        PERIPHERAL_INIT
        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
        MEND

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

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

;  Uncomment next line if you want to remap FLASH
;            GBLL  remap_flash

;  Uncomment next line if you want to remap the external memory
;            GBLL  remap_ext

        ENTRY

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

        MSR     CPSR_c, #Mode_ABT:OR:F_Bit:OR:I_Bit
        LDR     SP, =ABT_Stack

        MSR     CPSR_c, #Mode_UNDEF:OR:F_Bit:OR:I_Bit
        LDR     SP,= UNDEF_Stack

        MSR     CPSR_c, #Mode_SVC:OR:F_Bit:OR:I_Bit
        LDR     SP, =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 enable the EMI Bank 1
;        EMI_INIT                  ; Initialize EIM Bank 1

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

;******************************************************************************
;REMAPPING
;Description  : Remapping  memory whether RAM,FLASH or External memory
;               at Address 0x0 after the application has started executing.
;               Remapping is generally done to allow RAM  to replace FLASH
;               or EXTMEM at 0x0.
;               the remapping of RAM allow copying of vector table into RAM
;******************************************************************************
  IF :DEF: remapping
    IF :DEF: remap_flash
        MOV     r0, #FLASH_mask
    ENDIF
    IF :DEF: remap_ram
        MOV     r0, #RAM_mask
    ENDIF
    IF :DEF: remap_ext
        MOV     r0, #EXTMEM_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:OR:F_Bit:OR:I_Bit; Change to FIQ mode
        LDR     SP, =FIQ_Stack            ; Initialize FIQ stack pointer

       	MSR     CPSR_c, #Mode_IRQ:OR:F_Bit:OR:I_Bit; Change to IRQ mode
        LDR     SP, =IRQ_Stack            ; Initialize IRQ stack pointer

        MSR     CPSR_c, #Mode_SYS:OR:F_Bit:OR:I_Bit; Change to System mode
        LDR     SP, =USR_Stack            ; Initialize USR stack pointer

	    IMPORT	|Image$$RO$$Limit|  ; End of ROM code (=start of ROM data)
	    IMPORT	|Image$$RW$$Base|   ; Base of RAM to initialise
	    IMPORT	|Image$$ZI$$Base|   ; Base and limit of area
	    IMPORT	|Image$$ZI$$Limit|  ; to zero initialise

	    ;********************************************************
	    ;*  Copy and paste RW data/zero initialized data        *
	    ;********************************************************
	    LDR	    r0, =|Image$$RO$$Limit|	; Get pointer to ROM data
	    LDR	    r1, =|Image$$RW$$Base|	; and RAM copy
	    LDR	    r3, =|Image$$ZI$$Base|	
		;Zero init base => top of initialised data
				
	    CMP	    r0, r1	    ; Check that they are different
	    BEQ	    %F1
0		
	    CMP	    r1, r3	    ; Copy init data
	    LDRCC   r2, [r0], #4    ;--> LDRCC r2, [r0] + ADD r0, r0, #4		 
	    STRCC   r2, [r1], #4    ;--> STRCC r2, [r1] + ADD r1, r1, #4
	    BCC	    %B0
1		
	    LDR	    r1, =|Image$$ZI$$Limit| ; Top of zero init segment
	    MOV	    r2, #0
2		
	    CMP	    r3, r1	    ; Zero init
	    STRCC   r2, [r3], #4
	    BCC	    %B2

        MSR     CPSR_c, #Mode_SYS         ; Enable IRQ and FIQ

        IMPORT  Main

; --- Now branches to a C lib function that copies RO data from their
;     load region to their execute region, create the RW and ZI regions
;     then jumps to user C main program.

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

        LTORG
        
        END
;******************* (C) COPYRIGHT 2003 STMicroelectronics *****END OF FILE****

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩美女久久久| 免费观看在线色综合| 亚洲一区二区三区免费视频| 日本中文字幕一区| 国产精品一区二区男女羞羞无遮挡| 91浏览器入口在线观看| 日韩欧美国产麻豆| 一区二区在线观看视频在线观看| 全国精品久久少妇| 色狠狠桃花综合| 国产精品免费视频网站| 美女视频免费一区| 欧美在线视频全部完| 国产精品天天看| 国产剧情一区在线| 日韩欧美一区二区视频| 亚洲电影激情视频网站| 91在线小视频| 国产精品久久久久久久久免费桃花| 免费看黄色91| 91精品国产综合久久香蕉的特点 | 国内成人自拍视频| 精品婷婷伊人一区三区三| 国产精品久久久久影院色老大 | 亚洲成人福利片| 91社区在线播放| 国产精品久久久久影院老司| 国产精品中文字幕欧美| 精品久久人人做人人爱| 久久精品国产亚洲a| 日韩午夜电影在线观看| 婷婷夜色潮精品综合在线| 97精品电影院| 亚洲天堂精品视频| 色天使色偷偷av一区二区| 18欧美亚洲精品| 色婷婷久久久久swag精品| 亚洲日本在线视频观看| 色综合天天综合网天天狠天天| 18成人在线观看| 色婷婷久久综合| 亚洲成人免费在线| 91精品国模一区二区三区| 麻豆91免费看| 久久精品人人做人人综合| 欧美综合欧美视频| 亚洲午夜在线电影| 欧美日韩国产小视频在线观看| 日韩二区在线观看| 日韩欧美你懂的| 国产精品资源在线看| 国产欧美日韩综合| 成人av片在线观看| 一个色在线综合| 91精品福利在线一区二区三区| 蜜臀99久久精品久久久久久软件| 2017欧美狠狠色| 成人晚上爱看视频| 亚洲色图欧洲色图婷婷| 在线观看亚洲精品视频| 免费精品99久久国产综合精品| 精品久久久久香蕉网| 成人毛片在线观看| 亚洲影院免费观看| 日韩欧美一二三| av激情综合网| 蜜桃视频免费观看一区| 国产亚洲短视频| 欧美性生交片4| 国产制服丝袜一区| 亚洲精品一卡二卡| 日韩欧美久久久| 91福利精品第一导航| 麻豆精品视频在线| 椎名由奈av一区二区三区| 91.麻豆视频| 99久久久精品| 精品中文字幕一区二区| 亚洲欧美福利一区二区| 日韩女同互慰一区二区| 色88888久久久久久影院按摩| 久久国产精品一区二区| 亚洲欧美另类图片小说| 日韩欧美一区在线| 色拍拍在线精品视频8848| 久久99国产精品久久99果冻传媒| 亚洲欧美日韩久久| 国产亚洲va综合人人澡精品 | 成人国产一区二区三区精品| 亚洲成人精品一区二区| 欧美激情资源网| 日韩一区二区免费视频| 色婷婷精品大在线视频| 国产精品一区二区男女羞羞无遮挡| 日本网站在线观看一区二区三区| 亚洲欧美激情插 | 欧美成人在线直播| 色婷婷一区二区| jlzzjlzz欧美大全| 精品一区二区成人精品| 亚洲成精国产精品女| 亚洲精品免费一二三区| 欧美国产精品v| 国产欧美日韩综合精品一区二区| 日韩欧美国产不卡| 7777精品伊人久久久大香线蕉完整版 | 午夜精品福利一区二区三区av| 亚洲视频香蕉人妖| 国产精品久久久久影院色老大 | 福利电影一区二区三区| 粉嫩一区二区三区在线看| 日本在线不卡视频| 亚洲一级在线观看| 一区二区三区在线看| 亚洲欧洲av色图| 最近日韩中文字幕| 国产精品久久久久久福利一牛影视 | 一区二区三区日韩欧美精品 | eeuss国产一区二区三区| 国产精品综合视频| 国产精品18久久久久久久久 | 成人app网站| 成人国产在线观看| 不卡av免费在线观看| www.亚洲精品| 色婷婷综合久久久久中文一区二区| 99精品欧美一区二区蜜桃免费| www.日韩av| 欧美三级资源在线| 91精品午夜视频| 精品国产伦一区二区三区观看方式 | 伊人夜夜躁av伊人久久| 亚洲国产欧美在线| 蜜臀久久99精品久久久画质超高清| 黑人巨大精品欧美黑白配亚洲| 国产·精品毛片| 欧洲一区二区三区在线| 欧美日韩国产乱码电影| 日韩视频一区二区三区在线播放| 亚洲精品一区二区三区在线观看 | 午夜视频在线观看一区二区| 日韩精品福利网| 精品影视av免费| av在线播放成人| 欧美日韩五月天| 国产亚洲综合性久久久影院| 中文字幕一区二区三区在线播放 | 中文字幕在线视频一区| 亚洲人成精品久久久久久 | 国产精品久久毛片av大全日韩| 一区二区免费在线| 免费成人小视频| 99精品视频一区二区| 欧美日韩精品高清| 久久久亚洲国产美女国产盗摄| 一区二区中文视频| 日韩影院免费视频| 成人涩涩免费视频| 欧美日韩高清在线播放| 久久精品夜夜夜夜久久| 亚洲视频免费在线| 久久精品国产澳门| 95精品视频在线| 久久夜色精品一区| 日韩欧美国产一二三区| 亚洲伦理在线精品| 精品一区二区三区av| 在线精品视频一区二区| 久久亚洲精华国产精华液| 亚洲午夜私人影院| 成a人片亚洲日本久久| 日韩一区二区影院| 亚洲男人的天堂在线观看| 极品少妇xxxx精品少妇偷拍| 日本精品视频一区二区| 久久精品视频免费| 亚洲福利视频三区| 99精品视频在线观看| 久久精品水蜜桃av综合天堂| 日本伊人色综合网| 91丨九色porny丨蝌蚪| 久久久美女毛片| 玖玖九九国产精品| 在线观看91视频| 又紧又大又爽精品一区二区| av动漫一区二区| 国产精品亲子伦对白| 国产一区在线不卡| 精品理论电影在线观看 | 樱花影视一区二区| 99精品视频在线免费观看| 久久久久久一级片| 免费在线欧美视频| 欧美久久久久久久久久| 亚洲一区二区欧美| 色美美综合视频| 亚洲黄色尤物视频| 一本到不卡免费一区二区| 中文字幕日韩av资源站| 成人视屏免费看|