annotate packages/devs/spi/arm/at91/current/cdl/spi_at91.cdl @ 2807:9a8446cf24e9

* src/spi_at91.c (cyg_spi_at91_bus_init): Partially revert change of 2009-02-11. Define an empty CYGBLD_ATTRIB_C_INIT_PRI and rely on spi_at91_init.cxx to call, in case the compiler does not supply that macro (e.g. if too old). * cdl/spi_at91.cdl: Revert change of 2009-02-11. * src/spi_at91_init.cxx: Revive. Set priority to CYG_INIT_BUS_SPI. Conditionalise on CYGBLD_ATTRIB_C_INIT_PRI.
author jlarmour
date Mon, 16 Feb 2009 23:34:51 +0000
parents 557484b482f8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
1 # ====================================================================
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
2 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
3 # spi_at91.cdl
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
4 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
5 # Atmel AT91 (ARM) SPI driver configuration data
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
6 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
7 # ====================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
8 ## ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
9 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
10 ## This file is part of eCos, the Embedded Configurable Operating System.
2790
fe2b9e9dcbe2 Fix behaviour re. linker garbage collection. Use the right init
bartv
parents: 2729
diff changeset
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
12 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
13 ## eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
14 ## the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
15 ## Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
16 ## version.
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
17 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
19 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
21 ## for more details.
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
22 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
23 ## You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
24 ## along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
26 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
27 ## As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
28 ## macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
29 ## and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
30 ## this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
31 ## the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
32 ## must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
33 ## General Public License v2.
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
34 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
35 ## This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
36 ## on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
37 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2220
diff changeset
38 ## ####ECOSGPLCOPYRIGHTEND####
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
39 # ====================================================================
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
40 ######DESCRIPTIONBEGIN####
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
41 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
42 # Author(s): Savin Zlobec <savin@elatec.si>
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
43 # Date: 2004-08-25
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
44 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
45 #####DESCRIPTIONEND####
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
46 #
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
47 # ====================================================================
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
48
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
49 cdl_package CYGPKG_DEVS_SPI_ARM_AT91 {
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
50 parent CYGPKG_IO_SPI
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
51 active_if CYGPKG_IO_SPI
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
52 display "Atmel AT91 SPI driver"
2792
557484b482f8 Various minor changes to let EB55 redboot link.
nickg
parents: 2790
diff changeset
53 requires CYGPKG_HAL_ARM_AT91
557484b482f8 Various minor changes to let EB55 redboot link.
nickg
parents: 2790
diff changeset
54 requires CYGPKG_ERROR
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
55 hardware
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
56 include_dir cyg/io
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
57 compile spi_at91.c
2807
9a8446cf24e9 * src/spi_at91.c (cyg_spi_at91_bus_init): Partially revert change of
jlarmour
parents: 2792
diff changeset
58 compile -library=libextras.a spi_at91_init.cxx
2220
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
59
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
60 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
61 display "Enable support for SPI bus 0"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
62 flavor bool
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
63 default_value 1
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
64 description "Enable this option to add support for the first
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
65 SPI peripheral. The most AT91 devices only have one bus"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
66 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
67
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
68 cdl_interface CYGINT_DEVS_SPI_ARM_AT91_HAS_BUS1 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
69 description "
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
70 This interface is implemented by HALs for devices which have
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
71 the second SPI bus controller."
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
72 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
73
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
74
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
75 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
76 active_if CYGINT_DEVS_SPI_ARM_AT_HAS_BUS1
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
77 display "Enable support for SPI bus 1"
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
78 flavor bool
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
79 default_value 0
2220
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
80 description "Enable this option to add support for the second
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
81 SPI peripheral. The most AT91 devices only have one bus"
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
82 }
2220
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
83
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
84 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS0_CFG {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
85 active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS0
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
86 display "Configuration options for SPI Bus 0"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
87 flavor none
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
88 description "This is the configuration options for SPI Bus 0"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
89
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
90 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0_PCSDEC {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
91 display "Support 4 to 16 decoder of chip select signals."
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
92 flavor bool
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
93 default_value 0
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
94 description "Enable this option if SPI peripheral chip
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
95 selects are connected through an 4 to 16 decoder."
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
96 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
97
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
98 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS0 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
99 display "PIO-Pin used for NPSC0"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
100 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
101 default_value {"AT91_SPI_NPCS0"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
102 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
103 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
104 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
105 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
106 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
107
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
108 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS1 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
109 display "PIO-Pin used for NPSC1"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
110 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
111 default_value {"AT91_SPI_NPCS1"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
112 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
113 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
114 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
115 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
116 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
117 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS2 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
118 display "PIO-Pin used for NPSC2"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
119 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
120 default_value {"AT91_SPI_NPCS2"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
121 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
122 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
123 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
124 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
125 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
126 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS3 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
127 display "PIO-Pin used for NPSC3"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
128 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
129 default_value {"AT91_SPI_NPCS3"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
130 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
131 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
132 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
133 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
134 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
135
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
136 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
137
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
138 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS1_CFG {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
139 active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS1
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
140 display "Configuration options for SPI Bus 1"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
141 flavor none
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
142 description "This is the configuration options for SPI Bus 1"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
143
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
144 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1_PCSDEC {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
145 display "Support 4 to 16 decoder of chip select signals."
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
146 flavor bool
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
147 default_value 0
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
148 description "Enable this option if SPI peripheral chip
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
149 selects are connected through an 4 to 16 decoder."
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
150 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
151
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
152 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS0 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
153 display "PIO-Pin used for NPSC0"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
154 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
155 default_value {"AT91_SPI1_NPCS0"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
156 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
157 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
158 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
159 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
160 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
161
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
162 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS1 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
163 display "PIO-Pin used for NPSC1"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
164 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
165 default_value {"AT91_SPI1_NPCS1"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
166 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
167 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
168 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
169 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
170 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
171 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS2 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
172 display "PIO-Pin used for NPSC2"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
173 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
174 default_value {"AT91_SPI1_NPCS2"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
175 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
176 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
177 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
178 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
179 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
180 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS3 {
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
181 display "PIO-Pin used for NPSC3"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
182 flavor data
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
183 default_value {"AT91_SPI1_NPCS3"}
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
184 description "Any GPIO pin is able to be used as the SPI driver
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
185 uses GPIO to control the chip selects. Specify the pin
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
186 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
187 \"NONE\" if this chip select is to be disabled"
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
188 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
189
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
190 }
f0e05d8186d4 * src/spi_at91.c:
asl
parents: 1794
diff changeset
191
1794
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
192
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
193 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_OPTIONS {
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
194 display "Atmel AT91 SPI driver build options"
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
195 flavor none
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
196 description "
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
197 Package specific build options including control over
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
198 compiler flags used only in building this package,
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
199 and details of which tests are built."
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
200
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
201 cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_ADD {
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
202 display "Additional compiler flags"
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
203 flavor data
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
204 no_define
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
205 default_value { "" }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
206 description "
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
207 This option modifies the set of compiler flags for
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
208 building the SPI device. These flags are used in addition
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
209 to the set of global flags."
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
210 }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
211
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
212 cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_REMOVE {
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
213 display "Suppressed compiler flags"
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
214 flavor data
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
215 no_define
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
216 default_value { "" }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
217 description "
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
218 This option modifies the set of compiler flags for
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
219 building the SPI device. These flags are removed from
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
220 the set of global flags if present."
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
221 }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
222 }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
223 }
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
224
6531d33a6737 Added support for SPI on the EB55
asl
parents:
diff changeset
225 # EOF spi_at91.cdl