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
75b93b07
Commit
75b93b07
authored
7 years ago
by
James Goppert
Committed by
Lorenz Meier
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix for HobbyKing boards.
parent
a15ca722
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/px4fmu-v2/board_config.h
+1
-1
1 addition, 1 deletion
src/drivers/boards/px4fmu-v2/board_config.h
src/drivers/boards/px4fmu-v2/px4fmu_init.c
+3
-22
3 additions, 22 deletions
src/drivers/boards/px4fmu-v2/px4fmu_init.c
with
4 additions
and
23 deletions
src/drivers/boards/px4fmu-v2/board_config.h
+
1
−
1
View file @
75b93b07
...
...
@@ -398,7 +398,7 @@
#define GPIO_VDD_BRICK_VALID (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTB|GPIO_PIN5)
#define GPIO_VDD_SERVO_VALID (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTB|GPIO_PIN7)
#define GPIO_VDD_USB_VALID (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN0)
#define GPIO_VDD_3V3_SENSORS_EN (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_
CLEAR
|GPIO_PORTE|GPIO_PIN3)
#define GPIO_VDD_3V3_SENSORS_EN (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_
SET
|GPIO_PORTE|GPIO_PIN3)
#define GPIO_VDD_5V_HIPOWER_OC (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTE|GPIO_PIN10)
#define GPIO_VDD_5V_PERIPH_OC (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTE|GPIO_PIN15)
...
...
This diff is collapsed.
Click to expand it.
src/drivers/boards/px4fmu-v2/px4fmu_init.c
+
3
−
22
View file @
75b93b07
...
...
@@ -324,10 +324,6 @@ stm32_boardinitialize(void)
/* configure LEDs */
board_autoled_initialize
();
/* Start with the Sensor voltage off */
stm32_configgpio
(
GPIO_VDD_3V3_SENSORS_EN
);
/* configure ADC pins */
stm32_configgpio
(
GPIO_ADC1_IN2
);
/* BATT_VOLTAGE_SENS */
...
...
@@ -339,6 +335,7 @@ stm32_boardinitialize(void)
/* configure power supply control/sense pins */
stm32_configgpio
(
GPIO_VDD_5V_PERIPH_EN
);
stm32_configgpio
(
GPIO_VDD_3V3_SENSORS_EN
);
stm32_configgpio
(
GPIO_VDD_BRICK_VALID
);
stm32_configgpio
(
GPIO_VDD_SERVO_VALID
);
stm32_configgpio
(
GPIO_VDD_USB_VALID
);
...
...
@@ -346,9 +343,8 @@ stm32_boardinitialize(void)
stm32_configgpio
(
GPIO_VDD_5V_PERIPH_OC
);
/* configure SPI interfaces is deferred to board_app_initialize
* to delay the sensor power up with out adding a delay
*/
/* configure SPI interfaces */
stm32_spiinitialize
();
}
...
...
@@ -384,7 +380,6 @@ static struct sdio_dev_s *sdio;
__EXPORT
int
board_app_initialize
(
uintptr_t
arg
)
{
#if defined(CONFIG_HAVE_CXX) && defined(CONFIG_HAVE_CXXINITIALIZE)
/* run C++ ctors before we go any further */
...
...
@@ -422,21 +417,7 @@ __EXPORT int board_app_initialize(uintptr_t arg)
#endif // BOARD_HAS_SIMPLE_HW_VERSIONING
/* Bring up the Sensor power */
stm32_gpiowrite
(
GPIO_VDD_3V3_SENSORS_EN
,
1
);
/* Ensure the power is on 1 ms before we drive the GPIO pins */
usleep
(
1000
);
/* Now it is ok to drive the pins high so configure SPI GPIO */
stm32_spiinitialize
();
/* configure the high-resolution time/callout interface */
hrt_init
();
param_init
();
...
...
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