aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/lm4f/memorymap.h
blob: 7e09a0bd25a615235c6cf3da1376161fcbbdb1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * This file is part of the libopencm3 project.
 *
 * Copyright (C) 2011 Gareth McMullin <gareth@blacksphere.co.nz>
 *
 * This library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef LM4F_MEMORYMAP_H
#define LM4F_MEMORYMAP_H

#include <libopencm3/cm3/common.h>

/* --- LM4F specific peripheral definitions ----------------------------- */

#define GPIOA_APB_BASE			(0x40004000)
#define GPIOB_APB_BASE			(0x40005000)
#define GPIOC_APB_BASE			(0x40006000)
#define GPIOD_APB_BASE			(0x40007000)
#define GPIOE_APB_BASE			(0x40024000)
#define GPIOF_APB_BASE			(0x40025000)
#define GPIOG_APB_BASE			(0x40026000)
#define GPIOH_APB_BASE			(0x40027000)

#define GPIOA_BASE			(0x40058000)
#define GPIOB_BASE			(0x40059000)
#define GPIOC_BASE			(0x4005A000)
#define GPIOD_BASE			(0x4005B000)
#define GPIOE_BASE			(0x4005C000)
#define GPIOF_BASE			(0x4005D000)
#define GPIOG_BASE			(0x4005E000)
#define GPIOH_BASE			(0x4005F000)

#define UART0_BASE			(0x4000C000)
#define UART1_BASE			(0x4000D000)
#define UART2_BASE			(0x4000E000)
#define UART3_BASE			(0x4000F000)
#define UART4_BASE			(0x40010000)
#define UART5_BASE			(0x40011000)
#define UART6_BASE			(0x40012000)
#define UART7_BASE			(0x40013000)

#define SYSCTL_BASE			(0x400FE000)

#endif