stm8l15x_it.c 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. /**
  2. ******************************************************************************
  3. * @file Project/STM8L15x_StdPeriph_Template/stm8l15x_it.c
  4. * @author MCD Application Team
  5. * @version V1.6.1
  6. * @date 30-September-2014
  7. * @brief Main Interrupt Service Routines.
  8. * This file provides template for all peripherals interrupt service routine.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. ******************************************************************************
  27. */
  28. /* Includes ------------------------------------------------------------------*/
  29. #include "stm8l15x_it.h"
  30. /** @addtogroup STM8L15x_StdPeriph_Template
  31. * @{
  32. */
  33. /* Private typedef -----------------------------------------------------------*/
  34. /* Private define ------------------------------------------------------------*/
  35. /* Private macro -------------------------------------------------------------*/
  36. /* Private variables ---------------------------------------------------------*/
  37. /* Private function prototypes -----------------------------------------------*/
  38. /* Private functions ---------------------------------------------------------*/
  39. /* Public functions ----------------------------------------------------------*/
  40. #ifdef _COSMIC_
  41. /**
  42. * @brief Dummy interrupt routine
  43. * @par Parameters:
  44. * None
  45. * @retval
  46. * None
  47. */
  48. INTERRUPT_HANDLER(NonHandledInterrupt,0)
  49. {
  50. /* In order to detect unexpected events during development,
  51. it is recommended to set a breakpoint on the following instruction.
  52. */
  53. }
  54. #endif
  55. /**
  56. * @brief TRAP interrupt routine
  57. * @par Parameters:
  58. * None
  59. * @retval
  60. * None
  61. */
  62. INTERRUPT_HANDLER_TRAP(TRAP_IRQHandler)
  63. {
  64. /* In order to detect unexpected events during development,
  65. it is recommended to set a breakpoint on the following instruction.
  66. */
  67. }
  68. /**
  69. * @brief FLASH Interrupt routine.
  70. * @param None
  71. * @retval None
  72. */
  73. INTERRUPT_HANDLER(FLASH_IRQHandler,1)
  74. {
  75. /* In order to detect unexpected events during development,
  76. it is recommended to set a breakpoint on the following instruction.
  77. */
  78. }
  79. /**
  80. * @brief DMA1 channel0 and channel1 Interrupt routine.
  81. * @param None
  82. * @retval None
  83. */
  84. INTERRUPT_HANDLER(DMA1_CHANNEL0_1_IRQHandler,2)
  85. {
  86. /* In order to detect unexpected events during development,
  87. it is recommended to set a breakpoint on the following instruction.
  88. */
  89. }
  90. /**
  91. * @brief DMA1 channel2 and channel3 Interrupt routine.
  92. * @param None
  93. * @retval None
  94. */
  95. INTERRUPT_HANDLER(DMA1_CHANNEL2_3_IRQHandler,3)
  96. {
  97. /* In order to detect unexpected events during development,
  98. it is recommended to set a breakpoint on the following instruction.
  99. */
  100. }
  101. /**
  102. * @brief RTC / CSS_LSE Interrupt routine.
  103. * @param None
  104. * @retval None
  105. */
  106. INTERRUPT_HANDLER(RTC_CSSLSE_IRQHandler,4)
  107. {
  108. /* In order to detect unexpected events during development,
  109. it is recommended to set a breakpoint on the following instruction.
  110. */
  111. }
  112. /**
  113. * @brief External IT PORTE/F and PVD Interrupt routine.
  114. * @param None
  115. * @retval None
  116. */
  117. INTERRUPT_HANDLER(EXTIE_F_PVD_IRQHandler,5)
  118. {
  119. /* In order to detect unexpected events during development,
  120. it is recommended to set a breakpoint on the following instruction.
  121. */
  122. }
  123. /**
  124. * @brief External IT PORTB / PORTG Interrupt routine.
  125. * @param None
  126. * @retval None
  127. */
  128. INTERRUPT_HANDLER(EXTIB_G_IRQHandler,6)
  129. {
  130. /* In order to detect unexpected events during development,
  131. it is recommended to set a breakpoint on the following instruction.
  132. */
  133. }
  134. /**
  135. * @brief External IT PORTD /PORTH Interrupt routine.
  136. * @param None
  137. * @retval None
  138. */
  139. INTERRUPT_HANDLER(EXTID_H_IRQHandler,7)
  140. {
  141. /* In order to detect unexpected events during development,
  142. it is recommended to set a breakpoint on the following instruction.
  143. */
  144. }
  145. /**
  146. * @brief External IT PIN0 Interrupt routine.
  147. * @param None
  148. * @retval None
  149. */
  150. INTERRUPT_HANDLER(EXTI0_IRQHandler,8)
  151. {
  152. /* In order to detect unexpected events during development,
  153. it is recommended to set a breakpoint on the following instruction.
  154. */
  155. }
  156. /**
  157. * @brief External IT PIN1 Interrupt routine.
  158. * @param None
  159. * @retval None
  160. */
  161. INTERRUPT_HANDLER(EXTI1_IRQHandler,9)
  162. {
  163. /* In order to detect unexpected events during development,
  164. it is recommended to set a breakpoint on the following instruction.
  165. */
  166. }
  167. /**
  168. * @brief External IT PIN2 Interrupt routine.
  169. * @param None
  170. * @retval None
  171. */
  172. INTERRUPT_HANDLER(EXTI2_IRQHandler,10)
  173. {
  174. /* In order to detect unexpected events during development,
  175. it is recommended to set a breakpoint on the following instruction.
  176. */
  177. }
  178. /**
  179. * @brief External IT PIN3 Interrupt routine.
  180. * @param None
  181. * @retval None
  182. */
  183. INTERRUPT_HANDLER(EXTI3_IRQHandler,11)
  184. {
  185. /* In order to detect unexpected events during development,
  186. it is recommended to set a breakpoint on the following instruction.
  187. */
  188. }
  189. /**
  190. * @brief External IT PIN4 Interrupt routine.
  191. * @param None
  192. * @retval None
  193. */
  194. INTERRUPT_HANDLER(EXTI4_IRQHandler,12)
  195. {
  196. /* In order to detect unexpected events during development,
  197. it is recommended to set a breakpoint on the following instruction.
  198. */
  199. }
  200. /**
  201. * @brief External IT PIN5 Interrupt routine.
  202. * @param None
  203. * @retval None
  204. */
  205. INTERRUPT_HANDLER(EXTI5_IRQHandler,13)
  206. {
  207. /* In order to detect unexpected events during development,
  208. it is recommended to set a breakpoint on the following instruction.
  209. */
  210. }
  211. /**
  212. * @brief External IT PIN6 Interrupt routine.
  213. * @param None
  214. * @retval None
  215. */
  216. INTERRUPT_HANDLER(EXTI6_IRQHandler,14)
  217. {
  218. /* In order to detect unexpected events during development,
  219. it is recommended to set a breakpoint on the following instruction.
  220. */
  221. }
  222. /**
  223. * @brief External IT PIN7 Interrupt routine.
  224. * @param None
  225. * @retval None
  226. */
  227. INTERRUPT_HANDLER(EXTI7_IRQHandler,15)
  228. {
  229. /* In order to detect unexpected events during development,
  230. it is recommended to set a breakpoint on the following instruction.
  231. */
  232. }
  233. /**
  234. * @brief LCD /AES Interrupt routine.
  235. * @param None
  236. * @retval None
  237. */
  238. INTERRUPT_HANDLER(LCD_AES_IRQHandler,16)
  239. {
  240. /* In order to detect unexpected events during development,
  241. it is recommended to set a breakpoint on the following instruction.
  242. */
  243. }
  244. /**
  245. * @brief CLK switch/CSS/TIM1 break Interrupt routine.
  246. * @param None
  247. * @retval None
  248. */
  249. INTERRUPT_HANDLER(SWITCH_CSS_BREAK_DAC_IRQHandler,17)
  250. {
  251. /* In order to detect unexpected events during development,
  252. it is recommended to set a breakpoint on the following instruction.
  253. */
  254. }
  255. /**
  256. * @brief ADC1/Comparator Interrupt routine.
  257. * @param None
  258. * @retval None
  259. */
  260. INTERRUPT_HANDLER(ADC1_COMP_IRQHandler,18)
  261. {
  262. /* In order to detect unexpected events during development,
  263. it is recommended to set a breakpoint on the following instruction.
  264. */
  265. }
  266. /**
  267. * @brief TIM2 Update/Overflow/Trigger/Break /USART2 TX Interrupt routine.
  268. * @param None
  269. * @retval None
  270. */
  271. INTERRUPT_HANDLER(TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler,19)
  272. {
  273. /* In order to detect unexpected events during development,
  274. it is recommended to set a breakpoint on the following instruction.
  275. */
  276. }
  277. /**
  278. * @brief Timer2 Capture/Compare / USART2 RX Interrupt routine.
  279. * @param None
  280. * @retval None
  281. */
  282. INTERRUPT_HANDLER(TIM2_CC_USART2_RX_IRQHandler,20)
  283. {
  284. /* In order to detect unexpected events during development,
  285. it is recommended to set a breakpoint on the following instruction.
  286. */
  287. }
  288. /**
  289. * @brief Timer3 Update/Overflow/Trigger/Break Interrupt routine.
  290. * @param None
  291. * @retval None
  292. */
  293. INTERRUPT_HANDLER(TIM3_UPD_OVF_TRG_BRK_USART3_TX_IRQHandler,21)
  294. {
  295. /* In order to detect unexpected events during development,
  296. it is recommended to set a breakpoint on the following instruction.
  297. */
  298. }
  299. /**
  300. * @brief Timer3 Capture/Compare /USART3 RX Interrupt routine.
  301. * @param None
  302. * @retval None
  303. */
  304. INTERRUPT_HANDLER(TIM3_CC_USART3_RX_IRQHandler,22)
  305. {
  306. /* In order to detect unexpected events during development,
  307. it is recommended to set a breakpoint on the following instruction.
  308. */
  309. }
  310. /**
  311. * @brief TIM1 Update/Overflow/Trigger/Commutation Interrupt routine.
  312. * @param None
  313. * @retval None
  314. */
  315. INTERRUPT_HANDLER(TIM1_UPD_OVF_TRG_COM_IRQHandler,23)
  316. {
  317. /* In order to detect unexpected events during development,
  318. it is recommended to set a breakpoint on the following instruction.
  319. */
  320. }
  321. /**
  322. * @brief TIM1 Capture/Compare Interrupt routine.
  323. * @param None
  324. * @retval None
  325. */
  326. INTERRUPT_HANDLER(TIM1_CC_IRQHandler,24)
  327. {
  328. /* In order to detect unexpected events during development,
  329. it is recommended to set a breakpoint on the following instruction.
  330. */
  331. }
  332. /**
  333. * @brief TIM4 Update/Overflow/Trigger Interrupt routine.
  334. * @param None
  335. * @retval None
  336. */
  337. #if 0
  338. INTERRUPT_HANDLER(TIM4_UPD_OVF_TRG_IRQHandler,25)
  339. {
  340. /* In order to detect unexpected events during development,
  341. it is recommended to set a breakpoint on the following instruction.
  342. */
  343. }
  344. #endif
  345. /**
  346. * @brief SPI1 Interrupt routine.
  347. * @param None
  348. * @retval None
  349. */
  350. INTERRUPT_HANDLER(SPI1_IRQHandler,26)
  351. {
  352. /* In order to detect unexpected events during development,
  353. it is recommended to set a breakpoint on the following instruction.
  354. */
  355. }
  356. /**
  357. * @brief USART1 TX / TIM5 Update/Overflow/Trigger/Break Interrupt routine.
  358. * @param None
  359. * @retval None
  360. */
  361. INTERRUPT_HANDLER(USART1_TX_TIM5_UPD_OVF_TRG_BRK_IRQHandler,27)
  362. {
  363. /* In order to detect unexpected events during development,
  364. it is recommended to set a breakpoint on the following instruction.
  365. */
  366. }
  367. /**
  368. * @brief USART1 RX / Timer5 Capture/Compare Interrupt routine.
  369. * @param None
  370. * @retval None
  371. */
  372. INTERRUPT_HANDLER(USART1_RX_TIM5_CC_IRQHandler,28)
  373. {
  374. /* In order to detect unexpected events during development,
  375. it is recommended to set a breakpoint on the following instruction.
  376. */
  377. }
  378. /**
  379. * @brief I2C1 / SPI2 Interrupt routine.
  380. * @param None
  381. * @retval None
  382. */
  383. INTERRUPT_HANDLER(I2C1_SPI2_IRQHandler,29)
  384. {
  385. /* In order to detect unexpected events during development,
  386. it is recommended to set a breakpoint on the following instruction.
  387. */
  388. }
  389. /**
  390. * @}
  391. */
  392. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/