Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 9d0b1d490 -> b455cb0bf
Remove duplicate ble ll data from apps. Several apps redefined data which is present in the controller. This used to be necessary a while back, but this data has since been moved to the controller. 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/d6d56399 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d6d56399 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d6d56399 Branch: refs/heads/develop Commit: d6d56399948dc7db9efa4260ea13b28666aa0627 Parents: 9d0b1d4 Author: Christopher Collins <[email protected]> Authored: Thu Dec 29 17:14:06 2016 -0800 Committer: Christopher Collins <[email protected]> Committed: Thu Dec 29 17:14:06 2016 -0800 ---------------------------------------------------------------------- apps/blecent/src/main.c | 6 ------ apps/bletest/src/main.c | 6 ------ apps/bletiny/src/main.c | 9 --------- apps/bleuart/src/main.c | 6 ------ 4 files changed, 27 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6d56399/apps/blecent/src/main.c ---------------------------------------------------------------------- diff --git a/apps/blecent/src/main.c b/apps/blecent/src/main.c index 73be9bf..c3d2c32 100755 --- a/apps/blecent/src/main.c +++ b/apps/blecent/src/main.c @@ -50,12 +50,6 @@ struct os_eventq blecent_evq; struct os_task blecent_task; bssnz_t os_stack_t blecent_stack[BLECENT_STACK_SIZE]; -/** Our global device address (public) */ -uint8_t g_dev_addr[BLE_DEV_ADDR_LEN] = {0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c}; - -/** Our random address (in case we need it) */ -uint8_t g_random_addr[BLE_DEV_ADDR_LEN]; - static int blecent_gap_event(struct ble_gap_event *event, void *arg); /** http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6d56399/apps/bletest/src/main.c ---------------------------------------------------------------------- diff --git a/apps/bletest/src/main.c b/apps/bletest/src/main.c index 6c6cd88..5a3627e 100755 --- a/apps/bletest/src/main.c +++ b/apps/bletest/src/main.c @@ -58,12 +58,6 @@ /* For LED toggling */ int g_led_pin; -/* Our global device address (public) */ -uint8_t g_dev_addr[BLE_DEV_ADDR_LEN]; - -/* Our random address (in case we need it) */ -uint8_t g_random_addr[BLE_DEV_ADDR_LEN]; - /* A buffer for host advertising data */ uint8_t g_host_adv_data[BLE_HCI_MAX_ADV_DATA_LEN]; uint8_t g_host_adv_len; http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6d56399/apps/bletiny/src/main.c ---------------------------------------------------------------------- diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c index 8234ace..52bc989 100755 --- a/apps/bletiny/src/main.c +++ b/apps/bletiny/src/main.c @@ -61,15 +61,6 @@ #include "../src/ble_hs_atomic_priv.h" #include "../src/ble_hs_hci_priv.h" -/* Our global device address (public) */ -uint8_t g_dev_addr[BLE_DEV_ADDR_LEN] = {0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a}; - -/* Our random address (in case we need it) */ -uint8_t g_random_addr[BLE_DEV_ADDR_LEN]; - -/* A buffer for host advertising data */ -uint8_t g_host_adv_len; - /* BLETINY variables */ #define BLETINY_STACK_SIZE (OS_STACK_ALIGN(512)) #define BLETINY_TASK_PRIO 1 http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6d56399/apps/bleuart/src/main.c ---------------------------------------------------------------------- diff --git a/apps/bleuart/src/main.c b/apps/bleuart/src/main.c index 9772026..fa559fc 100755 --- a/apps/bleuart/src/main.c +++ b/apps/bleuart/src/main.c @@ -60,12 +60,6 @@ struct os_eventq bleuart_evq; struct os_task bleuart_task; bssnz_t os_stack_t bleuart_stack[bleuart_STACK_SIZE]; -/** Our global device address (public) */ -uint8_t g_dev_addr[BLE_DEV_ADDR_LEN] = {0xba, 0xaa, 0xad, 0xba, 0xaa, 0xad}; - -/** Our random address (in case we need it) */ -uint8_t g_random_addr[BLE_DEV_ADDR_LEN]; - static int bleuart_gap_event(struct ble_gap_event *event, void *arg); /**
