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
bf860ee4
Commit
bf860ee4
authored
10 years ago
by
Staroselskii Georgii
Committed by
Andrew Tridgell
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
AP_HAL_Linux: Ublox SPI stub
parent
ce4c4c43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libraries/AP_HAL/AP_HAL_Namespace.h
+2
-1
2 additions, 1 deletion
libraries/AP_HAL/AP_HAL_Namespace.h
libraries/AP_HAL_Linux/SPIDriver.cpp
+1
-0
1 addition, 0 deletions
libraries/AP_HAL_Linux/SPIDriver.cpp
libraries/AP_HAL_Linux/SPIDriver.h
+1
-1
1 addition, 1 deletion
libraries/AP_HAL_Linux/SPIDriver.h
with
4 additions
and
2 deletions
libraries/AP_HAL/AP_HAL_Namespace.h
+
2
−
1
View file @
bf860ee4
...
...
@@ -57,7 +57,8 @@ namespace AP_HAL {
SPIDevice_L3GD20
=
7
,
SPIDevice_LSM303D
=
8
,
SPIDevice_LSM9DS0_AM
=
9
,
SPIDevice_LSM9DS0_G
=
10
SPIDevice_LSM9DS0_G
=
10
,
SPIDevice_Ublox
=
11
};
}
...
...
This diff is collapsed.
Click to expand it.
libraries/AP_HAL_Linux/SPIDriver.cpp
+
1
−
0
View file @
bf860ee4
...
...
@@ -35,6 +35,7 @@ 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 */
LinuxSPIDeviceDriver
(
0
,
AP_HAL
::
SPIDevice_MPU9250
,
SPI_MODE_3
,
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
),
};
#else
// empty device table
...
...
This diff is collapsed.
Click to expand it.
libraries/AP_HAL_Linux/SPIDriver.h
+
1
−
1
View file @
bf860ee4
...
...
@@ -8,7 +8,7 @@
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE
#define LINUX_SPI_DEVICE_NUM_DEVICES 6
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
#define LINUX_SPI_DEVICE_NUM_DEVICES
1
#define LINUX_SPI_DEVICE_NUM_DEVICES
2
#else
#define LINUX_SPI_DEVICE_NUM_DEVICES 0
#endif
...
...
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