From 0cec242b70c84777d13f17c02563a5082c66bd06 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 25 Nov 2020 21:55:57 +0100 Subject: [PATCH] msp432p401lp-cc256x: enable btstack_assert --- port/msp432p401lp-cc256x/btstack_config.h | 10 +++++----- port/msp432p401lp-cc256x/main.c | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/port/msp432p401lp-cc256x/btstack_config.h b/port/msp432p401lp-cc256x/btstack_config.h index 3765537a7..1a981e986 100644 --- a/port/msp432p401lp-cc256x/btstack_config.h +++ b/port/msp432p401lp-cc256x/btstack_config.h @@ -1,5 +1,5 @@ // -// btstack_config.h for STM32F103RB Nucleo + TI CC256B port +// btstack_config.h for MSP432P401R + TI CC256B port // #ifndef __BTSTACK_CONFIG @@ -10,15 +10,15 @@ // BTstack features that can be enabled #define ENABLE_BLE +#define ENABLE_BTSTACK_ASSERT +#define ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND +#define ENABLE_CLASSIC #define ENABLE_LE_PERIPHERAL #define ENABLE_LE_CENTRAL -#define ENABLE_CLASSIC #define ENABLE_LE_DATA_CHANNELS -#define ENABLE_LOG_INFO #define ENABLE_LOG_ERROR +#define ENABLE_LOG_INFO #define ENABLE_PRINTF_HEXDUMP -#define ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND -// #define ENABLE_EHCILL #define ENABLE_SEGGER_RTT // BTstack configuration. buffers, sizes, ... diff --git a/port/msp432p401lp-cc256x/main.c b/port/msp432p401lp-cc256x/main.c index c1746934b..f8a857b99 100755 --- a/port/msp432p401lp-cc256x/main.c +++ b/port/msp432p401lp-cc256x/main.c @@ -538,6 +538,12 @@ uint32_t hal_time_ms(void){ return systick; } +// btstack assert +void btstack_assert_failed(const char * file, uint16_t line_nr){ + printf("ASSERT failed in %s, line %u\n", file, line_nr); + while (1); +} + // main.c #include "SEGGER_RTT.h"