STM32L496 : add QSPI definition

pull/9208/head
jeromecoutant 2018-09-26 13:02:50 +02:00 committed by Cruz Monrreal II
parent c0ad4621e0
commit 41cd8b3d10
3 changed files with 13 additions and 3 deletions

View File

@ -86,7 +86,7 @@ typedef enum {
} CANName;
typedef enum {
QSPI_1 = (int)QSPI_BASE
QSPI_1 = (int)QSPI_R_BASE
} QSPIName;
#ifdef __cplusplus

View File

@ -346,8 +346,8 @@ typedef enum {
QSPI_FLASH1_IO1 = PB_0,
QSPI_FLASH1_IO2 = PA_7,
QSPI_FLASH1_IO3 = PA_6,
QSPI_FLASH1_SCK = PB_11,
QSPI_FLASH1_CSN = PA_3,
QSPI_FLASH1_SCK = PA_3,
QSPI_FLASH1_CSN = PB_11,
// Not connected
NC = (int)0xFFFFFFFF

View File

@ -58,6 +58,16 @@ struct trng_s {
RNG_HandleTypeDef handle;
};
struct qspi_s {
QSPI_HandleTypeDef handle;
PinName io0;
PinName io1;
PinName io2;
PinName io3;
PinName sclk;
PinName ssel;
};
#include "common_objects.h"
#ifdef __cplusplus