2016-10-26 07:49:35 +08:00
|
|
|
/*
|
2017-06-03 08:16:43 +08:00
|
|
|
* Copyright (c) 2016-2017, Texas Instruments Incorporated
|
2016-10-26 07:49:35 +08:00
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-10-26 07:49:35 +08:00
|
|
|
*/
|
2017-06-03 08:16:43 +08:00
|
|
|
|
2019-07-17 06:59:35 +08:00
|
|
|
#ifndef TI_SIMPLELINK_CC32XX_SOC_H_
|
|
|
|
#define TI_SIMPLELINK_CC32XX_SOC_H_
|
|
|
|
|
2016-10-26 07:49:35 +08:00
|
|
|
#include <inc/hw_types.h>
|
|
|
|
#include <driverlib/prcm.h>
|
2017-06-03 08:16:43 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* CMSIS IRQn_Type enum is broken relative to ARM GNU compiler.
|
|
|
|
*
|
|
|
|
* So redefine the IRQn_Type enum to a unsigned int to avoid
|
|
|
|
* the ARM compiler from sign extending IRQn_Type values higher than 0x80
|
|
|
|
* into negative IRQ values, which causes hard-to-debug Hard Faults.
|
|
|
|
*/
|
|
|
|
typedef u32_t IRQn_Type;
|
|
|
|
|
|
|
|
/* Need to keep the remaining from cmsis.h, as Zephyr expects these. */
|
2018-11-27 17:30:47 +08:00
|
|
|
typedef enum {
|
2017-06-03 08:16:43 +08:00
|
|
|
Reset_IRQn = -15,
|
|
|
|
NonMaskableInt_IRQn = -14,
|
|
|
|
HardFault_IRQn = -13,
|
|
|
|
MemoryManagement_IRQn = -12,
|
|
|
|
BusFault_IRQn = -11,
|
|
|
|
UsageFault_IRQn = -10,
|
|
|
|
SVCall_IRQn = -5,
|
|
|
|
DebugMonitor_IRQn = -4,
|
|
|
|
PendSV_IRQn = -2,
|
|
|
|
SysTick_IRQn = -1,
|
|
|
|
} CMSIS_IRQn_Type;
|
|
|
|
|
|
|
|
#define __CM4_REV 0
|
|
|
|
#define __MPU_PRESENT 0 /* Zephyr has no MPU support */
|
2018-11-13 22:15:23 +08:00
|
|
|
#define __NVIC_PRIO_BITS DT_NUM_IRQ_PRIO_BITS
|
2017-06-03 08:16:43 +08:00
|
|
|
#define __Vendor_SysTickConfig 0 /* Default to standard SysTick */
|
2019-07-17 06:59:35 +08:00
|
|
|
|
|
|
|
#endif /* TI_SIMPLELINK_CC32XX_SOC_H_ */
|
|
|
|
|