Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
442f79da
Commit
442f79da
authored
7 years ago
by
David Sidrane
Committed by
Daniel Agar
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
same70xplained-v1:use px4_micro_hal PX4_BUS_NUMBER_{TO|FROM}_PX4 mapping
parent
5d33b602
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/drivers/boards/px4-same70xplained-v1/board_config.h
+3
-3
3 additions, 3 deletions
src/drivers/boards/px4-same70xplained-v1/board_config.h
src/drivers/boards/px4-same70xplained-v1/px4same70xplained_init.c
+3
-3
3 additions, 3 deletions
...ers/boards/px4-same70xplained-v1/px4same70xplained_init.c
with
6 additions
and
6 deletions
src/drivers/boards/px4-same70xplained-v1/board_config.h
+
3
−
3
View file @
442f79da
...
...
@@ -198,7 +198,7 @@ __BEGIN_DECLS
#define GPIO_SPI_CS_BARO (GPIO_OUTPUT | GPIO_CFG_DEFAULT | GPIO_OUTPUT_SET | GPIO_PORT_PIOD | GPIO_PIN11)
#define GPIO_SPI_CS_MPU (GPIO_OUTPUT | GPIO_CFG_DEFAULT | GPIO_OUTPUT_SET | GPIO_PORT_PIOD | GPIO_PIN27)
#define PX4_SPI_BUS_SENSORS
1
#define PX4_SPI_BUS_SENSORS
PX4_BUS_NUMBER_TO_PX4(0)
#define PX4_SPI_BUS_BARO PX4_SPI_BUS_SENSORS
/* Use these in place of the spi_dev_e enumeration to select a specific SPI device on SPI1 */
...
...
@@ -209,9 +209,9 @@ __BEGIN_DECLS
/* I2C busses */
#define PX4_I2C_BUS_EXPANSION
1
#define PX4_I2C_BUS_EXPANSION
PX4_BUS_NUMBER_TO_PX4(0)
/* No Onboard Sensors #define PX4_I2C_BUS_ONBOARD 0 */
#define PX4_I2C_BUS_LED
1
#define PX4_I2C_BUS_LED
PX4_I2C_BUS_EXPANSION
/* Devices on the onboard bus.
*
...
...
This diff is collapsed.
Click to expand it.
src/drivers/boards/px4-same70xplained-v1/px4same70xplained_init.c
+
3
−
3
View file @
442f79da
...
...
@@ -278,10 +278,10 @@ __EXPORT int board_app_initialize(uintptr_t arg)
/* Configure SPI-based devices */
spi0
=
sam
_spibus_initialize
(
0
);
spi0
=
px4
_spibus_initialize
(
PX4_SPI_BUS_SENSORS
);
if
(
!
spi0
)
{
message
(
"[boot] FAILED to initialize SPI port
0
\n
"
);
message
(
"[boot] FAILED to initialize SPI port
%d
\n
"
,
PX4_SPI_BUS_SENSORS
);
board_autoled_on
(
LED_AMBER
);
return
-
ENODEV
;
}
...
...
@@ -297,7 +297,7 @@ __EXPORT int board_app_initialize(uintptr_t arg)
up_udelay
(
20
);
#if defined(CONFIG_SAMV7_SPI1_MASTER)
spi1
=
sam
_spibus_initialize
(
1
);
spi1
=
px4
_spibus_initialize
(
PX4_SPI_BUS_MEMORY
);
/* Default SPI4 to 1MHz and de-assert the known chip selects. */
SPI_SETFREQUENCY
(
spi1
,
10000000
);
...
...
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