Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
014be931
Commit
014be931
authored
Jan 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/sm_io/protocols/sm_pr.*: add BSMP protocol as an option
parent
f4e41d54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
sm_pr.c
hal/sm_io/protocols/sm_pr.c
+5
-0
sm_pr.h
hal/sm_io/protocols/sm_pr.h
+1
-0
No files found.
hal/sm_io/protocols/sm_pr.c
View file @
014be931
...
...
@@ -13,6 +13,7 @@
#include "sm_pr_err.h"
#include "sm_pr_spi.h"
#include "sm_pr_i2c.h"
#include "sm_pr_bsmp.h"
#include "hal_assert.h"
/* Undef ASSERT_ALLOC to avoid conflicting with other ASSERT_ALLOC */
...
...
@@ -142,6 +143,10 @@ static smpr_err_e _smpr_register_proto_ops (smpr_type_e type, const smpr_proto_o
*
ops
=
&
smpr_proto_ops_i2c
;
break
;
case
SMPR_BSMP
:
*
ops
=
&
smpr_proto_ops_bsmp
;
break
;
/*case SMPR_1WIRE:
*ops = &smpr_proto_ops_1wire;
break;
...
...
hal/sm_io/protocols/sm_pr.h
View file @
014be931
...
...
@@ -27,6 +27,7 @@
enum
_smpr_type_e
{
SMPR_SPI
=
0
,
SMPR_I2C
,
SMPR_BSMP
,
SMPR_1WIRE
,
SMPR_GPIO
,
SMPR_BYPASS
...
...
Write
Preview
Markdown
is supported
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