-
Notifications
You must be signed in to change notification settings - Fork 256
HGLRC_H743_LITE: Update PINIO and gyro definitions #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HGLRC-T
wants to merge
2
commits into
betaflight:master
Choose a base branch
from
HGLRC-T:HGLRC-H743-LITE-FIX
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+20
−12
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,11 @@ | |
| * If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| /* | ||
| SUPPORTED TARGET - THANK YOU | ||
| REFERENCE: sha256_b08b3592217ec38f808083d7383e4e17dae4b9acb3f3fbaef244d35bd0e6f8ad | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #define FC_TARGET_MCU STM32H743 | ||
|
|
@@ -30,6 +35,9 @@ | |
| #define USE_ACC_SPI_ICM42688P | ||
| #define USE_GYRO | ||
| #define USE_GYRO_SPI_ICM42688P | ||
| #define USE_ACCGYRO_LSM6DSV16X | ||
| #define USE_ACCGYRO_LSM6DSK320X | ||
|
|
||
| #define USE_BARO | ||
| #define USE_BARO_DPS310 | ||
| #define USE_MAX7456 | ||
|
|
@@ -42,8 +50,6 @@ | |
| #define GYRO_1_EXTI_PIN PC5 | ||
| #define GYRO_1_CS_PIN PA4 | ||
| #define GYRO_1_SPI_INSTANCE SPI1 | ||
| #define USE_GYRO_CLKIN | ||
| #define GYRO_1_CLKIN_PIN PC6 | ||
| #define GYRO_1_ALIGN CW180_DEG_FLIP | ||
|
|
||
| #define SPI2_SCK_PIN PB13 | ||
|
|
@@ -94,13 +100,12 @@ | |
| #define ADC_CURR_PIN PC1 | ||
|
|
||
| #define TIMER_PIN_MAPPING \ | ||
| TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \ | ||
| TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \ | ||
| TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \ | ||
| TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \ | ||
| TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \ | ||
| TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8) \ | ||
| TIMER_PIN_MAP(6, GYRO_1_CLKIN_PIN, 1, -1) | ||
| TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \ | ||
| TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \ | ||
| TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \ | ||
| TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \ | ||
| TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \ | ||
| TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8) | ||
|
|
||
| #define ADC1_DMA_OPT 9 | ||
| #define ADC3_DMA_OPT 10 | ||
|
|
@@ -114,9 +119,12 @@ | |
| #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC | ||
| #define DEFAULT_VOLTAGE_METER_SCALE 210 | ||
|
|
||
| #define PINIO1_PIN PC13 | ||
| #define PINIO1_PIN PE2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does not match the schematic. Please post a schematic for this FC in the Discord. |
||
| #define PINIO1_BOX 40 | ||
| #define PINIO1_CONFIG 129 | ||
| #define BOX_USER1_NAME "12V BEC" | ||
| #define BOX_USER1_NAME "Cam1,2" | ||
|
|
||
| #define PINIO2_PIN PC13 | ||
| #define PINIO2_BOX 41 | ||
| #define BOX_USER2_NAME "12V BEC" | ||
|
|
||
| #define BEEPER_INVERTED | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
USE_GYRO_CLKIN can remain