mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Thu Apr 19 17:12:19 2018 +0100
Revision:
184:08ed48f1de7f
Parent:
167:e84263d55307
Child:
186:707f6e361f3e
mbed-dev library. Release version 161

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 ******************************************************************************
<> 147:30b64687e01f 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
<> 147:30b64687e01f 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
<> 147:30b64687e01f 12 * under limited terms and conditions. The terms and conditions pertaining to the software
<> 147:30b64687e01f 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
<> 147:30b64687e01f 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
<> 147:30b64687e01f 15 * if applicable the software license agreement. Do not use this software and/or
<> 147:30b64687e01f 16 * documentation unless you have carefully read and you agree to the limited terms and
<> 147:30b64687e01f 17 * conditions. By using this software and/or documentation, you agree to the limited
<> 147:30b64687e01f 18 * terms and conditions.
<> 144:ef7eb2e8f9f7 19 *
<> 144:ef7eb2e8f9f7 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 25 * @endinternal
<> 144:ef7eb2e8f9f7 26 *
<> 144:ef7eb2e8f9f7 27 * @ingroup app
<> 144:ef7eb2e8f9f7 28 *
<> 144:ef7eb2e8f9f7 29 * @details
<> 144:ef7eb2e8f9f7 30 */
<> 144:ef7eb2e8f9f7 31
<> 144:ef7eb2e8f9f7 32 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 33 * *
<> 144:ef7eb2e8f9f7 34 * Header files *
<> 144:ef7eb2e8f9f7 35 * *
<> 144:ef7eb2e8f9f7 36 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 37
<> 144:ef7eb2e8f9f7 38 /* BSP inclusions */
<> 144:ef7eb2e8f9f7 39 #include "device.h"
<> 144:ef7eb2e8f9f7 40 #include "uart_16c550.h"
<> 144:ef7eb2e8f9f7 41
<> 144:ef7eb2e8f9f7 42 #include "memory_map.h"
AnnaBridge 167:e84263d55307 43 #include "timer_ncs36510.h"
<> 144:ef7eb2e8f9f7 44
<> 144:ef7eb2e8f9f7 45 /* Other inclusions */
<> 144:ef7eb2e8f9f7 46 #include "types.h"
<> 144:ef7eb2e8f9f7 47
<> 144:ef7eb2e8f9f7 48
<> 144:ef7eb2e8f9f7 49 #include "rtc.h"
<> 144:ef7eb2e8f9f7 50 #include "gpio.h"
<> 144:ef7eb2e8f9f7 51 #include "uart_16c550.h"
<> 144:ef7eb2e8f9f7 52
<> 144:ef7eb2e8f9f7 53 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 54 * *
<> 144:ef7eb2e8f9f7 55 * Externally declarewd functions *
<> 144:ef7eb2e8f9f7 56 * *
<> 144:ef7eb2e8f9f7 57 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 58 extern void fSysTickHandler(void);
<> 144:ef7eb2e8f9f7 59 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 60 * *
<> 144:ef7eb2e8f9f7 61 * Functions *
<> 144:ef7eb2e8f9f7 62 * *
<> 144:ef7eb2e8f9f7 63 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 64
<> 144:ef7eb2e8f9f7 65 /** Not implemented exception, exception handler */
<> 144:ef7eb2e8f9f7 66 void NotImplemented_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 }