blob: 5f7552fd037785d2ea3c5842c89d89c8f633cfaa [file] [log] [blame]
/*
* Copyright (c) 2017, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC__H_
#define _SOC__H_
#include <misc/util.h>
#ifdef __cplusplus
extern "C" {
#endif
#define UART0_CLK_SRC kCLOCK_CoreSysClk
/* IRQs */
#define IRQ_DMA_CHAN0 0
#define IRQ_DMA_CHAN1 1
#define IRQ_DMA_CHAN2 2
#define IRQ_DMA_CHAN3 3
#define IRQ_RESERVED0 4
#define IRQ_FTFA 5
#define IRQ_LOW_VOLTAGE 6
#define IRQ_LOW_LEAKAGE 7
#define IRQ_I2C0 8
#define IRQ_I2C1 9
#define IRQ_SPI0 10
#define IRQ_SPI1 11
#define IRQ_UART0 12
#define IRQ_UART0_STATUS 12
#define IRQ_UART1 13
#define IRQ_UART2 14
#define IRQ_ADC0 15
#define IRQ_CMP0 16
#define IRQ_TPM0 17
#define IRQ_TPM1 18
#define IRQ_TPM2 19
#define IRQ_RTC_ALARM 20
#define IRQ_RTC_SEC 21
#define IRQ_PIT 22
#define IRQ_RESERVED39 23
#define IRQ_USB0 24
#define IRQ_DAC0 25
#define IRQ_TSI 26
#define IRQ_MCG 27
#define IRQ_LPTMR0 28
#define IRQ_RESERVED45 29
#define IRQ_GPIO_PORTA 30
#define IRQ_GPIO_PORTD 31
#ifndef _ASMLANGUAGE
#include <device.h>
#include <misc/util.h>
#include <drivers/rand32.h>
#endif /* !_ASMLANGUAGE */
#ifdef __cplusplus
}
#endif
#endif /* _SOC__H_ */