You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/05/20 16:54:12 UTC
[2/2] incubator-mynewt-core git commit: hal/bsp;
add hal_bsp.h, which exports common BSP APIs.
hal/bsp; add hal_bsp.h, which exports common BSP APIs.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/4660d907
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4660d907
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4660d907
Branch: refs/heads/develop
Commit: 4660d907587ff00d4a9c36d9357e4e32bb2cf179
Parents: fd1c853
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri May 20 09:53:54 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri May 20 09:53:54 2016 -0700
----------------------------------------------------------------------
hw/bsp/nrf51-arduino_101/include/bsp/bsp.h | 2 --
hw/bsp/nrf51-arduino_101/src/libc_stubs.c | 1 -
hw/bsp/nrf51-arduino_101/src/os_bsp.c | 2 +-
3 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4660d907/hw/bsp/nrf51-arduino_101/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51-arduino_101/include/bsp/bsp.h b/hw/bsp/nrf51-arduino_101/include/bsp/bsp.h
index 4414bec..b931282 100644
--- a/hw/bsp/nrf51-arduino_101/include/bsp/bsp.h
+++ b/hw/bsp/nrf51-arduino_101/include/bsp/bsp.h
@@ -40,8 +40,6 @@ extern uint8_t _ram_start;
/* UART info */
#define CONSOLE_UART 0
-int bsp_imgr_current_slot(void);
-
#define NFFS_AREA_MAX (8)
#ifdef __cplusplus
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4660d907/hw/bsp/nrf51-arduino_101/src/libc_stubs.c
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51-arduino_101/src/libc_stubs.c b/hw/bsp/nrf51-arduino_101/src/libc_stubs.c
index d880d32..f9bb5a9 100644
--- a/hw/bsp/nrf51-arduino_101/src/libc_stubs.c
+++ b/hw/bsp/nrf51-arduino_101/src/libc_stubs.c
@@ -19,7 +19,6 @@
#include <hal/hal_system.h>
-void * _sbrk(int c);
int _close(int fd);
int _fstat(int fd, void *s);
void _exit(int s);
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4660d907/hw/bsp/nrf51-arduino_101/src/os_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51-arduino_101/src/os_bsp.c b/hw/bsp/nrf51-arduino_101/src/os_bsp.c
index 888519b..116840f 100644
--- a/hw/bsp/nrf51-arduino_101/src/os_bsp.c
+++ b/hw/bsp/nrf51-arduino_101/src/os_bsp.c
@@ -17,6 +17,7 @@
* under the License.
*/
#include <hal/flash_map.h>
+#include <hal/hal_bsp.h>
#include "bsp/cmsis_nvic.h"
#include "mcu/nrf51.h"
#include "mcu/nrf51_bitfields.h"
@@ -52,7 +53,6 @@ static struct flash_area bsp_flash_areas[] = {
}
};
-void *_sbrk(int incr);
void _close(int fd);
/*