You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/11/08 19:58:50 UTC

[mynewt-core] branch master updated: mcu/danube: Fix build errors

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


The following commit(s) were added to refs/heads/master by this push:
     new 036203a  mcu/danube: Fix build errors
036203a is described below

commit 036203a13b5b6a671079095893249aa6c408af63
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Nov 7 10:36:32 2019 +0100

    mcu/danube: Fix build errors
    
    MYNEWT_VAL definition was missing due to lack on os/mynewt.h
    
    timer_handler() was used before it was defined without
    forward declaration.
---
 hw/mcu/mips/danube/src/hal_system.c    | 1 +
 kernel/os/src/arch/mips/os_arch_mips.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/hw/mcu/mips/danube/src/hal_system.c b/hw/mcu/mips/danube/src/hal_system.c
index 5fad8a0..5883712 100644
--- a/hw/mcu/mips/danube/src/hal_system.c
+++ b/hw/mcu/mips/danube/src/hal_system.c
@@ -17,6 +17,7 @@
  * under the License.
  */
 
+#include "os/mynewt.h"
 #include "hal/hal_system.h"
 
 #include <stdint.h>
diff --git a/kernel/os/src/arch/mips/os_arch_mips.c b/kernel/os/src/arch/mips/os_arch_mips.c
index 19cf52b..da12ed9 100644
--- a/kernel/os/src/arch/mips/os_arch_mips.c
+++ b/kernel/os/src/arch/mips/os_arch_mips.c
@@ -38,6 +38,8 @@ uint32_t os_flags = OS_RUN_PRIV;
 
 extern struct os_task g_idle_task;
 
+void timer_handler(void);
+
 /* core timer interrupt */
 void __attribute__((interrupt, keep_interrupts_masked))
 _mips_isr_hw5(void)