mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-17 23:48:13 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
234
mico-os/platform/MCU/MX1101/RVMDK/startup_mx1101.s
Normal file
234
mico-os/platform/MCU/MX1101/RVMDK/startup_mx1101.s
Normal file
@@ -0,0 +1,234 @@
|
||||
;
|
||||
; UNPUBLISHED PROPRIETARY SOURCE CODE
|
||||
; Copyright (c) 2016 MXCHIP Inc.
|
||||
;
|
||||
; The contents of this file may not be disclosed to third parties, copied or
|
||||
; duplicated in any form, in whole or in part, without the prior written
|
||||
; permission of MXCHIP Corporation.
|
||||
;
|
||||
|
||||
; Amount of memory (in bytes) allocated for Stack
|
||||
; Tailor this value to your application needs
|
||||
; <h> Stack Configuration
|
||||
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Stack_Size EQU 0x00000400
|
||||
|
||||
AREA STACK, NOINIT, READWRITE, ALIGN=3
|
||||
Stack_Mem SPACE Stack_Size
|
||||
__initial_sp
|
||||
|
||||
|
||||
; <h> Heap Configuration
|
||||
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Heap_Size EQU 0x00012000
|
||||
|
||||
AREA HEAP, NOINIT, READWRITE, ALIGN=3
|
||||
__heap_base
|
||||
Heap_Mem SPACE Heap_Size
|
||||
__heap_limit
|
||||
|
||||
PRESERVE8
|
||||
THUMB
|
||||
|
||||
|
||||
; Vector Table Mapped to Address 0 at Reset
|
||||
AREA RESET, DATA, READONLY
|
||||
EXPORT __Vectors
|
||||
EXPORT __Vectors_End
|
||||
EXPORT __Vectors_Size
|
||||
IMPORT vPortSVCHandler
|
||||
IMPORT xPortPendSVHandler
|
||||
IMPORT xPortSysTickHandler
|
||||
|
||||
__Vectors DCD __initial_sp ; Top of Stack
|
||||
DCD Reset_Handler ; Reset Handler
|
||||
DCD NMI_Handler ; NMI Handler
|
||||
DCD HardFault_Handler ; Hard Fault Handler
|
||||
DCD MemManage_Handler ; MPU Fault Handler
|
||||
DCD BusFault_Handler ; Bus Fault Handler
|
||||
DCD UsageFault_Handler ; Usage Fault Handler
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD vPortSVCHandler ; SVCall Handler
|
||||
DCD 0 ; Debug Monitor Handler
|
||||
DCD 0 ; Reserved
|
||||
DCD xPortPendSVHandler ; PendSV Handler
|
||||
DCD SysTick_Handler ; SysTick Handler
|
||||
|
||||
; External Interrupts
|
||||
DCD GpioInterrupt ; Window WatchDog
|
||||
DCD RtcInterrupt ; PVD through EXTI Line detection
|
||||
DCD IrInterrupt ; Tamper and TimeStamps through the EXTI line
|
||||
DCD FuartInterrupt ; RTC Wakeup through the EXTI line
|
||||
DCD BuartInterrupt ; FLASH
|
||||
DCD PwcInterrupt ; RCC
|
||||
DCD Timer0Interrupt ; EXTI Line0
|
||||
DCD UsbInterrupt ; Line1
|
||||
DCD DmaCh0Interrupt ; EXTI Line2
|
||||
DCD DmaCh1Interrupt ; EXTI Line3
|
||||
DCD audio_decoder_interrupt_handler ; EXTI Line4
|
||||
DCD SpisInterrupt ; DMA1 Stream 0
|
||||
DCD SdInterrupt ; DMA1 Stream 1
|
||||
DCD SpimInterrupt ; DMA1 Stream 2
|
||||
DCD Timer1Interrupt ; DMA1 Stream 3
|
||||
DCD WatchDogInterrupt ; DMA1 Stream 4
|
||||
|
||||
__Vectors_End
|
||||
|
||||
__Vectors_Size EQU __Vectors_End - __Vectors
|
||||
|
||||
AREA |.text|, CODE, READONLY
|
||||
|
||||
; Reset handler
|
||||
Reset_Handler PROC
|
||||
EXPORT Reset_Handler [WEAK]
|
||||
IMPORT __low_level_init
|
||||
IMPORT __main
|
||||
|
||||
LDR R0, =__low_level_init
|
||||
BLX R0
|
||||
LDR R0, =__main
|
||||
BX R0
|
||||
ENDP
|
||||
|
||||
; Dummy Exception Handlers (infinite loops which can be modified)
|
||||
|
||||
NMI_Handler PROC
|
||||
EXPORT NMI_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
HardFault_Handler\
|
||||
PROC
|
||||
EXPORT HardFault_Handler [WEAK]
|
||||
IMPORT hard_fault_handler_c
|
||||
TST LR, #4
|
||||
ITE EQ
|
||||
MRSEQ R0, MSP
|
||||
MRSNE R0, PSP
|
||||
B hard_fault_handler_c
|
||||
ENDP
|
||||
MemManage_Handler\
|
||||
PROC
|
||||
EXPORT HardFault_Handler [WEAK]
|
||||
IMPORT hard_fault_handler_c
|
||||
TST LR, #4
|
||||
ITE EQ
|
||||
MRSEQ R0, MSP
|
||||
MRSNE R0, PSP
|
||||
B hard_fault_handler_c
|
||||
ENDP
|
||||
BusFault_Handler\
|
||||
PROC
|
||||
EXPORT HardFault_Handler [WEAK]
|
||||
IMPORT hard_fault_handler_c
|
||||
TST LR, #4
|
||||
ITE EQ
|
||||
MRSEQ R0, MSP
|
||||
MRSNE R0, PSP
|
||||
B hard_fault_handler_c
|
||||
ENDP
|
||||
UsageFault_Handler\
|
||||
PROC
|
||||
EXPORT HardFault_Handler [WEAK]
|
||||
IMPORT hard_fault_handler_c
|
||||
TST LR, #4
|
||||
ITE EQ
|
||||
MRSEQ R0, MSP
|
||||
MRSNE R0, PSP
|
||||
B hard_fault_handler_c
|
||||
ENDP
|
||||
SVC_Handler PROC
|
||||
EXPORT SVC_Handler [WEAK]
|
||||
IMPORT vPortSVCHandler
|
||||
B vPortSVCHandler
|
||||
ENDP
|
||||
DebugMon_Handler\
|
||||
PROC
|
||||
EXPORT DebugMon_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
PendSV_Handler PROC
|
||||
EXPORT PendSV_Handler [WEAK]
|
||||
IMPORT xPortPendSVHandler
|
||||
B xPortPendSVHandler
|
||||
ENDP
|
||||
|
||||
Default_Handler PROC
|
||||
EXPORT SysTick_Handler [WEAK]
|
||||
EXPORT GpioInterrupt [WEAK]
|
||||
EXPORT RtcInterrupt [WEAK]
|
||||
EXPORT IrInterrupt [WEAK]
|
||||
EXPORT FuartInterrupt [WEAK]
|
||||
EXPORT BuartInterrupt [WEAK]
|
||||
EXPORT PwcInterrupt [WEAK]
|
||||
EXPORT Timer0Interrupt [WEAK]
|
||||
EXPORT UsbInterrupt [WEAK]
|
||||
EXPORT DmaCh0Interrupt [WEAK]
|
||||
EXPORT DmaCh1Interrupt [WEAK]
|
||||
EXPORT audio_decoder_interrupt_handler [WEAK]
|
||||
EXPORT SpisInterrupt [WEAK]
|
||||
EXPORT SdInterrupt [WEAK]
|
||||
EXPORT SpimInterrupt [WEAK]
|
||||
EXPORT Timer1Interrupt [WEAK]
|
||||
EXPORT WatchDogInterrupt [WEAK]
|
||||
|
||||
SysTick_Handler
|
||||
GpioInterrupt
|
||||
RtcInterrupt
|
||||
IrInterrupt
|
||||
FuartInterrupt
|
||||
BuartInterrupt
|
||||
PwcInterrupt
|
||||
Timer0Interrupt
|
||||
UsbInterrupt
|
||||
DmaCh0Interrupt
|
||||
DmaCh1Interrupt
|
||||
audio_decoder_interrupt_handler
|
||||
SpisInterrupt
|
||||
SdInterrupt
|
||||
SpimInterrupt
|
||||
Timer1Interrupt
|
||||
WatchDogInterrupt
|
||||
B .
|
||||
|
||||
ENDP
|
||||
|
||||
ALIGN
|
||||
|
||||
;*******************************************************************************
|
||||
; User Stack and Heap initialization
|
||||
;*******************************************************************************
|
||||
IF :DEF:__MICROLIB
|
||||
|
||||
EXPORT __initial_sp
|
||||
EXPORT __heap_base
|
||||
EXPORT __heap_limit
|
||||
|
||||
ELSE
|
||||
|
||||
IMPORT __use_two_region_memory
|
||||
EXPORT __user_initial_stackheap
|
||||
EXPORT Heap_Mem
|
||||
EXPORT Stack_Mem
|
||||
|
||||
__user_initial_stackheap
|
||||
|
||||
LDR R0, = Heap_Mem
|
||||
LDR R1, =(Stack_Mem + Stack_Size)
|
||||
LDR R2, = (Heap_Mem + Heap_Size)
|
||||
LDR R3, = Stack_Mem
|
||||
BX LR
|
||||
|
||||
ALIGN
|
||||
|
||||
ENDIF
|
||||
|
||||
END
|
||||
|
||||
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
|
||||
Reference in New Issue
Block a user