⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cstartup_ads.s

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 S
字号:
;------------------------------------------------------------------------------
;-         ATMEL Microcontroller Software Support  -  ROUSSET  -
;------------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;-----------------------------------------------------------------------------
;- File source          : cstartup_ads.s
;- Object               : C startup choice for EB63
;-
;- 1.0 30/10/01 JPP     : Creation
;------------------------------------------------------------------------------
                INCLUDE     targets/eb63/eb63.inc

;------------------------------------------------------------------------------
;               Angel Rom Monitor Method
;- Preprocessor Flag can be set : SEMIHOSTING
;------------------------------------------------------------------------------
                IF  :DEF:AT91_DEBUG_ANGEL       ; {
                INCLUDE     ..\cstartup_angel.ads
;----------------------------------------------------------------------
; Call __low_level_init to perform initialization before initializing
; AIC and calling main.
; Diasable all peripherial clock
; The peripheral clocks are automatically Diasable after a reset.
;----------------------------------------------------------------------
__low_level_init
                mov         pc,r14              ; Return

                ENDIF                           ; AT91_DEBUG_ANGEL }

;------------------------------------------------------------------------------
;               ICE or Sram Method
;- Preprocessor Flag can be set : SEMIHOSTING
;------------------------------------------------------------------------------

                IF  :DEF:AT91_DEBUG_ICE         ; {
                INCLUDE     ..\cstartup_ice.ads
;----------------------------------------------------------------------
; Call __low_level_init to perform initialization before initializing
; AIC and calling main.
; Diasable all peripherial clock
;----------------------------------------------------------------------
__low_level_init
                mvn         r0,#0               ; R0<- 0xFFFFFFFF
                ldr         r1,=PMC_BASE        ; Get Power saving configuartion
                str         r0,[r1,#PMC_PCDR]   ; Diasable all peripherial clock
                mov         pc,r14              ; Return

                ENDIF                           ; AT91_DEBUG_ICE  }

;------------------------------------------------------------------------------
;               Flash Method
;------------------------------------------------------------------------------

                IF  :DEF:AT91_DEBUG_NONE        ; {
                INCLUDE     ..\cstartup_flash.ads
;----------------------------------------------------------------------
; Call __low_level_init to perform initialization before initializing
; AIC and calling main.
; Diasable all peripherial clock
;----------------------------------------------------------------------
__low_level_init
                mov         pc,r14              ; Return
                ENDIF                           ; AT91_DEBUG_NONE }

 

        END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -