From 0b0cb196083e4171468dda2cca37c822a2e11b9f Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 26 Jan 2017 22:10:36 +0100 Subject: [PATCH] nrf5/hal: Updating hal QSPI header with define guard to filter out usage of undefined structures and names when compiling against non-52840 targets. --- nrf5/hal/hal_qspie.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nrf5/hal/hal_qspie.h b/nrf5/hal/hal_qspie.h index 99c1c4cee9..85b9a6021f 100644 --- a/nrf5/hal/hal_qspie.h +++ b/nrf5/hal/hal_qspie.h @@ -27,6 +27,8 @@ #ifndef HAL_QSPIE_H__ #define HAL_QSPIE_H__ +#ifdef HAL_QSPIE_MODULE_ENABLED + #if NRF52840_XXAA #include @@ -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__