mbed-os

Fork of mbed-os by erkin yucel

Committer:
xuaner
Date:
Thu Jul 20 14:26:57 2017 +0000
Revision:
1:3deb71413561
Parent:
0:f269e3021894
mbed_os

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 /**
elessair 0:f269e3021894 2 ******************************************************************************
elessair 0:f269e3021894 3 * @file exceptions.c
elessair 0:f269e3021894 4 * @brief Contains relocatable exception table.
elessair 0:f269e3021894 5 * @internal
elessair 0:f269e3021894 6 * @author ON Semiconductor
elessair 0:f269e3021894 7 * $Rev: 2074 $
elessair 0:f269e3021894 8 * $Date: 2013-07-10 14:36:15 +0200 (Wed, 10 Jul 2013) $
elessair 0:f269e3021894 9 ******************************************************************************
elessair 0:f269e3021894 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
elessair 0:f269e3021894 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
elessair 0:f269e3021894 12 * under limited terms and conditions. The terms and conditions pertaining to the software
elessair 0:f269e3021894 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
elessair 0:f269e3021894 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
elessair 0:f269e3021894 15 * if applicable the software license agreement. Do not use this software and/or
elessair 0:f269e3021894 16 * documentation unless you have carefully read and you agree to the limited terms and
elessair 0:f269e3021894 17 * conditions. By using this software and/or documentation, you agree to the limited
elessair 0:f269e3021894 18 * terms and conditions.
elessair 0:f269e3021894 19 *
elessair 0:f269e3021894 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
elessair 0:f269e3021894 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
elessair 0:f269e3021894 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
elessair 0:f269e3021894 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
elessair 0:f269e3021894 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
elessair 0:f269e3021894 25 * @endinternal
elessair 0:f269e3021894 26 *
elessair 0:f269e3021894 27 * @ingroup app
elessair 0:f269e3021894 28 *
elessair 0:f269e3021894 29 * @details
elessair 0:f269e3021894 30 */
elessair 0:f269e3021894 31
elessair 0:f269e3021894 32 /*************************************************************************************************
elessair 0:f269e3021894 33 * *
elessair 0:f269e3021894 34 * Header files *
elessair 0:f269e3021894 35 * *
elessair 0:f269e3021894 36 *************************************************************************************************/
elessair 0:f269e3021894 37
elessair 0:f269e3021894 38 /* BSP inclusions */
elessair 0:f269e3021894 39 #include "device.h"
elessair 0:f269e3021894 40 #include "uart_16c550.h"
elessair 0:f269e3021894 41
elessair 0:f269e3021894 42 #include "memory_map.h"
elessair 0:f269e3021894 43 #include "timer.h"
elessair 0:f269e3021894 44
elessair 0:f269e3021894 45 /* Other inclusions */
elessair 0:f269e3021894 46 #include "types.h"
elessair 0:f269e3021894 47
elessair 0:f269e3021894 48
elessair 0:f269e3021894 49 #include "rtc.h"
elessair 0:f269e3021894 50 #include "gpio.h"
elessair 0:f269e3021894 51 #include "uart_16c550.h"
elessair 0:f269e3021894 52
elessair 0:f269e3021894 53 /*************************************************************************************************
elessair 0:f269e3021894 54 * *
elessair 0:f269e3021894 55 * Externally declarewd functions *
elessair 0:f269e3021894 56 * *
elessair 0:f269e3021894 57 *************************************************************************************************/
elessair 0:f269e3021894 58 extern void fSysTickHandler(void);
elessair 0:f269e3021894 59 /*************************************************************************************************
elessair 0:f269e3021894 60 * *
elessair 0:f269e3021894 61 * Functions *
elessair 0:f269e3021894 62 * *
elessair 0:f269e3021894 63 *************************************************************************************************/
elessair 0:f269e3021894 64
elessair 0:f269e3021894 65 /** Not implemented exception, exception handler */
elessair 0:f269e3021894 66 void NotImplemented_Handler(void)
elessair 0:f269e3021894 67 {
elessair 0:f269e3021894 68 while (1) {};
elessair 0:f269e3021894 69 }
elessair 0:f269e3021894 70
elessair 0:f269e3021894 71 /** Hardware fault interrupt handler */
elessair 0:f269e3021894 72 void HardFault_Handler(void)
elessair 0:f269e3021894 73 {
elessair 0:f269e3021894 74 while (1) {};
elessair 0:f269e3021894 75 }
elessair 0:f269e3021894 76
elessair 0:f269e3021894 77 /*************************************************************************************************
elessair 0:f269e3021894 78 * *
elessair 0:f269e3021894 79 * Functions *
elessair 0:f269e3021894 80 * *
elessair 0:f269e3021894 81 *************************************************************************************************/
elessair 0:f269e3021894 82 /** MacHw IRQ handler implemented in the RF driver stack */
elessair 0:f269e3021894 83
elessair 0:f269e3021894 84 /** Call the Timer0 IRQ handler */
elessair 0:f269e3021894 85 void fIrqTim0Handler()
elessair 0:f269e3021894 86 {
elessair 0:f269e3021894 87 us_timer_isr();
elessair 0:f269e3021894 88 }
elessair 0:f269e3021894 89
elessair 0:f269e3021894 90 /** Call the Timer1 IRQ handler */
elessair 0:f269e3021894 91 void fIrqTim1Handler()
elessair 0:f269e3021894 92 {
elessair 0:f269e3021894 93 us_ticker_isr();
elessair 0:f269e3021894 94 }
elessair 0:f269e3021894 95
elessair 0:f269e3021894 96 /** Call the Timer2 IRQ handler */
elessair 0:f269e3021894 97 void fIrqTim2Handler()
elessair 0:f269e3021894 98 {
elessair 0:f269e3021894 99 NotImplemented_Handler();
elessair 0:f269e3021894 100 }
elessair 0:f269e3021894 101
elessair 0:f269e3021894 102 /** Call the Gpio IRQ handler */
elessair 0:f269e3021894 103 void fIrqGpioHandler()
elessair 0:f269e3021894 104 {
elessair 0:f269e3021894 105 fGpioHandler();
elessair 0:f269e3021894 106 }
elessair 0:f269e3021894 107
elessair 0:f269e3021894 108 /** Call the Spi IRQ handler */
elessair 0:f269e3021894 109 void fIrqSpiHandler()
elessair 0:f269e3021894 110 {
elessair 0:f269e3021894 111 NotImplemented_Handler();
elessair 0:f269e3021894 112 }
elessair 0:f269e3021894 113
elessair 0:f269e3021894 114 /** Call the Uart 1 IRQ handler */
elessair 0:f269e3021894 115 void fIrqUart1Handler(void)
elessair 0:f269e3021894 116 {
elessair 0:f269e3021894 117 Uart1_Irq();
elessair 0:f269e3021894 118 }
elessair 0:f269e3021894 119
elessair 0:f269e3021894 120 /** Call the Uart 2 IRQ handler */
elessair 0:f269e3021894 121 void fIrqUart2Handler(void)
elessair 0:f269e3021894 122 {
elessair 0:f269e3021894 123 Uart2_Irq();
elessair 0:f269e3021894 124 }
elessair 0:f269e3021894 125
elessair 0:f269e3021894 126 /** Call the RTC IRQ handler */
elessair 0:f269e3021894 127 void fIrqRtcHandler(void)
elessair 0:f269e3021894 128 {
elessair 0:f269e3021894 129 fRtcHandler();
elessair 0:f269e3021894 130 }
elessair 0:f269e3021894 131
elessair 0:f269e3021894 132 /** Call the I2C IRQ handler */
elessair 0:f269e3021894 133 void fIrqI2CHandler(void)
elessair 0:f269e3021894 134 {
elessair 0:f269e3021894 135 NotImplemented_Handler();
elessair 0:f269e3021894 136 }
elessair 0:f269e3021894 137
elessair 0:f269e3021894 138 /** Call the I2c2 IRQ handler */
elessair 0:f269e3021894 139 void fIrqI2C2Handler(void)
elessair 0:f269e3021894 140 {
elessair 0:f269e3021894 141 NotImplemented_Handler();
elessair 0:f269e3021894 142 }
elessair 0:f269e3021894 143
elessair 0:f269e3021894 144 /** Call the Spi2 IRQ handler */
elessair 0:f269e3021894 145 void fIrqSpi2Handler(void)
elessair 0:f269e3021894 146 {
elessair 0:f269e3021894 147 NotImplemented_Handler();
elessair 0:f269e3021894 148 }
elessair 0:f269e3021894 149
elessair 0:f269e3021894 150 /** Call the UVI IRQ handler */
elessair 0:f269e3021894 151 void fIrqUviHandler(void)
elessair 0:f269e3021894 152 {
elessair 0:f269e3021894 153 NotImplemented_Handler();
elessair 0:f269e3021894 154 }
elessair 0:f269e3021894 155
elessair 0:f269e3021894 156 /** Call the ADC handler */
elessair 0:f269e3021894 157 void fIrqAdcHandler(void)
elessair 0:f269e3021894 158 {
elessair 0:f269e3021894 159 NotImplemented_Handler();
elessair 0:f269e3021894 160 }