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
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
fleur
firmware
Commits
3a0b7452
Commit
3a0b7452
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(ble): Increase BLE task priority
Also decrease the time needed to update the LEDs
parent
58acc803
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
epicardium/ble/card10.c
+6
-11
6 additions, 11 deletions
epicardium/ble/card10.c
epicardium/ble/filetransfer.c
+1
-3
1 addition, 3 deletions
epicardium/ble/filetransfer.c
epicardium/main.c
+1
-1
1 addition, 1 deletion
epicardium/main.c
with
8 additions
and
15 deletions
epicardium/ble/card10.c
+
6
−
11
View file @
3a0b7452
...
@@ -776,25 +776,20 @@ static uint8_t writeCard10CB(
...
@@ -776,25 +776,20 @@ static uint8_t writeCard10CB(
}
}
// leds above
// leds above
case
CARD10_LEDS_ABOVE_VAL_HDL
:
case
CARD10_LEDS_ABOVE_VAL_HDL
:
APP_TRACE_INFO0
(
"ble-card10: update LEDs above"
);
for
(
ui16
=
0
;
ui16
<
11
;
ui16
++
)
{
for
(
ui16
=
0
;
ui16
<
11
;
ui16
++
)
{
epic_leds_set
(
epic_leds_prep
(
ui16
,
pValue
[
ui16
*
3
],
pValue
[
ui16
*
3
+
1
],
pValue
[
ui16
*
3
+
2
]
);
APP_TRACE_INFO4
(
"ble-card10: set led %ld above to #%02x%02x%02x
\n
"
,
ui16
,
ui16
,
pValue
[
ui16
*
3
],
pValue
[
ui16
*
3
],
pValue
[
ui16
*
3
+
1
],
pValue
[
ui16
*
3
+
1
],
pValue
[
ui16
*
3
+
2
]
pValue
[
ui16
*
3
+
2
]
);
);
}
}
epic_leds_update
();
return
ATT_SUCCESS
;
default:
default:
APP_TRACE_INFO1
(
APP_TRACE_INFO1
(
"ble-card10: unsupported handle: %x
\n
"
,
handle
);
"ble-card10: unsupported characteristic: %c
\n
"
,
handle
);
return
ATT_ERR_HANDLE
;
return
ATT_ERR_HANDLE
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
epicardium/ble/filetransfer.c
+
1
−
3
View file @
3a0b7452
...
@@ -396,9 +396,7 @@ static uint8_t writeCallback(
...
@@ -396,9 +396,7 @@ static uint8_t writeCallback(
connId
,
handle
,
operation
,
offset
,
len
,
pValue
,
pAttr
connId
,
handle
,
operation
,
offset
,
len
,
pValue
,
pAttr
);
);
default:
default:
LOG_ERR
(
"filetrans"
,
LOG_ERR
(
"filetrans"
,
"unsupported handle: %x
\n
"
,
handle
);
"unsupported characteristic: %c
\n
"
,
handle
);
return
ATT_ERR_HANDLE
;
return
ATT_ERR_HANDLE
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
epicardium/main.c
+
1
−
1
View file @
3a0b7452
...
@@ -119,7 +119,7 @@ int main(void)
...
@@ -119,7 +119,7 @@ int main(void)
(
const
char
*
)
"BLE"
,
(
const
char
*
)
"BLE"
,
configMINIMAL_STACK_SIZE
*
10
,
configMINIMAL_STACK_SIZE
*
10
,
NULL
,
NULL
,
tskIDLE_PRIORITY
+
1
,
tskIDLE_PRIORITY
+
3
,
NULL
)
!=
pdPASS
)
{
NULL
)
!=
pdPASS
)
{
LOG_CRIT
(
"startup"
,
"Failed to create %s task!"
,
"BLE"
);
LOG_CRIT
(
"startup"
,
"Failed to create %s task!"
,
"BLE"
);
abort
();
abort
();
...
...
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