Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 0c2d1042f -> cc574dd19
Fix tests - removing accel support from sim 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/cc574dd1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/cc574dd1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/cc574dd1 Branch: refs/heads/develop Commit: cc574dd19e7a64610b5eef88c259681cbea801d0 Parents: 0c2d104 Author: Vipul Rahane <[email protected]> Authored: Fri Feb 24 12:54:15 2017 -0800 Committer: Vipul Rahane <[email protected]> Committed: Fri Feb 24 12:54:15 2017 -0800 ---------------------------------------------------------------------- hw/bsp/native/src/hal_bsp.c | 13 ------------- 1 file changed, 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/cc574dd1/hw/bsp/native/src/hal_bsp.c ---------------------------------------------------------------------- diff --git a/hw/bsp/native/src/hal_bsp.c b/hw/bsp/native/src/hal_bsp.c index 8ef4b6a..5f14e1e 100644 --- a/hw/bsp/native/src/hal_bsp.c +++ b/hw/bsp/native/src/hal_bsp.c @@ -30,11 +30,8 @@ #include "uart_hal/uart_hal.h" #include "mcu/native_bsp.h" #include "mcu/mcu_hal.h" -#include "sensor/sensor.h" -#include "sim/sim_accel.h" static struct uart_dev os_bsp_uart0; -struct sim_accel sim_accel_sensor; const struct hal_flash * hal_bsp_flash_dev(uint8_t id) @@ -54,21 +51,11 @@ hal_bsp_power_state(int state) return (0); } -static int -slinky_sim_accel_init(struct os_dev *dev, void *arg) -{ - return (0); -} - void hal_bsp_init(void) { int rc; - rc = os_dev_create((struct os_dev *) &sim_accel_sensor, "simaccel0", - OS_DEV_INIT_KERNEL, OS_DEV_INIT_PRIMARY, slinky_sim_accel_init, NULL); - assert(rc == 0); - rc = os_dev_create((struct os_dev *) &os_bsp_uart0, "uart0", OS_DEV_INIT_PRIMARY, 0, uart_hal_init, (void *) NULL); assert(rc == 0);
