Updated AT91SAM7 board files by Alexander.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2050 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2010-07-03 07:18:25 +00:00
parent 7f17ad48b2
commit dd8ed26a09
2 changed files with 26 additions and 5 deletions

View File

@ -72,6 +72,7 @@
#define PIOA_USB_PUP_MASK (1 << PIOA_USB_PUP)
#define PIOA_USB_PR 26
#define PIOA_USB_PR_MASK (1 << PIOA_USB_PR)
#define PIOA_CS_MMC 13
#define PIOB_PHY_PD 18
#define PIOB_PHY_PD_MASK (1 << PIOB_PHY_PD)
@ -90,4 +91,13 @@
#define PIOB_PHY_IRQ 26
#define PIOB_PHY_IRQ_MASK (1 << PIOB_PHY_IRQ)
#define MMC_CSR_NUM 1
/*
* SPI0 pins
*/
#define SPI_MISO (1 << 16)
#define SPI_MOSI (1 << 17)
#define SPI_SCK (1 << 18)
#endif /* _BOARD_H_ */

View File

@ -51,10 +51,10 @@
/*
* I/O definitions.
*/
#define PIOA_LED1 18
#define PIOA_LED1_MASK (1 << PIOA_LED1_MASK)
#define PIOA_LED2 17
#define PIOA_LED2_MASK (1 << PIOA_LED2_MASK)
#define PIOA_LED1 18
#define PIOA_LED1_MASK (1 << PIOA_LED1_MASK)
#define PIOA_LED2 17
#define PIOA_LED2_MASK (1 << PIOA_LED2_MASK)
#define PIOA_B1 19
#define PIOA_B1_MASK (1 << PIOA_B1)
#define PIOA_B2 20
@ -64,9 +64,20 @@
#define PIOA_USB_D 26
#define PIOA_USB_D_MASK (1 << PIOA_USB_D)
#define PIOA_MMC_WP 16
#define PIOA_MMC_WP 25
#define PIOA_MMC_WP_MASK (1 << PIOA_MMC_WP)
#define PIOA_MMC_CP 15
#define PIOA_MMC_CP_MASK (1 << PIOA_MMC_CP)
#define PIOA_MMC_NPCS0 11
#define PIOA_MMC_NPCS0_MASK (1 << PIOA_MMC_NPCS0_MASK)
#define MMC_CSR_NUM 0
/*
* SPI pins
*/
#define SPI_MISO (1 << 12)
#define SPI_MOSI (1 << 13)
#define SPI_SCK (1 << 14)
#endif /* _BOARD_H_ */