Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
e990df75
Verified
Commit
e990df75
authored
Aug 04, 2019
by
schneider
Committed by
Rahix
Aug 06, 2019
Browse files
fix(ble): Remove obsolete stuff from fit example
parent
b3eec4e7
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
epicardium/ble/app/app_main.c
View file @
e990df75
...
@@ -179,9 +179,9 @@ uint8_t appNumConns(uint8_t role)
...
@@ -179,9 +179,9 @@ uint8_t appNumConns(uint8_t role)
* \return None.
* \return None.
*/
*/
/*************************************************************************************************/
/*************************************************************************************************/
void
App
HandlerInit
(
wsfHandlerId_t
handlerI
d
)
void
App
Init
(
voi
d
)
{
{
appHandlerId
=
handlerId
;
appHandlerId
=
WsfOsSetNextHandler
(
AppHandler
)
;
AppDbInit
();
AppDbInit
();
}
}
...
...
epicardium/ble/ble.c
View file @
e990df75
...
@@ -45,7 +45,8 @@ static wsfBufPoolDesc_t mainPoolDesc[WSF_BUF_POOLS] =
...
@@ -45,7 +45,8 @@ static wsfBufPoolDesc_t mainPoolDesc[WSF_BUF_POOLS] =
};
};
/*! \brief Stack initialization for app. */
/*! \brief Stack initialization for app. */
extern
void
StackInitFit
(
void
);
extern
void
StackInit
(
void
);
extern
void
AppInit
(
void
);
/*************************************************************************************************/
/*************************************************************************************************/
void
PalSysAssertTrap
(
void
)
void
PalSysAssertTrap
(
void
)
...
@@ -316,12 +317,14 @@ void ble_uart_write(uint8_t *pValue, uint8_t len)
...
@@ -316,12 +317,14 @@ void ble_uart_write(uint8_t *pValue, uint8_t len)
static
void
ble_init
(
void
)
static
void
ble_init
(
void
)
{
{
WsfInit
();
WsfInit
();
StackInit
Fit
();
StackInit
();
setAddress
();
setAddress
();
NVIC_SetPriority
(
BTLE_SFD_TO_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_SFD_TO_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_TX_DONE_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_TX_DONE_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_RX_RCVD_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_RX_RCVD_IRQn
,
2
);
FitStart
();
AppInit
();
BleStart
();
/* Add the UART service dynamically */
/* Add the UART service dynamically */
AttsDynInit
();
AttsDynInit
();
...
...
epicardium/ble/ble_main.c
View file @
e990df75
This diff is collapsed.
Click to expand it.
epicardium/ble/stack.c
View file @
e990df75
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/*!
/*!
* \file
* \file
*
*
* \brief Stack initialization
for fit.
* \brief Stack initialization
*
*
* Copyright (c) 2016-2017 ARM Ltd. All Rights Reserved.
* Copyright (c) 2016-2017 ARM Ltd. All Rights Reserved.
* ARM Ltd. confidential and proprietary.
* ARM Ltd. confidential and proprietary.
...
@@ -107,7 +107,7 @@ const BbRtCfg_t _bb_cfg = {
...
@@ -107,7 +107,7 @@ const BbRtCfg_t _bb_cfg = {
* \return None.
* \return None.
*/
*/
/*************************************************************************************************/
/*************************************************************************************************/
void
StackInit
Fit
(
void
)
void
StackInit
(
void
)
{
{
wsfHandlerId_t
handlerId
;
wsfHandlerId_t
handlerId
;
...
@@ -134,8 +134,8 @@ void StackInitFit(void)
...
@@ -134,8 +134,8 @@ void StackInitFit(void)
#endif
/* DATS_APP_USE_LEGACY_API */
#endif
/* DATS_APP_USE_LEGACY_API */
if
(
memUsed
!=
LL_MEMORY_FOOTPRINT
)
if
(
memUsed
!=
LL_MEMORY_FOOTPRINT
)
{
{
printf
(
"Controller memory mismatch 0x%x != 0x%x
\n
"
,
memUsed
,
printf
(
"Controller memory mismatch 0x%x != 0x%x
\n
"
,
(
unsigned
int
)
memUsed
,
LL_MEMORY_FOOTPRINT
);
(
unsigned
int
)
LL_MEMORY_FOOTPRINT
);
}
}
#endif
#endif
...
@@ -180,11 +180,7 @@ void StackInitFit(void)
...
@@ -180,11 +180,7 @@ void StackInitFit(void)
SmpHandlerInit
(
handlerId
);
SmpHandlerInit
(
handlerId
);
SmprInit
();
SmprInit
();
SmprScInit
();
SmprScInit
();
HciSetMaxRxAclLen
(
100
);
/* card10:
/*TODO card10: Probably want to adjust this */
* Here it gets weird: application logic and stack are
HciSetMaxRxAclLen
(
100
);
* mixed a lot. */
handlerId
=
WsfOsSetNextHandler
(
AppHandler
);
AppHandlerInit
(
handlerId
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment