Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Monitoring Module
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
DIOT Monitoring Module
Commits
ea6ce355
Commit
ea6ce355
authored
Jun 30, 2022
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/i2c: use PEC by default
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
c2e4fc0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
i2c_slave.c
common/src/i2c_slave.c
+6
-0
No files found.
common/src/i2c_slave.c
View file @
ea6ce355
...
...
@@ -27,7 +27,13 @@ static uint16_t last_byte_read_got_nack __xMR;
static
cmd_space_t
*
cmds
;
/* Enable PEC by default */
#if defined(MMFANT) || defined(MMRTSB) || defined(MMRATO) || defined(MMPROT)
uint16_t
use_pec
__xMR
=
1
;
#else
uint16_t
use_pec
__xMR
=
0
;
#endif
static
uint16_t
pec_checksum
__xMR
;
static
uint8_t
tmp_pec_checksum
;
static
uint8_t
checksum_from_m
;
...
...
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