You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2020/03/06 00:48:28 UTC
[mynewt-core] branch master updated: da1469x/hal_flash: Add missing
include (#2230)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 47b257e da1469x/hal_flash: Add missing include (#2230)
47b257e is described below
commit 47b257ec5eb60fbc187737c25b0e388ef5bd2076
Author: Vipul Rahane <vi...@apache.org>
AuthorDate: Thu Mar 5 16:48:22 2020 -0800
da1469x/hal_flash: Add missing include (#2230)
---
hw/mcu/dialog/da1469x/src/hal_flash.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/dialog/da1469x/src/hal_flash.c b/hw/mcu/dialog/da1469x/src/hal_flash.c
index a4cf444..5d19908 100644
--- a/hw/mcu/dialog/da1469x/src/hal_flash.c
+++ b/hw/mcu/dialog/da1469x/src/hal_flash.c
@@ -24,6 +24,7 @@
#include "mcu/da1469x_hal.h"
#include "hal/hal_flash_int.h"
#include "mcu/mcu.h"
+#include <stdbool.h>
#define CODE_QSPI_INLINE __attribute__((always_inline)) inline
@@ -330,9 +331,9 @@ da1469x_hff_in_flash_addr_space(const void *src)
* Due to the remap specified in the datasheet, 0->0x80000 (8 MBytes) are
* remapped, hence that needs to be considered as well.
*/
- if ((((uint32_t)src < MCU_MEM_QSPIF_M_START_ADDRESS) &&
+ if ((((uint32_t)src < MCU_MEM_QSPIF_M_START_ADDRESS) &&
((uint32_t)src >= MCU_MEM_QSPIF_M_END_REMAP_ADDRESS)) ||
- ((uint32_t)src >= MCU_MEM_QSPIF_M_END_ADDRESS)) {
+ ((uint32_t)src >= MCU_MEM_QSPIF_M_END_ADDRESS)) {
return false;
}