soc: ti_simplelink: add macro to prevent double inclusion of soc.h

soc.h needs to use a macro to guard against it being included multiple
times.

Fixes #17557

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2019-07-16 15:59:35 -07:00 committed by Andrew Boie
commit 119714f366

View file

@ -4,6 +4,9 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef TI_SIMPLELINK_CC32XX_SOC_H_
#define TI_SIMPLELINK_CC32XX_SOC_H_
#include <inc/hw_types.h> #include <inc/hw_types.h>
#include <driverlib/prcm.h> #include <driverlib/prcm.h>
@ -34,3 +37,6 @@ typedef enum {
#define __MPU_PRESENT 0 /* Zephyr has no MPU support */ #define __MPU_PRESENT 0 /* Zephyr has no MPU support */
#define __NVIC_PRIO_BITS DT_NUM_IRQ_PRIO_BITS #define __NVIC_PRIO_BITS DT_NUM_IRQ_PRIO_BITS
#define __Vendor_SysTickConfig 0 /* Default to standard SysTick */ #define __Vendor_SysTickConfig 0 /* Default to standard SysTick */
#endif /* TI_SIMPLELINK_CC32XX_SOC_H_ */