source:
rtems/c/src/lib/libbsp/arm/lpc24xx/include/start-config.h
@
4a6cc2a
Last change on this file since 4a6cc2a was 4a6cc2a, checked in by Sebastian Huber <sebastian.huber@…>, on 11/08/11 at 10:39:46 | |
---|---|
|
|
File size: 2.0 KB |
Line | |
---|---|
1 | /** |
2 | * @file |
3 | * |
4 | * @ingroup lpc24xx |
5 | * |
6 | * @brief BSP start configuration. |
7 | */ |
8 | |
9 | /* |
10 | * Copyright (c) 2011 embedded brains GmbH. All rights reserved. |
11 | * |
12 | * embedded brains GmbH |
13 | * Obere Lagerstr. 30 |
14 | * 82178 Puchheim |
15 | * Germany |
16 | * <rtems@embedded-brains.de> |
17 | * |
18 | * The license and distribution terms for this file may be |
19 | * found in the file LICENSE in this distribution or at |
20 | * http://www.rtems.com/license/LICENSE. |
21 | * |
22 | * $Id$ |
23 | */ |
24 | |
25 | #ifndef LIBBSP_ARM_LPC24XX_START_CONFIG_H |
26 | #define LIBBSP_ARM_LPC24XX_START_CONFIG_H |
27 | |
28 | #include <bsp.h> |
29 | #include <bsp/io.h> |
30 | #include <bsp/start.h> |
31 | #include <bsp/lpc-emc.h> |
32 | |
33 | #ifdef __cplusplus |
34 | extern "C" { |
35 | #endif /* __cplusplus */ |
36 | |
37 | typedef struct { |
38 | uint32_t refresh; |
39 | uint32_t readconfig; |
40 | uint32_t trp; |
41 | uint32_t tras; |
42 | uint32_t tsrex; |
43 | uint32_t tapr; |
44 | uint32_t tdal; |
45 | uint32_t twr; |
46 | uint32_t trc; |
47 | uint32_t trfc; |
48 | uint32_t txsr; |
49 | uint32_t trrd; |
50 | uint32_t tmrd; |
51 | uint32_t emcdlyctl; |
52 | } lpc24xx_emc_dynamic_config; |
53 | |
54 | typedef struct { |
55 | volatile lpc_emc_dynamic *chip_select; |
56 | uint32_t address; |
57 | uint32_t config; |
58 | uint32_t rascas; |
59 | uint32_t mode; |
60 | } lpc24xx_emc_dynamic_chip_config; |
61 | |
62 | typedef struct { |
63 | volatile lpc_emc_static *chip_select; |
64 | struct { |
65 | uint32_t config; |
66 | uint32_t waitwen; |
67 | uint32_t waitoen; |
68 | uint32_t waitrd; |
69 | uint32_t waitpage; |
70 | uint32_t waitwr; |
71 | uint32_t waitrun; |
72 | } config; |
73 | } lpc24xx_emc_static_chip_config; |
74 | |
75 | extern BSP_START_DATA_SECTION const lpc24xx_pin_range |
76 | lpc24xx_start_config_pinsel []; |
77 | |
78 | extern BSP_START_DATA_SECTION const lpc24xx_emc_dynamic_config |
79 | lpc24xx_start_config_emc_dynamic []; |
80 | |
81 | extern BSP_START_DATA_SECTION const lpc24xx_emc_dynamic_chip_config |
82 | lpc24xx_start_config_emc_dynamic_chip []; |
83 | |
84 | extern BSP_START_DATA_SECTION const size_t |
85 | lpc24xx_start_config_emc_dynamic_chip_count; |
86 | |
87 | extern BSP_START_DATA_SECTION const lpc24xx_emc_static_chip_config |
88 | lpc24xx_start_config_emc_static_chip []; |
89 | |
90 | extern BSP_START_DATA_SECTION const size_t |
91 | lpc24xx_start_config_emc_static_chip_count; |
92 | |
93 | #ifdef __cplusplus |
94 | } |
95 | #endif /* __cplusplus */ |
96 | |
97 | #endif /* LIBBSP_ARM_LPC24XX_START_CONFIG_H */ |
Note: See TracBrowser
for help on using the repository browser.