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
card10
firmware
Commits
15c8971b
Commit
15c8971b
authored
Sep 15, 2019
by
schneider
Browse files
fix(ble): Add a critical section around StackInit()
parent
2f56ff36
Pipeline
#3944
passed with stages
in 2 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
epicardium/ble/ble.c
View file @
15c8971b
...
...
@@ -244,10 +244,18 @@ void vBleTask(void *pvParameters)
vTaskDelay
(
pdMS_TO_TICKS
(
500
));
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
();
taskEXIT_CRITICAL
();
BbBleDrvSetTxPower
(
0
);
setAddress
();
/* We are going to execute FreeRTOS functions from callbacks
* coming from these interrupts. Their priority needs to be
* reduced to allow this. */
NVIC_SetPriority
(
BTLE_SFD_TO_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_TX_DONE_IRQn
,
2
);
NVIC_SetPriority
(
BTLE_RX_RCVD_IRQn
,
2
);
...
...
schneider
@schneider
mentioned in issue
#115 (closed)
·
Sep 14, 2019
mentioned in issue
#115 (closed)
mentioned in issue #115
Toggle commit list
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