fix LPC812 PWM

Dependents:   IR_LED_Send

Fork of mbed-dev by mbed official

Committer:
nameless129
Date:
Mon May 16 16:50:30 2016 +0000
Revision:
129:2e517c56bcfb
Parent:
114:fe4fe5cfc3a3
PWM Fix:Duty 0%??H???????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 114:fe4fe5cfc3a3 1 ;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
mbed_official 114:fe4fe5cfc3a3 2 ;* File Name : startup_stm32l053xx.s
mbed_official 114:fe4fe5cfc3a3 3 ;* Author : MCD Application Team
mbed_official 114:fe4fe5cfc3a3 4 ;* Version : V1.5.0
mbed_official 114:fe4fe5cfc3a3 5 ;* Date : 8-January-2016
mbed_official 114:fe4fe5cfc3a3 6 ;* Description : STM32l053xx Devices vector table for MDK-ARM toolchain.
mbed_official 114:fe4fe5cfc3a3 7 ;* This module performs:
mbed_official 114:fe4fe5cfc3a3 8 ;* - Set the initial SP
mbed_official 114:fe4fe5cfc3a3 9 ;* - Set the initial PC == Reset_Handler
mbed_official 114:fe4fe5cfc3a3 10 ;* - Set the vector table entries with the exceptions ISR address
mbed_official 114:fe4fe5cfc3a3 11 ;* - Branches to __main in the C library (which eventually
mbed_official 114:fe4fe5cfc3a3 12 ;* calls main()).
mbed_official 114:fe4fe5cfc3a3 13 ;* After Reset the Cortex-M0+ processor is in Thread mode,
mbed_official 114:fe4fe5cfc3a3 14 ;* priority is Privileged, and the Stack is set to Main.
mbed_official 114:fe4fe5cfc3a3 15 ;* <<< Use Configuration Wizard in Context Menu >>>
mbed_official 114:fe4fe5cfc3a3 16 ;*******************************************************************************
mbed_official 114:fe4fe5cfc3a3 17 ;*
mbed_official 114:fe4fe5cfc3a3 18 ;* Redistribution and use in source and binary forms, with or without modification,
mbed_official 114:fe4fe5cfc3a3 19 ;* are permitted provided that the following conditions are met:
mbed_official 114:fe4fe5cfc3a3 20 ;* 1. Redistributions of source code must retain the above copyright notice,
mbed_official 114:fe4fe5cfc3a3 21 ;* this list of conditions and the following disclaimer.
mbed_official 114:fe4fe5cfc3a3 22 ;* 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 114:fe4fe5cfc3a3 23 ;* this list of conditions and the following disclaimer in the documentation
mbed_official 114:fe4fe5cfc3a3 24 ;* and/or other materials provided with the distribution.
mbed_official 114:fe4fe5cfc3a3 25 ;* 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 114:fe4fe5cfc3a3 26 ;* may be used to endorse or promote products derived from this software
mbed_official 114:fe4fe5cfc3a3 27 ;* without specific prior written permission.
mbed_official 114:fe4fe5cfc3a3 28 ;*
mbed_official 114:fe4fe5cfc3a3 29 ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 114:fe4fe5cfc3a3 30 ;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 114:fe4fe5cfc3a3 31 ;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 114:fe4fe5cfc3a3 32 ;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 114:fe4fe5cfc3a3 33 ;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 114:fe4fe5cfc3a3 34 ;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 114:fe4fe5cfc3a3 35 ;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 114:fe4fe5cfc3a3 36 ;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 114:fe4fe5cfc3a3 37 ;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 114:fe4fe5cfc3a3 38 ;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 114:fe4fe5cfc3a3 39 ;*
mbed_official 114:fe4fe5cfc3a3 40 ;*******************************************************************************
mbed_official 114:fe4fe5cfc3a3 41 ;
mbed_official 114:fe4fe5cfc3a3 42 ; Amount of memory (in bytes) allocated for Stack
mbed_official 114:fe4fe5cfc3a3 43 ; Tailor this value to your application needs
mbed_official 114:fe4fe5cfc3a3 44 ; <h> Stack Configuration
mbed_official 114:fe4fe5cfc3a3 45 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 114:fe4fe5cfc3a3 46 ; </h>
mbed_official 114:fe4fe5cfc3a3 47
mbed_official 114:fe4fe5cfc3a3 48 __initial_sp EQU 0x20002000 ; Top of RAM
mbed_official 114:fe4fe5cfc3a3 49
mbed_official 114:fe4fe5cfc3a3 50 PRESERVE8
mbed_official 114:fe4fe5cfc3a3 51 THUMB
mbed_official 114:fe4fe5cfc3a3 52
mbed_official 114:fe4fe5cfc3a3 53
mbed_official 114:fe4fe5cfc3a3 54 ; Vector Table Mapped to Address 0 at Reset
mbed_official 114:fe4fe5cfc3a3 55 AREA RESET, DATA, READONLY
mbed_official 114:fe4fe5cfc3a3 56 EXPORT __Vectors
mbed_official 114:fe4fe5cfc3a3 57 EXPORT __Vectors_End
mbed_official 114:fe4fe5cfc3a3 58 EXPORT __Vectors_Size
mbed_official 114:fe4fe5cfc3a3 59
mbed_official 114:fe4fe5cfc3a3 60 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 114:fe4fe5cfc3a3 61 DCD Reset_Handler ; Reset Handler
mbed_official 114:fe4fe5cfc3a3 62 DCD NMI_Handler ; NMI Handler
mbed_official 114:fe4fe5cfc3a3 63 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 114:fe4fe5cfc3a3 64 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 65 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 66 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 67 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 68 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 69 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 70 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 71 DCD SVC_Handler ; SVCall Handler
mbed_official 114:fe4fe5cfc3a3 72 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 73 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 74 DCD PendSV_Handler ; PendSV Handler
mbed_official 114:fe4fe5cfc3a3 75 DCD SysTick_Handler ; SysTick Handler
mbed_official 114:fe4fe5cfc3a3 76
mbed_official 114:fe4fe5cfc3a3 77 ; External Interrupts
mbed_official 114:fe4fe5cfc3a3 78 DCD WWDG_IRQHandler ; Window Watchdog
mbed_official 114:fe4fe5cfc3a3 79 DCD PVD_IRQHandler ; PVD through EXTI Line detect
mbed_official 114:fe4fe5cfc3a3 80 DCD RTC_IRQHandler ; RTC through EXTI Line
mbed_official 114:fe4fe5cfc3a3 81 DCD FLASH_IRQHandler ; FLASH
mbed_official 114:fe4fe5cfc3a3 82 DCD RCC_IRQHandler ; RCC
mbed_official 114:fe4fe5cfc3a3 83 DCD EXTI0_1_IRQHandler ; EXTI Line 0 and 1
mbed_official 114:fe4fe5cfc3a3 84 DCD EXTI2_3_IRQHandler ; EXTI Line 2 and 3
mbed_official 114:fe4fe5cfc3a3 85 DCD EXTI4_15_IRQHandler ; EXTI Line 4 to 15
mbed_official 114:fe4fe5cfc3a3 86 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 87 DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
mbed_official 114:fe4fe5cfc3a3 88 DCD DMA1_Channel2_3_IRQHandler ; DMA1 Channel 2 and Channel 3
mbed_official 114:fe4fe5cfc3a3 89 DCD DMA1_Channel4_5_6_7_IRQHandler ; DMA1 Channel 4, Channel 5, Channel 6 and Channel 7
mbed_official 114:fe4fe5cfc3a3 90 DCD ADC1_COMP_IRQHandler ; ADC1, COMP1
mbed_official 114:fe4fe5cfc3a3 91 DCD LPTIM1_IRQHandler ; LPTIM1
mbed_official 114:fe4fe5cfc3a3 92 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 93 DCD TIM2_IRQHandler ; TIM2
mbed_official 114:fe4fe5cfc3a3 94 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 95 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 96 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 97 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 98 DCD TIM21_IRQHandler ; TIM21
mbed_official 114:fe4fe5cfc3a3 99 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 100 DCD TIM22_IRQHandler ; TIM22
mbed_official 114:fe4fe5cfc3a3 101 DCD I2C1_IRQHandler ; I2C1
mbed_official 114:fe4fe5cfc3a3 102 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 103 DCD SPI1_IRQHandler ; SPI1
mbed_official 114:fe4fe5cfc3a3 104 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 105 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 106 DCD USART2_IRQHandler ; USART2
mbed_official 114:fe4fe5cfc3a3 107 DCD LPUART1_IRQHandler ; LPUART1
mbed_official 114:fe4fe5cfc3a3 108 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 109 DCD 0 ; Reserved
mbed_official 114:fe4fe5cfc3a3 110
mbed_official 114:fe4fe5cfc3a3 111 __Vectors_End
mbed_official 114:fe4fe5cfc3a3 112
mbed_official 114:fe4fe5cfc3a3 113 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 114:fe4fe5cfc3a3 114
mbed_official 114:fe4fe5cfc3a3 115 AREA |.text|, CODE, READONLY
mbed_official 114:fe4fe5cfc3a3 116
mbed_official 114:fe4fe5cfc3a3 117 ; Reset handler routine
mbed_official 114:fe4fe5cfc3a3 118 Reset_Handler PROC
mbed_official 114:fe4fe5cfc3a3 119 EXPORT Reset_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 120 IMPORT __main
mbed_official 114:fe4fe5cfc3a3 121 IMPORT SystemInit
mbed_official 114:fe4fe5cfc3a3 122 LDR R0, =SystemInit
mbed_official 114:fe4fe5cfc3a3 123 BLX R0
mbed_official 114:fe4fe5cfc3a3 124 LDR R0, =__main
mbed_official 114:fe4fe5cfc3a3 125 BX R0
mbed_official 114:fe4fe5cfc3a3 126 ENDP
mbed_official 114:fe4fe5cfc3a3 127
mbed_official 114:fe4fe5cfc3a3 128 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 114:fe4fe5cfc3a3 129
mbed_official 114:fe4fe5cfc3a3 130 NMI_Handler PROC
mbed_official 114:fe4fe5cfc3a3 131 EXPORT NMI_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 132 B .
mbed_official 114:fe4fe5cfc3a3 133 ENDP
mbed_official 114:fe4fe5cfc3a3 134 HardFault_Handler\
mbed_official 114:fe4fe5cfc3a3 135 PROC
mbed_official 114:fe4fe5cfc3a3 136 EXPORT HardFault_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 137 B .
mbed_official 114:fe4fe5cfc3a3 138 ENDP
mbed_official 114:fe4fe5cfc3a3 139 SVC_Handler PROC
mbed_official 114:fe4fe5cfc3a3 140 EXPORT SVC_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 141 B .
mbed_official 114:fe4fe5cfc3a3 142 ENDP
mbed_official 114:fe4fe5cfc3a3 143 PendSV_Handler PROC
mbed_official 114:fe4fe5cfc3a3 144 EXPORT PendSV_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 145 B .
mbed_official 114:fe4fe5cfc3a3 146 ENDP
mbed_official 114:fe4fe5cfc3a3 147 SysTick_Handler PROC
mbed_official 114:fe4fe5cfc3a3 148 EXPORT SysTick_Handler [WEAK]
mbed_official 114:fe4fe5cfc3a3 149 B .
mbed_official 114:fe4fe5cfc3a3 150 ENDP
mbed_official 114:fe4fe5cfc3a3 151
mbed_official 114:fe4fe5cfc3a3 152 Default_Handler PROC
mbed_official 114:fe4fe5cfc3a3 153
mbed_official 114:fe4fe5cfc3a3 154 EXPORT WWDG_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 155 EXPORT PVD_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 156 EXPORT RTC_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 157 EXPORT FLASH_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 158 EXPORT RCC_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 159 EXPORT EXTI0_1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 160 EXPORT EXTI2_3_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 161 EXPORT EXTI4_15_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 162 EXPORT DMA1_Channel1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 163 EXPORT DMA1_Channel2_3_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 164 EXPORT DMA1_Channel4_5_6_7_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 165 EXPORT ADC1_COMP_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 166 EXPORT LPTIM1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 167 EXPORT TIM2_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 168 EXPORT TIM21_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 169 EXPORT TIM22_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 170 EXPORT I2C1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 171 EXPORT SPI1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 172 EXPORT USART2_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 173 EXPORT LPUART1_IRQHandler [WEAK]
mbed_official 114:fe4fe5cfc3a3 174
mbed_official 114:fe4fe5cfc3a3 175 WWDG_IRQHandler
mbed_official 114:fe4fe5cfc3a3 176 PVD_IRQHandler
mbed_official 114:fe4fe5cfc3a3 177 RTC_IRQHandler
mbed_official 114:fe4fe5cfc3a3 178 FLASH_IRQHandler
mbed_official 114:fe4fe5cfc3a3 179 RCC_IRQHandler
mbed_official 114:fe4fe5cfc3a3 180 EXTI0_1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 181 EXTI2_3_IRQHandler
mbed_official 114:fe4fe5cfc3a3 182 EXTI4_15_IRQHandler
mbed_official 114:fe4fe5cfc3a3 183 DMA1_Channel1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 184 DMA1_Channel2_3_IRQHandler
mbed_official 114:fe4fe5cfc3a3 185 DMA1_Channel4_5_6_7_IRQHandler
mbed_official 114:fe4fe5cfc3a3 186 ADC1_COMP_IRQHandler
mbed_official 114:fe4fe5cfc3a3 187 LPTIM1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 188 TIM2_IRQHandler
mbed_official 114:fe4fe5cfc3a3 189 TIM21_IRQHandler
mbed_official 114:fe4fe5cfc3a3 190 TIM22_IRQHandler
mbed_official 114:fe4fe5cfc3a3 191 I2C1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 192 SPI1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 193 USART2_IRQHandler
mbed_official 114:fe4fe5cfc3a3 194 LPUART1_IRQHandler
mbed_official 114:fe4fe5cfc3a3 195
mbed_official 114:fe4fe5cfc3a3 196 B .
mbed_official 114:fe4fe5cfc3a3 197
mbed_official 114:fe4fe5cfc3a3 198 ENDP
mbed_official 114:fe4fe5cfc3a3 199
mbed_official 114:fe4fe5cfc3a3 200 ALIGN
mbed_official 114:fe4fe5cfc3a3 201 END
mbed_official 114:fe4fe5cfc3a3 202
mbed_official 114:fe4fe5cfc3a3 203 ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****