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
Model registry
Analyze
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
Avionics
Software Development
Skyward Boardcore
Commits
c66ff2b1
Commit
c66ff2b1
authored
2 years ago
by
Davide Mor
Committed by
Davide Mor
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[sx1278] Fixed a bug where the SPI would not work properly
parent
6da1c42a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shared/radio/SX1278/SX1278Defs.h
+1
-0
1 addition, 0 deletions
src/shared/radio/SX1278/SX1278Defs.h
src/tests/radio/sx1278/sx1278-init.h
+1
-1
1 addition, 1 deletion
src/tests/radio/sx1278/sx1278-init.h
with
2 additions
and
1 deletion
src/shared/radio/SX1278/SX1278Defs.h
+
1
−
0
View file @
c66ff2b1
...
...
@@ -50,6 +50,7 @@ inline SPIBusConfig getSpiBusConfig(SPI::ClockDivider clock_divider)
bus_config
.
bitOrder
=
SPI
::
Order
::
MSB_FIRST
;
bus_config
.
byteOrder
=
SPI
::
Order
::
MSB_FIRST
;
bus_config
.
writeBit
=
SPI
::
WriteBit
::
INVERTED
;
bus_config
.
csHoldTimeUs
=
3
;
return
bus_config
;
}
...
...
This diff is collapsed.
Click to expand it.
src/tests/radio/sx1278/sx1278-init.h
+
1
−
1
View file @
c66ff2b1
...
...
@@ -225,7 +225,7 @@ bool initRadio()
sx1278
=
new
Boardcore
::
SX1278Lora
(
sx1278_bus
,
cs
::
getPin
(),
dio0
::
getPin
(),
dio1
::
getPin
(),
dio3
::
getPin
(),
Boardcore
::
SPI
::
ClockDivider
::
DIV_
3
2
,
Boardcore
::
SPI
::
ClockDivider
::
DIV_2
56
,
std
::
move
(
frontend
));
printf
(
"
\n
[sx1278] Configuring sx1278 lora...
\n
"
);
...
...
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