This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 0ab0a22e156040ebc029abaee4456cb5af5a6523
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Wed May 31 14:54:06 2023 +0200

    hw/mcu/dialog: Fix build for newlib-nano
    
    baselibc used so far may have some unorthodox include files.
    This fixes build by including files that should provide some
    definition/prototypes
---
 hw/mcu/dialog/da1469x/src/da1469x_lpclk.c | 1 +
 hw/mcu/dialog/da1469x/src/da1469x_vbus.c  | 1 +
 hw/mcu/dialog/da1469x/src/hal_gpio.c      | 1 +
 hw/mcu/dialog/da1469x/src/hal_i2c.c       | 1 +
 hw/mcu/dialog/da1469x/src/hal_system.c    | 2 ++
 hw/mcu/dialog/da1469x/src/hal_timer.c     | 1 +
 hw/mcu/dialog/da1469x/src/hal_watchdog.c  | 1 +
 7 files changed, 8 insertions(+)

diff --git a/hw/mcu/dialog/da1469x/src/da1469x_lpclk.c 
b/hw/mcu/dialog/da1469x/src/da1469x_lpclk.c
index a185d9be5..3b603cbf5 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_lpclk.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_lpclk.c
@@ -19,6 +19,7 @@
 
 #include <stdbool.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include "syscfg/syscfg.h"
 #include "mcu/mcu.h"
 #include "mcu/da1469x_clock.h"
diff --git a/hw/mcu/dialog/da1469x/src/da1469x_vbus.c 
b/hw/mcu/dialog/da1469x/src/da1469x_vbus.c
index 22fdd7fd3..2c40a88b4 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_vbus.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_vbus.c
@@ -21,6 +21,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <os/util.h>
+#include <os/os_arch.h>
 #include <mcu/da1469x_vbus.h>
 
 /*
diff --git a/hw/mcu/dialog/da1469x/src/hal_gpio.c 
b/hw/mcu/dialog/da1469x/src/hal_gpio.c
index 00840a489..ca394aeaf 100644
--- a/hw/mcu/dialog/da1469x/src/hal_gpio.c
+++ b/hw/mcu/dialog/da1469x/src/hal_gpio.c
@@ -19,6 +19,7 @@
  */
 
 #include <assert.h>
+#include <stddef.h>
 #include "syscfg/syscfg.h"
 #include "mcu/da1469x_hal.h"
 #include "mcu/da1469x_pd.h"
diff --git a/hw/mcu/dialog/da1469x/src/hal_i2c.c 
b/hw/mcu/dialog/da1469x/src/hal_i2c.c
index 1d6450617..d6983b9c6 100644
--- a/hw/mcu/dialog/da1469x/src/hal_i2c.c
+++ b/hw/mcu/dialog/da1469x/src/hal_i2c.c
@@ -19,6 +19,7 @@
 
 #include <stdint.h>
 #include <stdbool.h>
+#include <stdlib.h>
 #include "syscfg/syscfg.h"
 #include "os/os_time.h"
 #include "mcu/da1469x_pd.h"
diff --git a/hw/mcu/dialog/da1469x/src/hal_system.c 
b/hw/mcu/dialog/da1469x/src/hal_system.c
index 6b2886db0..ebb71ee1e 100644
--- a/hw/mcu/dialog/da1469x/src/hal_system.c
+++ b/hw/mcu/dialog/da1469x/src/hal_system.c
@@ -26,6 +26,8 @@
 #include "mcu/da1469x_pdc.h"
 #include "mcu/da1469x_prail.h"
 #include "hal/hal_system.h"
+#include "hal/hal_debug.h"
+#include "os/os_arch.h"
 #include "os/os_cputime.h"
 
 #if !MYNEWT_VAL(BOOT_LOADER)
diff --git a/hw/mcu/dialog/da1469x/src/hal_timer.c 
b/hw/mcu/dialog/da1469x/src/hal_timer.c
index 6476fa0b3..35f29921a 100644
--- a/hw/mcu/dialog/da1469x/src/hal_timer.c
+++ b/hw/mcu/dialog/da1469x/src/hal_timer.c
@@ -19,6 +19,7 @@
 
 #include <assert.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include "syscfg/syscfg.h"
 #include "mcu/da1469x_hal.h"
 #include "hal/hal_timer.h"
diff --git a/hw/mcu/dialog/da1469x/src/hal_watchdog.c 
b/hw/mcu/dialog/da1469x/src/hal_watchdog.c
index d7c7bbeff..d7e1df88a 100644
--- a/hw/mcu/dialog/da1469x/src/hal_watchdog.c
+++ b/hw/mcu/dialog/da1469x/src/hal_watchdog.c
@@ -18,6 +18,7 @@
  */
 
 #include <assert.h>
+#include <os/mynewt.h>
 #include "hal/hal_watchdog.h"
 #include "mcu/mcu.h"
 

Reply via email to