mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
msb-430: add missing SPI periph_conf definitions
This commit is contained in:
parent
c9dcb160bd
commit
d339a84059
@ -66,6 +66,26 @@ extern "C" {
|
||||
#define UART_TX_ISR (USART1TX_VECTOR)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief SPI configuration
|
||||
* @{
|
||||
*/
|
||||
#define SPI_NUMOF (1U)
|
||||
#define SPI_0_EN (1U)
|
||||
|
||||
/* SPI configuration */
|
||||
#define SPI_DEV (USART_0)
|
||||
#define SPI_IE (SFR->IE1)
|
||||
#define SPI_IF (SFR->IFG1)
|
||||
#define SPI_IE_RX_BIT (1 << 6)
|
||||
#define SPI_IE_TX_BIT (1 << 7)
|
||||
#define SPI_ME (SFR->ME1)
|
||||
#define SPI_ME_BIT (1 << 6)
|
||||
#define SPI_PIN_MISO GPIO(P5,2)
|
||||
#define SPI_PIN_MOSI GPIO(P5,1)
|
||||
#define SPI_PIN_CLK GPIO(P5,3)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user