Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
b6832e3f
Commit
b6832e3f
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'schneider/ble-critical-section' into 'master'
fix(ble): Reduce scope of cricitcal section when initializing Closes
#203
See merge request
!395
parents
4de2d241
4882da8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!395
fix(ble): Reduce scope of cricitcal section when initializing
Pipeline
#4675
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/ble/ble.c
+6
-2
6 additions, 2 deletions
epicardium/ble/ble.c
epicardium/ble/stack.c
+14
-5
14 additions, 5 deletions
epicardium/ble/stack.c
with
20 additions
and
7 deletions
epicardium/ble/ble.c
+
6
−
2
View file @
b6832e3f
...
...
@@ -64,6 +64,7 @@ static bool log_enabled = false;
static
int
log_lastflushtick
=
0
;
/*! \brief Stack initialization for app. */
extern
void
LlStackInit
(
void
);
extern
void
StackInit
(
void
);
extern
void
bleuart_init
(
void
);
extern
void
bleFileTransfer_init
(
void
);
...
...
@@ -431,12 +432,15 @@ void vBleTask(void *pvParameters)
NVIC_EnableIRQ
(
RSV11_IRQn
);
WsfInit
();
taskENTER_CRITICAL
();
/* Critical section to prevent a loop in iq_capture2 / meas_freq in
* /home/maxim/Documents/src/BLE/mcbusw/Hardware/Micro/ME14/Firmware/trunk/NDALibraries/BTLE/phy/dbb/prot/ble/pan2g5/afe/max32665/board_config.c:275
* if BHI160 and -Ddebug_prints=true is enabled*/
StackInit
();
* if BHI160 and -Ddebug_prints=true is enabled
. See #115.
*/
Ll
StackInit
();
taskEXIT_CRITICAL
();
StackInit
();
BbBleDrvSetTxPower
(
0
);
setAddress
();
...
...
This diff is collapsed.
Click to expand it.
epicardium/ble/stack.c
+
14
−
5
View file @
b6832e3f
...
...
@@ -105,16 +105,13 @@ const BbRtCfg_t _bb_cfg = {
/*************************************************************************************************/
/*!
* \brief Initialize stack.
* \brief Initialize
link layer part of the
stack.
*
* \return None.
*/
/*************************************************************************************************/
void
StackInit
(
void
)
void
Ll
StackInit
()
{
wsfHandlerId_t
handlerId
;
/* card10: We do not use the SDMA HCI at the moment. The block below is not compiled. */
#ifndef ENABLE_SDMA
uint32_t
memUsed
;
...
...
@@ -137,6 +134,18 @@ void StackInit(void)
(
unsigned
int
)
LL_MEMORY_FOOTPRINT
);
}
#endif
}
/*************************************************************************************************/
/*!
* \brief Initialize stack.
*
* \return None.
*/
/*************************************************************************************************/
void
StackInit
(
void
)
{
wsfHandlerId_t
handlerId
;
SecInit
();
SecRandInit
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment