QSPI: fix address/alt variable sizes (can be skipped)

Fixing by adding NONE values for both
pull/7783/head
Martin Kojtal 2017-11-07 14:31:24 +00:00 committed by Maciej Bocianski
parent b3037afae4
commit 510d743051
1 changed files with 4 additions and 2 deletions

View File

@ -49,6 +49,7 @@ typedef enum qspi_bus_width {
/** Address size
*/
typedef enum qspi_address_size {
QSPI_CFG_ADDR_SIZE_NONE,
QSPI_CFG_ADDR_SIZE_8,
QSPI_CFG_ADDR_SIZE_16,
QSPI_CFG_ADDR_SIZE_24,
@ -58,6 +59,7 @@ typedef enum qspi_address_size {
/** Alternative size
*/
typedef enum qspi_alt_size {
QSPI_CFG_ALT_SIZE_NONE,
QSPI_CFG_ALT_SIZE_8,
QSPI_CFG_ALT_SIZE_16,
QSPI_CFG_ALT_SIZE_24,
@ -71,12 +73,12 @@ typedef enum qspi_alt_size {
typedef struct qspi_command {
struct instruction {
qspi_bus_width_t bus_width; /**< Bus width for the instruction >*/
uint8_t value; /**< Instruction, 0 - disabled, non-zero defined value used >*/
uint8_t value; /**< Instruction value >*/
};
struct address {
qspi_bus_width_t bus_width; /**< Bus width for the address >*/
qspi_address_size_t size; /**< Address size >*/
uint32_t value; /**< Address, 0 - disabled, non-zero defined value used >*/
uint32_t value; /**< Address value >*/
};
struct alt {
qspi_bus_width_t bus_width; /**< Bus width for alternative >*/