Skip to content

Commit b5bc128

Browse files
committed
STM32L496 : add QSPI definition
1 parent 4a6bc96 commit b5bc128

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/PeripheralNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ typedef enum {
8686
} CANName;
8787

8888
typedef enum {
89-
QSPI_1 = (int)QSPI_BASE
89+
QSPI_1 = (int)QSPI_R_BASE
9090
} QSPIName;
9191

9292
#ifdef __cplusplus

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/PinNames.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ typedef enum {
346346
QSPI_FLASH1_IO1 = PB_0,
347347
QSPI_FLASH1_IO2 = PA_7,
348348
QSPI_FLASH1_IO3 = PA_6,
349-
QSPI_FLASH1_SCK = PB_11,
350-
QSPI_FLASH1_CSN = PA_3,
349+
QSPI_FLASH1_SCK = PA_3,
350+
QSPI_FLASH1_CSN = PB_11,
351351

352352
// Not connected
353353
NC = (int)0xFFFFFFFF

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/objects.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ struct trng_s {
5858
RNG_HandleTypeDef handle;
5959
};
6060

61+
struct qspi_s {
62+
QSPI_HandleTypeDef handle;
63+
PinName io0;
64+
PinName io1;
65+
PinName io2;
66+
PinName io3;
67+
PinName sclk;
68+
PinName ssel;
69+
};
70+
6171
#include "common_objects.h"
6272

6373
#ifdef __cplusplus

0 commit comments

Comments
 (0)