Mercurial > ecos-v3_0-branch
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 |
| rev | line source |
|---|---|
| 1794 | 1 # ==================================================================== |
| 2 # | |
| 3 # spi_at91.cdl | |
| 4 # | |
| 5 # Atmel AT91 (ARM) SPI driver configuration data | |
| 6 # | |
| 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 | 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 | 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 | 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 | 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 | 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 | 39 # ==================================================================== |
| 40 ######DESCRIPTIONBEGIN#### | |
| 41 # | |
| 42 # Author(s): Savin Zlobec <savin@elatec.si> | |
| 43 # Date: 2004-08-25 | |
| 44 # | |
| 45 #####DESCRIPTIONEND#### | |
| 46 # | |
| 47 # ==================================================================== | |
| 48 | |
| 49 cdl_package CYGPKG_DEVS_SPI_ARM_AT91 { | |
| 50 parent CYGPKG_IO_SPI | |
| 51 active_if CYGPKG_IO_SPI | |
| 52 display "Atmel AT91 SPI driver" | |
| 2792 | 53 requires CYGPKG_HAL_ARM_AT91 |
| 54 requires CYGPKG_ERROR | |
| 1794 | 55 hardware |
| 56 include_dir cyg/io | |
| 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 | 59 |
| 60 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0 { | |
| 61 display "Enable support for SPI bus 0" | |
| 62 flavor bool | |
| 63 default_value 1 | |
| 64 description "Enable this option to add support for the first | |
| 65 SPI peripheral. The most AT91 devices only have one bus" | |
| 66 } | |
| 67 | |
| 68 cdl_interface CYGINT_DEVS_SPI_ARM_AT91_HAS_BUS1 { | |
| 69 description " | |
| 70 This interface is implemented by HALs for devices which have | |
| 71 the second SPI bus controller." | |
| 72 } | |
| 73 | |
| 74 | |
| 75 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1 { | |
| 76 active_if CYGINT_DEVS_SPI_ARM_AT_HAS_BUS1 | |
| 77 display "Enable support for SPI bus 1" | |
| 1794 | 78 flavor bool |
| 79 default_value 0 | |
| 2220 | 80 description "Enable this option to add support for the second |
| 81 SPI peripheral. The most AT91 devices only have one bus" | |
| 1794 | 82 } |
| 2220 | 83 |
| 84 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS0_CFG { | |
| 85 active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS0 | |
| 86 display "Configuration options for SPI Bus 0" | |
| 87 flavor none | |
| 88 description "This is the configuration options for SPI Bus 0" | |
| 89 | |
| 90 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0_PCSDEC { | |
| 91 display "Support 4 to 16 decoder of chip select signals." | |
| 92 flavor bool | |
| 93 default_value 0 | |
| 94 description "Enable this option if SPI peripheral chip | |
| 95 selects are connected through an 4 to 16 decoder." | |
| 96 } | |
| 97 | |
| 98 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS0 { | |
| 99 display "PIO-Pin used for NPSC0" | |
| 100 flavor data | |
| 101 default_value {"AT91_SPI_NPCS0"} | |
| 102 description "Any GPIO pin is able to be used as the SPI driver | |
| 103 uses GPIO to control the chip selects. Specify the pin | |
| 104 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 105 \"NONE\" if this chip select is to be disabled" | |
| 106 } | |
| 107 | |
| 108 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS1 { | |
| 109 display "PIO-Pin used for NPSC1" | |
| 110 flavor data | |
| 111 default_value {"AT91_SPI_NPCS1"} | |
| 112 description "Any GPIO pin is able to be used as the SPI driver | |
| 113 uses GPIO to control the chip selects. Specify the pin | |
| 114 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 115 \"NONE\" if this chip select is to be disabled" | |
| 116 } | |
| 117 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS2 { | |
| 118 display "PIO-Pin used for NPSC2" | |
| 119 flavor data | |
| 120 default_value {"AT91_SPI_NPCS2"} | |
| 121 description "Any GPIO pin is able to be used as the SPI driver | |
| 122 uses GPIO to control the chip selects. Specify the pin | |
| 123 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 124 \"NONE\" if this chip select is to be disabled" | |
| 125 } | |
| 126 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS3 { | |
| 127 display "PIO-Pin used for NPSC3" | |
| 128 flavor data | |
| 129 default_value {"AT91_SPI_NPCS3"} | |
| 130 description "Any GPIO pin is able to be used as the SPI driver | |
| 131 uses GPIO to control the chip selects. Specify the pin | |
| 132 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 133 \"NONE\" if this chip select is to be disabled" | |
| 134 } | |
| 135 | |
| 136 } | |
| 137 | |
| 138 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS1_CFG { | |
| 139 active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS1 | |
| 140 display "Configuration options for SPI Bus 1" | |
| 141 flavor none | |
| 142 description "This is the configuration options for SPI Bus 1" | |
| 143 | |
| 144 cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1_PCSDEC { | |
| 145 display "Support 4 to 16 decoder of chip select signals." | |
| 146 flavor bool | |
| 147 default_value 0 | |
| 148 description "Enable this option if SPI peripheral chip | |
| 149 selects are connected through an 4 to 16 decoder." | |
| 150 } | |
| 151 | |
| 152 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS0 { | |
| 153 display "PIO-Pin used for NPSC0" | |
| 154 flavor data | |
| 155 default_value {"AT91_SPI1_NPCS0"} | |
| 156 description "Any GPIO pin is able to be used as the SPI driver | |
| 157 uses GPIO to control the chip selects. Specify the pin | |
| 158 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 159 \"NONE\" if this chip select is to be disabled" | |
| 160 } | |
| 161 | |
| 162 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS1 { | |
| 163 display "PIO-Pin used for NPSC1" | |
| 164 flavor data | |
| 165 default_value {"AT91_SPI1_NPCS1"} | |
| 166 description "Any GPIO pin is able to be used as the SPI driver | |
| 167 uses GPIO to control the chip selects. Specify the pin | |
| 168 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 169 \"NONE\" if this chip select is to be disabled" | |
| 170 } | |
| 171 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS2 { | |
| 172 display "PIO-Pin used for NPSC2" | |
| 173 flavor data | |
| 174 default_value {"AT91_SPI1_NPCS2"} | |
| 175 description "Any GPIO pin is able to be used as the SPI driver | |
| 176 uses GPIO to control the chip selects. Specify the pin | |
| 177 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 178 \"NONE\" if this chip select is to be disabled" | |
| 179 } | |
| 180 cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS3 { | |
| 181 display "PIO-Pin used for NPSC3" | |
| 182 flavor data | |
| 183 default_value {"AT91_SPI1_NPCS3"} | |
| 184 description "Any GPIO pin is able to be used as the SPI driver | |
| 185 uses GPIO to control the chip selects. Specify the pin | |
| 186 as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify | |
| 187 \"NONE\" if this chip select is to be disabled" | |
| 188 } | |
| 189 | |
| 190 } | |
| 191 | |
| 1794 | 192 |
| 193 cdl_component CYGPKG_DEVS_SPI_ARM_AT91_OPTIONS { | |
| 194 display "Atmel AT91 SPI driver build options" | |
| 195 flavor none | |
| 196 description " | |
| 197 Package specific build options including control over | |
| 198 compiler flags used only in building this package, | |
| 199 and details of which tests are built." | |
| 200 | |
| 201 cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_ADD { | |
| 202 display "Additional compiler flags" | |
| 203 flavor data | |
| 204 no_define | |
| 205 default_value { "" } | |
| 206 description " | |
| 207 This option modifies the set of compiler flags for | |
| 208 building the SPI device. These flags are used in addition | |
| 209 to the set of global flags." | |
| 210 } | |
| 211 | |
| 212 cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_REMOVE { | |
| 213 display "Suppressed compiler flags" | |
| 214 flavor data | |
| 215 no_define | |
| 216 default_value { "" } | |
| 217 description " | |
| 218 This option modifies the set of compiler flags for | |
| 219 building the SPI device. These flags are removed from | |
| 220 the set of global flags if present." | |
| 221 } | |
| 222 } | |
| 223 } | |
| 224 | |
| 225 # EOF spi_at91.cdl |
