1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/esp32*: cleanup of SPI interfaces

SPI0_DEV and SPI1_DEV configuration parameters are renamed SPI0_CTRL and SPI1_CTRL to better describe what they define and to avoid confusion with SPI_DEV (0) and SPI_DEV (1).
This commit is contained in:
Gunar Schorcht 2019-01-09 13:04:28 +01:00
parent 6b045f14b7
commit cb6b7539f4
5 changed files with 14 additions and 14 deletions

View File

@ -120,8 +120,8 @@
*
* @{
*/
#ifndef SPI0_DEV
#define SPI0_DEV VSPI /**< VSPI is used as SPI_DEV(0) */
#ifndef SPI0_CTRL
#define SPI0_CTRL VSPI /**< VSPI is used as SPI_DEV(0) */
#endif
#ifndef SPI0_SCK
#define SPI0_SCK GPIO18 /**< VSPI SCK */

View File

@ -165,8 +165,8 @@ extern "C" {
* function. That is, they are not allocated as SPI signals before and can
* be used for other purposes as long as the SPI interface is not used.
*/
#ifndef SPI0_DEV
#define SPI0_DEV HSPI
#ifndef SPI0_CTRL
#define SPI0_CTRL HSPI
#endif
#ifndef SPI0_SCK

View File

@ -140,8 +140,8 @@
*
* @{
*/
#ifndef SPI0_DEV
#define SPI0_DEV VSPI /**< VSPI is used as SPI_DEV(0) */
#ifndef SPI0_CTRL
#define SPI0_CTRL VSPI /**< VSPI is used as SPI_DEV(0) */
#endif
#ifndef SPI0_SCK
#define SPI0_SCK GPIO18 /**< VSPI SCK */

View File

@ -135,8 +135,8 @@ extern "C" {
* be used for other purposes as long as the SPI interface is not used.
* @{
*/
#ifndef SPI0_DEV
#define SPI0_DEV VSPI /**< VSPI is used as SPI_DEV(0) */
#ifndef SPI0_CTRL
#define SPI0_CTRL VSPI /**< VSPI is used as SPI_DEV(0) */
#endif
#ifndef SPI0_SCK
#define SPI0_SCK GPIO18 /**< VSPI SCK */
@ -151,8 +151,8 @@ extern "C" {
#define SPI0_CS0 GPIO5 /**< VSPI CS0 */
#endif
#ifndef SPI1_DEV
#define SPI1_DEV HSPI /**< HSPI is used as SPI_DEV(1) */
#ifndef SPI1_CTRL
#define SPI1_CTRL HSPI /**< HSPI is used as SPI_DEV(1) */
#endif
#ifndef SPI1_SCK
#define SPI1_SCK GPIO14 /**< HSPI SCK */

View File

@ -146,8 +146,8 @@
* @{
*/
#ifndef SPI0_DEV
#define SPI0_DEV HSPI /**< HSPI is configured as SPI_DEV(0) */
#ifndef SPI0_CTRL
#define SPI0_CTRL HSPI /**< HSPI is configured as SPI_DEV(0) */
#endif
#ifndef SPI0_SCK
@ -174,8 +174,8 @@
* be used for other purposes as long as the SPI interface is not used.
*
*/
#ifndef SPI1_DEV
#define SPI1_DEV VSPI
#ifndef SPI1_CTRL
#define SPI1_CTRL VSPI
#endif
#ifndef SPI1_SCK