mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)
Fork of mbed-dev by
targets/TARGET_ONSEMI/TARGET_NCS36510/architecture.h@154:1375a99fb16d, 2017-01-02 (annotated)
- Committer:
- shaoziyang
- Date:
- Mon Jan 02 15:52:04 2017 +0000
- Revision:
- 154:1375a99fb16d
- Parent:
- 149:156823d33999
Mbed for ST SensorTile kit, fixed GPIOG bug, add PORTG support.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /** |
<> | 149:156823d33999 | 2 | ****************************************************************************** |
<> | 149:156823d33999 | 3 | * @file architecture.h |
<> | 149:156823d33999 | 4 | * @brief CM3 architecture specific inclusions and defines. |
<> | 149:156823d33999 | 5 | * @internal |
<> | 149:156823d33999 | 6 | * @author ON Semiconductor |
<> | 149:156823d33999 | 7 | * $Rev: $ |
<> | 149:156823d33999 | 8 | * $Date: $ |
<> | 149:156823d33999 | 9 | ****************************************************************************** |
<> | 149:156823d33999 | 10 | * Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor). |
<> | 149:156823d33999 | 11 | * All rights reserved. This software and/or documentation is licensed by ON Semiconductor |
<> | 149:156823d33999 | 12 | * under limited terms and conditions. The terms and conditions pertaining to the software |
<> | 149:156823d33999 | 13 | * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf |
<> | 149:156823d33999 | 14 | * (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and |
<> | 149:156823d33999 | 15 | * if applicable the software license agreement. Do not use this software and/or |
<> | 149:156823d33999 | 16 | * documentation unless you have carefully read and you agree to the limited terms and |
<> | 149:156823d33999 | 17 | * conditions. By using this software and/or documentation, you agree to the limited |
<> | 149:156823d33999 | 18 | * terms and conditions. |
<> | 149:156823d33999 | 19 | * |
<> | 149:156823d33999 | 20 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
<> | 149:156823d33999 | 21 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
<> | 149:156823d33999 | 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
<> | 149:156823d33999 | 23 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, |
<> | 149:156823d33999 | 24 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
<> | 149:156823d33999 | 25 | * @endinternal |
<> | 149:156823d33999 | 26 | * |
<> | 149:156823d33999 | 27 | * @ingroup bsp |
<> | 149:156823d33999 | 28 | */ |
<> | 149:156823d33999 | 29 | |
<> | 149:156823d33999 | 30 | #ifndef ARCHITECTURE_H_ |
<> | 149:156823d33999 | 31 | #define ARCHITECTURE_H_ |
<> | 149:156823d33999 | 32 | |
<> | 149:156823d33999 | 33 | /************************************************************************************************* |
<> | 149:156823d33999 | 34 | * * |
<> | 149:156823d33999 | 35 | * Header files * |
<> | 149:156823d33999 | 36 | * * |
<> | 149:156823d33999 | 37 | *************************************************************************************************/ |
<> | 149:156823d33999 | 38 | |
<> | 149:156823d33999 | 39 | //#include <ncs36510.h> |
<> | 149:156823d33999 | 40 | //#include <system_ncs36510.h> |
<> | 149:156823d33999 | 41 | //#include <core_cm3.h> |
<> | 149:156823d33999 | 42 | |
<> | 149:156823d33999 | 43 | #include "NCS36510.h" |
<> | 149:156823d33999 | 44 | #include "system_NCS36510.h" |
<> | 149:156823d33999 | 45 | #include "core_cm3.h" |
<> | 149:156823d33999 | 46 | #include "cmsis.h" |
<> | 149:156823d33999 | 47 | |
<> | 149:156823d33999 | 48 | |
<> | 149:156823d33999 | 49 | /************************************************************************************************* |
<> | 149:156823d33999 | 50 | * * |
<> | 149:156823d33999 | 51 | * Symbolic Constants * |
<> | 149:156823d33999 | 52 | * * |
<> | 149:156823d33999 | 53 | *************************************************************************************************/ |
<> | 149:156823d33999 | 54 | |
<> | 149:156823d33999 | 55 | /* Interrupt Control and State Register (0xE000ED04) |
<> | 149:156823d33999 | 56 | * 31 NMIPENDSET R/W 0 NMI pended |
<> | 149:156823d33999 | 57 | * 28 PENDSVSET R/W 0 Write 1 to pend system call; Read value |
<> | 149:156823d33999 | 58 | * indicates pending status |
<> | 149:156823d33999 | 59 | * 27 PENDSVCLR W 0 Write 1 to clear PendSV pending status |
<> | 149:156823d33999 | 60 | * 26 PENDSTSET R/W 0 Write 1 to pend Systick exception; Read |
<> | 149:156823d33999 | 61 | * value indicates pending status |
<> | 149:156823d33999 | 62 | * 25 PENDSTCLR W 0 Write 1 to clear Systick pending status |
<> | 149:156823d33999 | 63 | * 23 ISRPREEMPT R 0 Indicate that a pending interrupt is going |
<> | 149:156823d33999 | 64 | * to be active in next step (for debug) |
<> | 149:156823d33999 | 65 | * 22 ISRPENDING R 0 External interrupt pending (excluding |
<> | 149:156823d33999 | 66 | * system exceptions such as NMI for |
<> | 149:156823d33999 | 67 | * fault) |
<> | 149:156823d33999 | 68 | * 21:12 VECTPENDING R 0 Pending ISR number |
<> | 149:156823d33999 | 69 | * 11 RETTOBASE R 0 Set to 1 when the processor is running |
<> | 149:156823d33999 | 70 | * an exception handler and will return to |
<> | 149:156823d33999 | 71 | * thread level if interrupt return and no |
<> | 149:156823d33999 | 72 | * other exceptions pending |
<> | 149:156823d33999 | 73 | * 9:0 VECTACTIVE R 0 Current running interrupt service routine |
<> | 149:156823d33999 | 74 | */ |
<> | 149:156823d33999 | 75 | #define RUNNING_IN_ISR (((SCB->ICSR & 0x3FF) > 0 ) ? 1 : 0) |
<> | 149:156823d33999 | 76 | |
<> | 149:156823d33999 | 77 | #endif /* ARCHITECTURE_H_ */ |