X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-redboot.git;a=blobdiff_plain;f=packages%2Fdevs%2Fspi%2Farm%2Fat91%2Fv2_0%2Finclude%2Fspi_at91.h;h=c8f4645baa72e1b2a8f5bbe81d250e425b6e2a68;hp=f3fde11b7d30df28c8a0a04991826e772f76507d;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hpb=f0c1bd5d9f8457be4a43912a28ca2df207a7f5a4 diff --git a/packages/devs/spi/arm/at91/v2_0/include/spi_at91.h b/packages/devs/spi/arm/at91/v2_0/include/spi_at91.h index f3fde11b..c8f4645b 100644 --- a/packages/devs/spi/arm/at91/v2_0/include/spi_at91.h +++ b/packages/devs/spi/arm/at91/v2_0/include/spi_at91.h @@ -72,7 +72,11 @@ typedef struct cyg_spi_at91_bus_s cyg_drv_mutex_t transfer_mx; // Transfer mutex cyg_drv_cond_t transfer_cond; // Transfer condition cyg_bool transfer_end; // Transfer end flag - cyg_bool cs_up; // Chip Select up flag + cyg_bool cs_up; // Chip Select up flag + cyg_vector_t interrupt_number; // SPI Interrupt Number + cyg_addrword_t base; // Base Address of the SPI peripheral + cyg_uint8 cs_en[4]; // The Configurations state for the CS + cyg_uint32 cs_gpio[4]; // The GPIO Configurations for the CS } cyg_spi_at91_bus_t; //----------------------------------------------------------------------------- @@ -102,9 +106,13 @@ typedef struct cyg_spi_at91_device_s } cyg_spi_at91_device_t; //----------------------------------------------------------------------------- -// AT91 SPI exported bus +// AT91 SPI exported busses -externC cyg_spi_at91_bus_t cyg_spi_at91_bus; +/* For backwards compatability */ +#define cyg_spi_at91_bus cyg_spi_at91_bus0 + +externC cyg_spi_at91_bus_t cyg_spi_at91_bus0; +externC cyg_spi_at91_bus_t cyg_spi_at91_bus1; //-----------------------------------------------------------------------------