Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emilio Corigliano
Skyward Boardcore
Commits
8d0c8aa9
Commit
8d0c8aa9
authored
7 years ago
by
Alain Carlucci
Browse files
Options
Downloads
Patches
Plain Diff
[*] Added 80 column limit
parent
71fecc21
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-format
+1
-0
1 addition, 0 deletions
.clang-format
src/shared/drivers/ethernet/WatchdogTimer.cpp
+1
-1
1 addition, 1 deletion
src/shared/drivers/ethernet/WatchdogTimer.cpp
src/shared/i2c/stm32f2_f4_i2c.cpp
+6
-6
6 additions, 6 deletions
src/shared/i2c/stm32f2_f4_i2c.cpp
with
8 additions
and
7 deletions
.clang-format
+
1
−
0
View file @
8d0c8aa9
...
...
@@ -5,6 +5,7 @@
AllowShortIfStatementsOnASingleLine: false,
AllowShortLoopsOnASingleLine: false,
BreakBeforeBraces: Allman,
ColumnLimit: 80,
ConstructorInitializerAllOnOneLineOrOnePerLine: false,
IndentCaseLabels: true,
IndentWidth: 4,
...
...
This diff is collapsed.
Click to expand it.
src/shared/drivers/ethernet/WatchdogTimer.cpp
+
1
−
1
View file @
8d0c8aa9
This diff is collapsed.
Click to expand it.
src/shared/i2c/stm32f2_f4_i2c.cpp
+
6
−
6
View file @
8d0c8aa9
...
...
@@ -90,12 +90,12 @@ void DMA1_Stream7_IRQHandler()
// We can't just wake the thread because the I2C is double buffered, and
// this interrupt is fired at the same time as the second last byte is
// starting to be sent out of the bus. If we return now, the main code
would
// send a stop condiotion too soon, and the last byte would never be
sent.
// Instead, we change from DMA mode to IRQ mode, so when the second
last byte
// is sent, that interrupt is fired and the last byte is sent
out. Note that
// since no thread is awakened from this IRQ, there's no
need for the
// saveContext(), restoreContext() and __attribute__((naked))
// starting to be sent out of the bus. If we return now, the main code
//
would
send a stop condiotion too soon, and the last byte would never be
//
sent.
Instead, we change from DMA mode to IRQ mode, so when the second
//
last byte
is sent, that interrupt is fired and the last byte is sent
//
out. Note that
since no thread is awakened from this IRQ, there's no
//
need for the
saveContext(), restoreContext() and __attribute__((naked))
I2C1
->
CR2
&=
~
I2C_CR2_DMAEN
;
I2C1
->
CR2
|=
I2C_CR2_ITBUFEN
|
I2C_CR2_ITEVTEN
;
}
...
...
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