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