2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2015 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Board configuration macros for the QEMU for arm platform
|
|
|
|
*
|
2015-10-21 00:42:33 +08:00
|
|
|
* This header file is used to specify and describe board-level aspects for
|
2015-11-14 08:17:27 +08:00
|
|
|
* the 'QEMU' platform.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#ifndef _BOARD__H_
|
|
|
|
#define _BOARD__H_
|
|
|
|
|
2019-06-26 22:33:55 +08:00
|
|
|
#include <sys/util.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
/* default system clock */
|
|
|
|
|
|
|
|
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(12)
|
|
|
|
|
|
|
|
/* IRQs */
|
|
|
|
|
|
|
|
#define IRQ_GPIO_PORTA 0
|
|
|
|
#define IRQ_GPIO_PORTB 1
|
|
|
|
#define IRQ_GPIO_PORTC 2
|
|
|
|
#define IRQ_GPIO_PORTD 3
|
|
|
|
#define IRQ_GPIO_PORTE 4
|
|
|
|
#define IRQ_SSI0 7
|
|
|
|
#define IRQ_I2C0 8
|
|
|
|
#define IRQ_PWM_FAULT 9
|
|
|
|
#define IRQ_PWM_GEN0 10
|
|
|
|
#define IRQ_PWM_GEN1 11
|
|
|
|
#define IRQ_PWM_GEN2 12
|
|
|
|
#define IRQ_QEI0 13
|
|
|
|
#define IRQ_ADC0_SEQ0 14
|
|
|
|
#define IRQ_ADC0_SEQ1 15
|
|
|
|
#define IRQ_ADC0_SEQ2 16
|
|
|
|
#define IRQ_ADC0_SEQ3 17
|
|
|
|
#define IRQ_WDOG0 18
|
|
|
|
#define IRQ_TIMER0A 19
|
|
|
|
#define IRQ_TIMER0B 20
|
|
|
|
#define IRQ_TIMER1A 21
|
|
|
|
#define IRQ_TIMER1B 22
|
|
|
|
#define IRQ_TIMER2A 23
|
|
|
|
#define IRQ_TIMER2B 24
|
|
|
|
#define IRQ_ANALOG_COMP0 25
|
|
|
|
#define IRQ_ANALOG_COMP1 26
|
|
|
|
#define IRQ_RESERVED0 27
|
|
|
|
#define IRQ_SYS_CONTROL 28
|
|
|
|
#define IRQ_FLASH_MEM_CTRL 29
|
|
|
|
#define IRQ_GPIO_PORTF 30
|
|
|
|
#define IRQ_GPIO_PORTG 31
|
|
|
|
#define IRQ_RESERVED1 32
|
|
|
|
#define IRQ_RESERVED2 34
|
|
|
|
#define IRQ_TIMER3A 35
|
|
|
|
#define IRQ_TIMER3B 36
|
|
|
|
#define IRQ_I2C1 37
|
|
|
|
#define IRQ_QEI1 38
|
|
|
|
#define IRQ_RESERVED3 39
|
|
|
|
#define IRQ_RESERVED4 40
|
|
|
|
#define IRQ_RESERVED5 41
|
|
|
|
#define IRQ_ETH 42
|
|
|
|
#define IRQ_HIBERNATION 43
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
2015-08-06 03:13:36 +08:00
|
|
|
#include <device.h>
|
2019-06-26 22:33:55 +08:00
|
|
|
#include <sys/util.h>
|
2017-10-14 06:45:02 +08:00
|
|
|
#include <random/rand32.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
/* uart configuration settings */
|
2016-03-26 02:09:21 +08:00
|
|
|
#if defined(CONFIG_UART_STELLARIS)
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2018-11-13 22:15:23 +08:00
|
|
|
#define DT_UART_STELLARIS_CLK_FREQ SYSCLK_DEFAULT_IOSC_HZ
|
2016-03-26 02:09:21 +08:00
|
|
|
|
|
|
|
#endif /* CONFIG_UART_STELLARIS */
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif /* _BOARD__H_ */
|