NUCLEO_WB55RG: WB Transport Layer Cube files modifications

- Need to force ARM packed redefinition
- Configure LL stack in LL mode only
- Remove warning in shci_tl.c (PLACE_IN_SECTION)
pull/9814/head
Laurent Meunier 2019-01-10 09:48:44 +01:00
parent e8a49e9605
commit 16ed1097aa
3 changed files with 5 additions and 10 deletions

View File

@ -161,7 +161,7 @@
* 1 : LL Only * 1 : LL Only
* 0 : LL + Host * 0 : LL + Host
*/ */
#define CFG_BLE_LL_ONLY 0 #define CFG_BLE_LL_ONLY 1
/****************************************************************************** /******************************************************************************

View File

@ -38,10 +38,10 @@
/** /**
* START of Section SYSTEM_DRIVER_CONTEXT * START of Section SYSTEM_DRIVER_CONTEXT
*/ */
PLACE_IN_SECTION("SYSTEM_DRIVER_CONTEXT") static tListNode SHciAsynchEventQueue; static tListNode SHciAsynchEventQueue;
PLACE_IN_SECTION("SYSTEM_DRIVER_CONTEXT") static volatile SHCI_TL_CmdStatus_t SHCICmdStatus; static volatile SHCI_TL_CmdStatus_t SHCICmdStatus;
PLACE_IN_SECTION("SYSTEM_DRIVER_CONTEXT") static TL_CmdPacket_t *pCmdBuffer; static TL_CmdPacket_t *pCmdBuffer;
PLACE_IN_SECTION("SYSTEM_DRIVER_CONTEXT") SHCI_TL_UserEventFlowStatus_t SHCI_TL_UserEventFlow; SHCI_TL_UserEventFlowStatus_t SHCI_TL_UserEventFlow;
/** /**
* END of Section SYSTEM_DRIVER_CONTEXT * END of Section SYSTEM_DRIVER_CONTEXT
*/ */

View File

@ -143,13 +143,8 @@ extern "C" {
#undef PACKED_STRUCT #undef PACKED_STRUCT
#if defined ( __CC_ARM ) #if defined ( __CC_ARM )
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050U)
#define PACKED__ __attribute__((packed)) #define PACKED__ __attribute__((packed))
#define PACKED_STRUCT struct PACKED__ #define PACKED_STRUCT struct PACKED__
#else
#define PACKED__(TYPE) __packed TYPE
#define PACKED_STRUCT PACKED__(struct)
#endif
#elif defined ( __GNUC__ ) #elif defined ( __GNUC__ )
#define PACKED__ __attribute__((packed)) #define PACKED__ __attribute__((packed))
#define PACKED_STRUCT struct PACKED__ #define PACKED_STRUCT struct PACKED__