From 93cfdcc3ba0b97e34165dc426a9123d77dbbc1e1 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Wed, 15 May 2024 21:05:20 -0600 Subject: [PATCH] add tinycrypt --- app/prj.conf | 3 +++ app/src/main.c | 4 ++-- boards/bh/mellifera_rev1/mellifera_rev1.yaml | 17 ----------------- west.yml | 1 + 4 files changed, 6 insertions(+), 19 deletions(-) diff --git a/app/prj.conf b/app/prj.conf index f87ca25..a466248 100644 --- a/app/prj.conf +++ b/app/prj.conf @@ -19,6 +19,9 @@ CONFIG_CHARACTER_FRAMEBUFFER=y CONFIG_CBPRINTF_FP_SUPPORT=y CONFIG_BT=y +CONFIG_BT_SMP=y +CONFIG_BT_PERIPHERAL=y +CONFIG_BT_GATT_CLIENT=y CONFIG_BT_DEVICE_NAME="Mellifera" CONFIG_BOOTLOADER_MCUBOOT=y diff --git a/app/src/main.c b/app/src/main.c index 14753cd..f148cff 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -60,7 +60,7 @@ static void bt_ready(int err) LOG_INF("Bluetooth initialized"); - /* Start advertising */ + // Start advertising err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err) @@ -98,7 +98,7 @@ int main(void) LOG_INF("Starting Beacon Demo"); - /* Initialize the Bluetooth Subsystem */ + // Initialize the Bluetooth Subsystem err = bt_enable(bt_ready); if (err) { diff --git a/boards/bh/mellifera_rev1/mellifera_rev1.yaml b/boards/bh/mellifera_rev1/mellifera_rev1.yaml index 638ae00..6578c49 100644 --- a/boards/bh/mellifera_rev1/mellifera_rev1.yaml +++ b/boards/bh/mellifera_rev1/mellifera_rev1.yaml @@ -1,22 +1,5 @@ -# Copyright (c) 2021 Nordic Semiconductor ASA -# SPDX-License-Identifier: Apache-2.0 - identifier: mellifera_rev1 name: Mellifera-Rev1 -# vendor: bh -# type: mcu -# arch: arm -# ram: 256 -# flash: 1024 -# toolchain: -# - zephyr -# - gnuarmemb -# - xtools -# supported: -# - gpio - -# identifier: nrf52dk/nrf52832 -# name: nRF52-DK-NRF52832 type: mcu arch: arm toolchain: diff --git a/west.yml b/west.yml index 13c8dbe..be2ed57 100644 --- a/west.yml +++ b/west.yml @@ -24,6 +24,7 @@ manifest: - hal_nordic # required by the custom_plank board (Nordic based) - hal_stm32 # required by the nucleo_f302r8 board (STM32 based) - zcbor # required by mcuboot serial + - tinycrypt - name: mcuboot remote: mcu-tools revision: main