From f4940c9aec2ac73086efe18fbc57151f55c85981 Mon Sep 17 00:00:00 2001 From: arturo182 Date: Mon, 16 Jul 2018 14:44:20 +0200 Subject: nrf: Move the UUID class from ubluepy to the shared bleio module Also added a UUIDType enum-like class for determining UUID type. --- ports/nrf/drivers/bluetooth/ble_uart.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ports/nrf/drivers/bluetooth/ble_uart.c') diff --git a/ports/nrf/drivers/bluetooth/ble_uart.c b/ports/nrf/drivers/bluetooth/ble_uart.c index 52c042f7b..b1d54eefa 100644 --- a/ports/nrf/drivers/bluetooth/ble_uart.c +++ b/ports/nrf/drivers/bluetooth/ble_uart.c @@ -34,21 +34,21 @@ #if MICROPY_PY_BLE_NUS -static ubluepy_uuid_obj_t uuid_obj_service = { - .base.type = &ubluepy_uuid_type, - .type = UBLUEPY_UUID_128_BIT, +static bleio_uuid_obj_t uuid_obj_service = { + .base.type = &bleio_uuid_type, + .type = UUID_128_BIT, .value = {0x01, 0x00} }; -static ubluepy_uuid_obj_t uuid_obj_char_tx = { - .base.type = &ubluepy_uuid_type, - .type = UBLUEPY_UUID_128_BIT, +static bleio_uuid_obj_t uuid_obj_char_tx = { + .base.type = &bleio_uuid_type, + .type = UUID_128_BIT, .value = {0x03, 0x00} }; -static ubluepy_uuid_obj_t uuid_obj_char_rx = { - .base.type = &ubluepy_uuid_type, - .type = UBLUEPY_UUID_128_BIT, +static bleio_uuid_obj_t uuid_obj_char_rx = { + .base.type = &bleio_uuid_type, + .type = UUID_128_BIT, .value = {0x02, 0x00} }; -- cgit v1.2.3