Skip to content

Commit a0f118d

Browse files
Willy-JLhedger
andauthored
FreeRTOS API fixes (#73)
Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
1 parent ef07df3 commit a0f118d

File tree

10 files changed

+21
-17
lines changed

10 files changed

+21
-17
lines changed

mass_storage/.catalog/CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v.1.3
2+
3+
Minimal changes for recent API updates
4+
15
## v.1.2
26

37
* Fix deadlock on disk eject
@@ -10,4 +14,4 @@
1014

1115
## v.1.0
1216

13-
Initial release.
17+
Initial release.

mass_storage/application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ App(
99
],
1010
stack_size=2 * 1024,
1111
fap_description="Implements a mass storage device over USB for disk images",
12-
fap_version="1.2",
12+
fap_version="1.3",
1313
fap_icon="assets/mass_storage_10px.png",
1414
fap_icon_assets="assets",
1515
fap_category="USB",

mass_storage/mass_storage_app.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ static void mass_storage_app_tick_event_callback(void* context) {
2222
}
2323

2424
void mass_storage_app_show_loading_popup(MassStorageApp* app, bool show) {
25-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
26-
2725
if(show) {
2826
// Raise timer priority so that animations can play
29-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
27+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
3028
view_dispatcher_switch_to_view(app->view_dispatcher, MassStorageAppViewLoading);
3129
} else {
3230
// Restore default timer priority
33-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
31+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
3432
}
3533
}
3634

nfc_magic/.catalog/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
## 1.2
2+
- Minimal changes for recent API updates
3+
14
## 1.1
25
- Rework application with new NFC API
6+
37
## 1.0
48
- Initial release

nfc_magic/application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=4 * 1024,
1212
fap_description="Application for writing to NFC tags with modifiable sector 0",
13-
fap_version="1.1",
13+
fap_version="1.2",
1414
fap_icon="assets/125_10px.png",
1515
fap_category="NFC",
1616
fap_private_libs=[

nfc_magic/nfc_magic_app.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ void nfc_magic_app_tick_event_callback(void* context) {
2323

2424
void nfc_magic_app_show_loading_popup(void* context, bool show) {
2525
NfcMagicApp* instance = context;
26-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
27-
2826
if(show) {
2927
// Raise timer priority so that animations can play
30-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
28+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
3129
view_dispatcher_switch_to_view(instance->view_dispatcher, NfcMagicAppViewLoading);
3230
} else {
3331
// Restore default timer priority
34-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
32+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
3533
}
3634
}
3735

picopass/.catalog/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.8
2+
- Minimal changes for recent API updates
13
## 1.7
24
- Rework application with new NFC API
35
## 1.6

picopass/application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=4 * 1024,
1212
fap_description="App to communicate with NFC tags using the PicoPass(iClass) format",
13-
fap_version="1.7",
13+
fap_version="1.8",
1414
fap_icon="125_10px.png",
1515
fap_category="NFC",
1616
fap_libs=["mbedtls"],

picopass/picopass.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,13 @@ void picopass_blink_stop(Picopass* picopass) {
196196

197197
void picopass_show_loading_popup(void* context, bool show) {
198198
Picopass* picopass = context;
199-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
200-
201199
if(show) {
202200
// Raise timer priority so that animations can play
203-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
201+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
204202
view_dispatcher_switch_to_view(picopass->view_dispatcher, PicopassViewLoading);
205203
} else {
206204
// Restore default timer priority
207-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
205+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
208206
}
209207
}
210208

weather_station/.catalog/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 1.2
22
- Add protocol Acurite-986
3-
- Functions for working with delays have been changed
3+
- Minimal changes for recent API updates
44
## 1.1
55
- Add protocol Auriol_AHFL
66
## 1.0

0 commit comments

Comments
 (0)