Add STM32 SPI chip selects
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2110 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
3b0601cd68
commit
1ac8a064f7
@ -69,6 +69,7 @@
|
||||
|
||||
#define GPIO_OUTPUT (1 << 15) /* Bit 15: Output mode */
|
||||
#define GPIO_INPUT (0)
|
||||
#define GPIO_ALTERNATE (0)
|
||||
|
||||
/* These bits set the primary function of the pin:
|
||||
* .... .... .... .... FFF. .... .... ....
|
||||
@ -141,6 +142,14 @@
|
||||
#define GPIO_PIN14 (14 << GPIO_PIN_SHIFT)
|
||||
#define GPIO_PIN15 (15 << GPIO_PIN_SHIFT)
|
||||
|
||||
/* Alternate Pin Functions */
|
||||
/* SPI1 */
|
||||
|
||||
#define GPIO_SPI1_NSS (GPIO_ALTERNATE|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN4)
|
||||
#define GPIO_SPI1_SCK (GPIO_ALTERNATE|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN5)
|
||||
#define GPIO_SPI1_MISO (GPIO_ALTERNATE|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN6)
|
||||
#define GPIO_SPI1_MOSI (GPIO_ALTERNATE|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN7)
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user