nrf5/hal: Updating hal QSPI header with define guard to filter out usage of undefined structures and names when compiling against non-52840 targets.

This commit is contained in:
Glenn Ruben Bakke 2017-01-26 22:10:36 +01:00
parent b4d53ad560
commit 0b0cb19608

View File

@ -27,6 +27,8 @@
#ifndef HAL_QSPIE_H__
#define HAL_QSPIE_H__
#ifdef HAL_QSPIE_MODULE_ENABLED
#if NRF52840_XXAA
#include <nrf.h>
@ -60,7 +62,7 @@ typedef enum {
typedef enum {
HAL_QSPI_DATA_LINE_SINGLE,
HAL_QSPI_DATA_LINE_DUAL,
HAL_QSPI_DATA_LINE_QUAL
HAL_QSPI_DATA_LINE_QUAD
} hal_qspi_data_line_t;
@ -103,4 +105,6 @@ void hal_qspi_master_tx_rx(NRF_QSPI_Type * p_instance,
const uint8_t * tx_data,
uint8_t * rx_data);
#endif // HAL_QSPIE_MODULE_ENABLED
#endif // HAL_QSPIE_H__