Rename macro and move to HAL

This commit is contained in:
George Oikonomou 2018-03-02 19:29:46 +00:00 committed by Xenofon (Fontas) Fafoutis
parent 0695810044
commit f6f0c15421
6 changed files with 18 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
*