Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ if(CONFIG_HAS_STM32LIB)
if(CONFIG_BT_STM32_IPM)
zephyr_include_directories(stm32wb/hci)

zephyr_sources(stm32wb/hci/stm_list.c)
zephyr_sources(stm32wb/hci/tl_mbox.c)
zephyr_sources(stm32wb/hci/hw_ipcc.c)
zephyr_sources(stm32wb/hci/shci_tl_if.c)
zephyr_sources(stm32wb/hci/shci_tl.c)
zephyr_sources(stm32wb/hci/shci.c)
zephyr_sources(stm32wb/hci/tl_mbox.c)
zephyr_sources(stm32wb/hci/stm_list.c)

endif()
endif()
4 changes: 2 additions & 2 deletions lib/stm32wb/hci/README
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Origin:
https://github.com/STMicroelectronics/STM32CubeWB

Status:
version v1.13.2
version v1.14.0

Purpose:
This library is used on stm32wb series to enable HCI communication between
Expand Down Expand Up @@ -48,7 +48,7 @@ URL:
https://github.com/STMicroelectronics/STM32CubeWB

commit:
8cefde36a2adcc5d94a47d8cada4630d28cc5dcd
83aacadecbd5136ad3194f39e002ff50a5439ad9

Maintained-by:
External
Expand Down
38 changes: 16 additions & 22 deletions lib/stm32wb/hci/app_common.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file app_common.h
* @author MCD Application Team
* @brief Common
* @brief App Common application configuration file for STM32WPAN Middleware.
******************************************************************************
* @attention
*
* Copyright (c) 2019-2021 STMicroelectronics.
* Copyright (c) 2020-2021 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
Expand All @@ -15,15 +16,13 @@
*
******************************************************************************
*/


/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_COMMON_H
#define __APP_COMMON_H
#ifndef APP_COMMON_H
#define APP_COMMON_H

#ifdef __cplusplus
extern "C"
{
extern "C"{
#endif

#include <stdint.h>
Expand All @@ -37,7 +36,6 @@ extern "C"
/* -------------------------------- *
* Basic definitions *
* -------------------------------- */

#undef NULL
#define NULL 0

Expand All @@ -47,25 +45,23 @@ extern "C"
#undef TRUE
#define TRUE (!0)

/* -------------------------------- *
* Critical Section definition *
* -------------------------------- */
/* -------------------------------- *
* Critical Section definition *
* -------------------------------- */
#define BACKUP_PRIMASK() uint32_t primask_bit= __get_PRIMASK()
#define DISABLE_IRQ() __disable_irq()
#define RESTORE_PRIMASK() __set_PRIMASK(primask_bit)

/* -------------------------------- *
* Macro delimiters *
* -------------------------------- */

#define M_BEGIN do {

#define M_END } while(0)

/* -------------------------------- *
* Some useful macro definitions *
* -------------------------------- */

#ifndef MAX
#define MAX( x, y ) (((x)>(y))?(x):(y))
#endif
Expand All @@ -82,9 +78,8 @@ extern "C"

#define MODSUB( a, b, m ) MODADD( a, (m)-(b), m )


#define PAUSE( t ) M_BEGIN \
volatile int _i; \
__IO int _i; \
for ( _i = t; _i > 0; _i -- ); \
M_END

Expand All @@ -100,9 +95,9 @@ extern "C"

#define BITNSET( w, n, b ) M_BEGIN (w)[(n)/32] |= ((U32)(b))<<((n)%32); M_END

/* -------------------------------- *
* Compiler *
* -------------------------------- */
/* -------------------------------- *
* Compiler *
* -------------------------------- */
#define PLACE_IN_SECTION( __x__ ) __attribute__((section (__x__)))

#ifdef WIN32
Expand All @@ -111,9 +106,8 @@ extern "C"
#define ALIGN(n) __attribute__((aligned(n)))
#endif


#ifdef __cplusplus
}
} /* extern "C" */
#endif

#endif /*__APP_COMMON_H */
#endif /* APP_COMMON_H */
Loading