Rename macro and move to HAL
This commit is contained in:
parent
0695810044
commit
f6f0c15421
@ -109,7 +109,7 @@
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define EXT_FLASH_SPI_CONTROLLER BOARD_SPI_CONTROLLER_SPI0
|
||||
#define EXT_FLASH_SPI_CONTROLLER SPI_CONTROLLER_SPI0
|
||||
|
||||
#define BOARD_IOID_FLASH_SCK IOID_10
|
||||
#define BOARD_IOID_FLASH_MOSI IOID_9
|
||||
|
@ -109,7 +109,7 @@
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define EXT_FLASH_SPI_CONTROLLER BOARD_SPI_CONTROLLER_SPI0
|
||||
#define EXT_FLASH_SPI_CONTROLLER SPI_CONTROLLER_SPI0
|
||||
|
||||
#define BOARD_IOID_FLASH_SCK IOID_10
|
||||
#define BOARD_IOID_FLASH_MOSI IOID_9
|
||||
|
@ -109,7 +109,7 @@
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define EXT_FLASH_SPI_CONTROLLER BOARD_SPI_CONTROLLER_SPI0
|
||||
#define EXT_FLASH_SPI_CONTROLLER SPI_CONTROLLER_SPI0
|
||||
|
||||
#define BOARD_IOID_FLASH_SCK IOID_10
|
||||
#define BOARD_IOID_FLASH_MOSI IOID_9
|
||||
|
@ -135,7 +135,7 @@
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define EXT_FLASH_SPI_CONTROLLER BOARD_SPI_CONTROLLER_SPI0
|
||||
#define EXT_FLASH_SPI_CONTROLLER SPI_CONTROLLER_SPI0
|
||||
|
||||
#define BOARD_IOID_FLASH_SCK IOID_17
|
||||
#define BOARD_IOID_FLASH_MOSI IOID_19
|
||||
|
@ -137,7 +137,7 @@
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define EXT_FLASH_SPI_CONTROLLER BOARD_SPI_CONTROLLER_SPI0
|
||||
#define EXT_FLASH_SPI_CONTROLLER SPI_CONTROLLER_SPI0
|
||||
|
||||
#define BOARD_IOID_FLASH_SCK IOID_17
|
||||
#define BOARD_IOID_FLASH_MOSI IOID_19
|
||||
|
@ -57,10 +57,21 @@
|
||||
/* Include Arch-Specific conf */
|
||||
#ifdef SPI_HAL_CONF_ARCH_HDR_PATH
|
||||
#include SPI_HAL_CONF_ARCH_HDR_PATH
|
||||
#else /* PLATFORM_IMPLEMENTS_SPI_HAL */
|
||||
#define BOARD_SPI_CONTROLLERS 0
|
||||
#endif /* SPI_HAL_CONF_ARCH_HDR_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef SPI_CONF_CONTROLLER_COUNT
|
||||
/**
|
||||
* \brief Number of SPI module instances on a chip
|
||||
*/
|
||||
#define SPI_CONTROLLER_COUNT SPI_CONF_CONTROLLER_COUNT
|
||||
#else
|
||||
#define SPI_CONTROLLER_COUNT 0
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Convenience macros to enumerate SPI module instances on a chip */
|
||||
#define SPI_CONTROLLER_SPI0 0
|
||||
#define SPI_CONTROLLER_SPI1 1
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \brief SPI return codes
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user