Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tudelft-quadrupel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer and Embedded Systems Engineering
Embedded Systems Lab
tudelft-quadrupel
Commits
0a652dcb
Verified
Commit
0a652dcb
authored
Mar 8, 2023
by
Jonathan Brouwer
Browse files
Options
Downloads
Patches
Plain Diff
Remove debugging LED
parent
66632b38
No related branches found
No related tags found
3 merge requests
!11
Resolve "Reading MPU over I2C hangs"
,
!10
Resolve "Reading MPU over I2C hangs": Attempt 4
,
!9
Resolve "Reading MPU over I2C hangs"
Pipeline
#819313
failed
Mar 8, 2023
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/twi.rs
+0
-7
0 additions, 7 deletions
src/twi.rs
with
0 additions
and
7 deletions
src/twi.rs
+
0
−
7
View file @
0a652dcb
...
...
@@ -8,7 +8,6 @@ use nrf51_hal::twi::Error;
use
nrf51_pac
::
twi0
::
frequency
::
FREQUENCY_A
;
use
nrf51_pac
::{
GPIO
,
Interrupt
,
TWI0
};
use
nrf51_pac
::
interrupt
;
use
crate
::
led
::
Red
;
const
FREQ
:
FREQUENCY_A
=
FREQUENCY_A
::
K400
;
...
...
@@ -207,16 +206,10 @@ unsafe fn SPI0_TWI0() {
if
twi
.twi.events_rxdready
.read
()
.bits
()
!=
0
{
twi
.twi.events_rxdready
.reset
();
if
twi
.rec
.load
(
Ordering
::
SeqCst
)
{
Red
.on
();
}
twi
.rec
.store
(
true
,
Ordering
::
SeqCst
);
}
if
twi
.twi.events_txdsent
.read
()
.bits
()
!=
0
{
twi
.twi.events_txdsent
.reset
();
if
twi
.sent
.load
(
Ordering
::
SeqCst
)
{
Red
.on
();
}
twi
.sent
.store
(
true
,
Ordering
::
SeqCst
);
}
if
twi
.twi.events_stopped
.read
()
.bits
()
!=
0
{
...
...
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