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
787dc2fb
Commit
787dc2fb
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(hid): Minor cleanup
parent
85d96613
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!382
HID over BLE
Pipeline
#5031
passed
4 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
epicardium/ble/ble_main.c
+1
-2
1 addition, 2 deletions
epicardium/ble/ble_main.c
epicardium/ble/hid.c
+0
-1
0 additions, 1 deletion
epicardium/ble/hid.c
epicardium/ble/hid.h
+4
-0
4 additions, 0 deletions
epicardium/ble/hid.h
with
5 additions
and
3 deletions
epicardium/ble/ble_main.c
+
1
−
2
View file @
787dc2fb
...
...
@@ -756,7 +756,6 @@ static void scannerScanReport(dmEvt_t *pMsg)
* \return None.
*/
/*************************************************************************************************/
void
HidProcMsg
(
wsfMsgHdr_t
*
pMsg
);
static
void
bleProcMsg
(
bleMsg_t
*
pMsg
)
{
hciLeConnCmplEvt_t
*
connOpen
;
...
...
@@ -774,7 +773,7 @@ static void bleProcMsg(bleMsg_t *pMsg)
case
ATTS_HANDLE_VALUE_CNF
:
BasProcMsg
(
&
pMsg
->
hdr
);
HidProcMsg
(
&
pMsg
->
hdr
);
HidProcMsg
(
&
pMsg
->
hdr
);
break
;
case
ATTS_CCC_STATE_IND
:
...
...
This diff is collapsed.
Click to expand it.
epicardium/ble/hid.c
+
0
−
1
View file @
787dc2fb
...
...
@@ -9,7 +9,6 @@
#include
"att_api.h"
#include
"svc_hid.h"
#include
"hid/hid_api.h"
//#include "hidapp/hidapp_api.h"
#include
"modules/log.h"
...
...
This diff is collapsed.
Click to expand it.
epicardium/ble/hid.h
+
4
−
0
View file @
787dc2fb
#pragma once
#include
"wsf_types.h"
#include
"wsf_os.h"
/* The input report fits in one byte */
#define HIDAPP_KEYBOARD_INPUT_REPORT_LEN 8
#define HIDAPP_MOUSE_INPUT_REPORT_LEN 4
...
...
@@ -14,3 +17,4 @@
#define HIDAPP_CONSUMER_REPORT_ID 3
void
hid_init
(
void
);
void
HidProcMsg
(
wsfMsgHdr_t
*
pMsg
);
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