RTEMS 6.1-rc6
Loading...
Searching...
No Matches
tms570.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/* This file is generated by make_central_header.py */
12/* Current script's version can be found at: */
13/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
14
15/*
16 * Copyright (C) 2022 Airbus U.S. Space & Defense, Inc
17 * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
18 *
19 * Czech Technical University in Prague
20 * Zikova 1903/4
21 * 166 36 Praha 6
22 * Czech Republic
23 *
24 * All rights reserved.
25 *
26 * Redistribution and use in source and binary forms, with or without
27 * modification, are permitted provided that the following conditions are met:
28 *
29 * 1. Redistributions of source code must retain the above copyright notice, this
30 * list of conditions and the following disclaimer.
31 * 2. Redistributions in binary form must reproduce the above copyright notice,
32 * this list of conditions and the following disclaimer in the documentation
33 * and/or other materials provided with the distribution.
34 *
35 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
36 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
37 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
39 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
40 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 *
46 * The views and conclusions contained in the software and documentation are those
47 * of the authors and should not be interpreted as representing official policies,
48 * either expressed or implied, of the FreeBSD Project.
49*/
50#ifndef LIBBSP_ARM_TMS570
51#define LIBBSP_ARM_TMS570
52
53#include <bsp/tms570-pins.h>
54
55#include <bsp/ti_herc/reg_adc.h>
57#include <bsp/ti_herc/reg_crc.h>
59#include <bsp/ti_herc/reg_dcc.h>
60#include <bsp/ti_herc/reg_dma.h>
61#include <bsp/ti_herc/reg_dmm.h>
66#include <bsp/ti_herc/reg_esm.h>
69#include <bsp/ti_herc/reg_gio.h>
70#include <bsp/ti_herc/reg_htu.h>
71#include <bsp/ti_herc/reg_i2c.h>
73#include <bsp/ti_herc/reg_lin.h>
77#include <bsp/ti_herc/reg_pll.h>
78#include <bsp/ti_herc/reg_pmm.h>
79#include <bsp/ti_herc/reg_rti.h>
80#include <bsp/ti_herc/reg_rtp.h>
81#include <bsp/ti_herc/reg_sci.h>
82#include <bsp/ti_herc/reg_tcr.h>
84#include <bsp/ti_herc/reg_vim.h>
85#include <bsp/ti_herc/reg_pom.h>
86#include <bsp/ti_herc/reg_spi.h>
87#include <bsp/ti_herc/reg_stc.h>
88#include <bsp/ti_herc/reg_sys.h>
90#include <bsp/ti_herc/reg_pcr.h>
91
92#include <bspopts.h>
93
94#define TMS570_ADC1 (*(volatile tms570_adc_t*)0xFFF7C000)
95#define TMS570_ADC2 (*(volatile tms570_adc_t*)0xFFF7C200)
96#define TMS570_CCMSR (*(volatile tms570_ccmsr_t*)0xFFFFF600)
97#define TMS570_CRC (*(volatile tms570_crc_t*)0xFE000000)
98#if TMS570_VARIANT == 4357
99#define TMS570_CRC2 (*(volatile tms570_crc_t*)0xFB000000)
100#endif
101#define TMS570_DCAN1 (*(volatile tms570_dcan_t*)0xFFF7DC00)
102#define TMS570_DCAN2 (*(volatile tms570_dcan_t*)0xFFF7DE00)
103#define TMS570_DCAN3 (*(volatile tms570_dcan_t*)0xFFF7E000)
104#if TMS570_VARIANT == 4357
105#define TMS570_DCAN4 (*(volatile tms570_dcan_t*)0xFFF7E200)
106#endif
107#define TMS570_DCC1 (*(volatile tms570_dcc_t*)0xFFFFEC00)
108#define TMS570_DCC2 (*(volatile tms570_dcc_t*)0xFFFFF400)
109#define TMS570_DMA (*(volatile tms570_dma_t*)0xFFFFF000)
110#define TMS570_DMM (*(volatile tms570_dmm_t*)0xFFFFF700)
111#define TMS570_EFUSE (*(volatile tms570_efuse_t*)0xFFF8C01C)
112#define TMS570_EMACC (*(volatile tms570_emacc_t*)0xFCF78800)
113#define TMS570_EMACM (*(volatile tms570_emacm_t*)0xFCF78000)
114#define TMS570_EMIF (*(volatile tms570_emif_t*)0xFCFFE800)
115#define TMS570_ESM (*(volatile tms570_esm_t*)0xFFFFF500)
116#define TMS570_FLASH (*(volatile tms570_flash_t*)0xFFF87000)
117#define TMS570_FLEX_RAY (*(volatile tms570_flex_ray_t*)0xFFF7C800)
118#define TMS570_GIO (*(volatile tms570_gio_t*)0xFFF7BC00)
119#define TMS570_GIO_PORTA (*(volatile tms570_gio_port_t*)0xFFF7BC34)
120#define TMS570_GIO_PORTB (*(volatile tms570_gio_port_t*)0xFFF7BC54)
121#define TMS570_GIO_PORTC (*(volatile tms570_gio_port_t*)0xFFF7BC74)
122#define TMS570_GIO_PORTD (*(volatile tms570_gio_port_t*)0xFFF7BC94)
123#define TMS570_GIO_PORTE (*(volatile tms570_gio_port_t*)0xFFF7BCB4)
124#define TMS570_GIO_PORTF (*(volatile tms570_gio_port_t*)0xFFF7BCD4)
125#define TMS570_GIO_PORTG (*(volatile tms570_gio_port_t*)0xFFF7BCF4)
126#define TMS570_GIO_PORTH (*(volatile tms570_gio_port_t*)0xFFF7BD14)
127#define TMS570_HTU1 (*(volatile tms570_htu_t*)0xFFF7A400)
128#define TMS570_HTU2 (*(volatile tms570_htu_t*)0xFFF7A500)
129#define TMS570_I2C (*(volatile tms570_i2c_t*)0xFFF7D400)
130#if TMS570_VARIANT == 4357
131#define TMS570_I2C2 (*(volatile tms570_i2c_t*)0xFFF7D500)
132#endif
133#if TMS570_VARIANT == 4357
134#define TMS570_IOMM (*(volatile tms570_iomm_t*)0xFFFF1C00)
135#else
136#define TMS570_IOMM (*(volatile tms570_iomm_t*)0xFFFFEA00)
137#endif
138#define TMS570_PINMUX ((volatile uint32_t*)TMS570_IOMM.PINMMR)
139#define TMS570_LIN (*(volatile tms570_lin_t*)0xFFF7E400)
140#if TMS570_VARIANT == 4357
141#define TMS570_LIN2 (*(volatile tms570_lin_t*)0xFFF7E600)
142#endif
143#define TMS570_MDIO (*(volatile tms570_mdio_t*)0xFCF78900)
144#define TMS570_NHET1 (*(volatile tms570_nhet_t*)0xFFF7B800)
145#define TMS570_NHET2 (*(volatile tms570_nhet_t*)0xFFF7B900)
146#define TMS570_PBIST (*(volatile tms570_pbist_t*)0xFFFFE400)
147#define TMS570_PLL (*(volatile tms570_pll_t*)0xFFFFE100)
148#define TMS570_PMM (*(volatile tms570_pmm_t*)0xFFFF0000)
149#define TMS570_RTI (*(volatile tms570_rti_t*)0xFFFFFC00)
150#define TMS570_RTP (*(volatile tms570_rtp_t*)0xFFFFFA00)
151#define TMS570_SCI (*(volatile tms570_sci_t*)0xFFF7E500)
152#if TMS570_VARIANT == 4357
153#define TMS570_SCI2 (*(volatile tms570_sci_t*)0xFFF7E700)
154#endif
155#define TMS570_TCR (*(volatile tms570_tcr_t*)0xFFF7C800)
156#define TMS570_TCRAM1 (*(volatile tms570_tcram_t*)0xFFFFF800)
157#define TMS570_TCRAM2 (*(volatile tms570_tcram_t*)0xFFFFF900)
158#define TMS570_VIM (*(volatile tms570_vim_t*)0xFFFFFDEC)
159#define TMS570_POM (*(volatile tms570_pom_t*)0xFFA04000)
160#define TMS570_SPI1 (*(volatile tms570_spi_t*)0xFFF7F400)
161#define TMS570_SPI2 (*(volatile tms570_spi_t*)0xFFF7F600)
162#define TMS570_SPI3 (*(volatile tms570_spi_t*)0xFFF7F800)
163#define TMS570_SPI4 (*(volatile tms570_spi_t*)0xFFF7FA00)
164#define TMS570_SPI5 (*(volatile tms570_spi_t*)0xFFF7FC00)
165#define TMS570_STC (*(volatile tms570_stc_t*)0xFFFFE600)
166#define TMS570_SYS1 (*(volatile tms570_sys1_t*)0xFFFFFF00)
167#define TMS570_SYS2 (*(volatile tms570_sys2_t*)0xFFFFE100)
168#if TMS570_VARIANT == 4357
169#define TMS570_PCR1 (*(volatile tms570_pcr_t*)0xFFFF1000)
170#define TMS570_PCR2 (*(volatile tms570_pcr_t*)0xFCFF1000)
171#define TMS570_PCR3 (*(volatile tms570_pcr_t*)0xFFF78000)
172#else
173#define TMS570_PCR1 (*(volatile tms570_pcr_t*)0xFFFFE000)
174#endif
175#endif /* LIBBSP_ARM_TMS570 */
This header file provides ADC interfaces.
This header file provides CCMSR interfaces.
This header file provides CRC interfaces.
This header file provides DCAN interfaces.
This header file provides DCC interfaces.
This header file provides DMA interfaces.
This header file provides DMM interfaces.
This header file provides EFUSE interfaces.
This header file provides EMACC interfaces.
This header file provides EMACM interfaces.
This header file provides EMIF interfaces.
This header file provides ESM interfaces.
This header file provides flash interfaces.
This header file provides FlexRay interfaces.
This header file provides GIO interfaces.
This header file provides HTU interfaces.
This header file provides I2C interfaces.
This header file provides IOMM interfaces.
This header file provides LIN interfaces.
This header file provides MDIO interfaces.
This header file provides N2HET interfaces.
This header file provides PBIST interfaces.
This header file provides PCR interfaces.
This header file provides PLL interfaces.
This header file provides PMM interfaces.
This header file provides POM interfaces.
This header file provides RTI interfaces.
This header file provides RTP interfaces.
This header file provides SCI interfaces.
This header file provides SPI interfaces.
This header file provides STC interfaces.
This header file provides SYS2 interfaces.
This header file provides SYS interfaces.
This header file provides TCR interfaces.
This header file provides TCRAM interfaces.
This header file provides VIM interfaces.
This header file selects the pin mapping according to the selected chip.