mbed

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Sep 02 15:07:44 2016 +0100
Revision:
144:ef7eb2e8f9f7
Child:
147:30b64687e01f
This updates the lib to the mbed lib v125

Who changed what in which revision?

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