Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
OpenSource
Ardupilot
Commits
ef420a25
Commit
ef420a25
authored
10 years ago
by
Staroselskii Georgii
Committed by
Andrew Tridgell
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
AP_HAL_Linux: changed SPI mode for MPU9250
parent
bf860ee4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_HAL_Linux/SPIDriver.cpp
+1
-1
1 addition, 1 deletion
libraries/AP_HAL_Linux/SPIDriver.cpp
with
1 addition
and
1 deletion
libraries/AP_HAL_Linux/SPIDriver.cpp
+
1
−
1
View file @
ef420a25
...
@@ -34,7 +34,7 @@ LinuxSPIDeviceDriver LinuxSPIDeviceManager::_device[LINUX_SPI_DEVICE_NUM_DEVICES
...
@@ -34,7 +34,7 @@ LinuxSPIDeviceDriver LinuxSPIDeviceManager::_device[LINUX_SPI_DEVICE_NUM_DEVICES
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
LinuxSPIDeviceDriver
LinuxSPIDeviceManager
::
_device
[
LINUX_SPI_DEVICE_NUM_DEVICES
]
=
{
LinuxSPIDeviceDriver
LinuxSPIDeviceManager
::
_device
[
LINUX_SPI_DEVICE_NUM_DEVICES
]
=
{
/* MPU9250 is restricted to 1MHz for non-data and interrupt registers */
/* MPU9250 is restricted to 1MHz for non-data and interrupt registers */
LinuxSPIDeviceDriver
(
0
,
AP_HAL
::
SPIDevice_MPU9250
,
SPI_MODE_
3
,
8
,
RPI_GPIO_7
,
1
*
MHZ
,
16
*
MHZ
),
LinuxSPIDeviceDriver
(
0
,
AP_HAL
::
SPIDevice_MPU9250
,
SPI_MODE_
0
,
8
,
RPI_GPIO_7
,
1
*
MHZ
,
16
*
MHZ
),
LinuxSPIDeviceDriver
(
0
,
AP_HAL
::
SPIDevice_Ublox
,
SPI_MODE_0
,
8
,
RPI_GPIO_8
,
1
*
MHZ
,
4
*
MHZ
),
LinuxSPIDeviceDriver
(
0
,
AP_HAL
::
SPIDevice_Ublox
,
SPI_MODE_0
,
8
,
RPI_GPIO_8
,
1
*
MHZ
,
4
*
MHZ
),
};
};
#else
#else
...
...
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