-
Notifications
You must be signed in to change notification settings - Fork 180
Add HGLRCH743 #872
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
base: master
Are you sure you want to change the base?
Add HGLRCH743 #872
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,136 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* This file is part of Betaflight. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Betaflight is free software. You can redistribute this software | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* and/or modify this software under the terms of the GNU General | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Public License as published by the Free Software Foundation, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* either version 3 of the License, or (at your option) any later | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* version. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Betaflight is distributed in the hope that it will be useful, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* See the GNU General Public License for more details. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* You should have received a copy of the GNU General Public | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* License along with this software. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* If not, see <http://www.gnu.org/licenses/>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#pragma once | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define FC_TARGET_MCU STM32H743 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define BOARD_NAME HGLRCH743 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MANUFACTURER_ID HGLRC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_ACC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_ACC_SPI_ICM42688P | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_GYRO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_GYRO_SPI_ICM42688P | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_BARO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_BARO_DPS310 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_MAX7456 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_FLASH | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define USE_FLASH_W25Q128FV | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI1_SCK_PIN PA5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI1_SDI_PIN PA6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI1_SDO_PIN PA7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define GYRO_1_EXTI_PIN PC5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define GYRO_1_CS_PIN PA4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define GYRO_1_SPI_INSTANCE SPI1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI2_SCK_PIN PB13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI2_SDI_PIN PB14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI2_SDO_PIN PB15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MAX7456_SPI_CS_PIN PB12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MAX7456_SPI_INSTANCE SPI2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI3_SCK_PIN PB3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI3_SDI_PIN PB4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SPI3_SDO_PIN PB2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define FLASH_CS_PIN PA15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. 👾 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define FLASH_SPI_INSTANCE SPI3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define BEEPER_PIN PE5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR1_PIN PE9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR2_PIN PE11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR3_PIN PE13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR4_PIN PE14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR5_PIN PA2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR6_PIN PA3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR7_PIN PB0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MOTOR8_PIN PB1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define LED_STRIP_PIN PA0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SERVO1_PIN PD12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SERVO2_PIN PD13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SERVO3_PIN PD14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define SERVO4_PIN PD15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART1_TX_PIN PA9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART1_RX_PIN PA10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART2_TX_PIN PD5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART2_RX_PIN PD6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART3_TX_PIN PD8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART3_RX_PIN PD9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART4_TX_PIN PD1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART4_RX_PIN PA1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART5_TX_PIN PB6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART5_RX_PIN PB5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+82
to
+83
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. 💡 Verification agent ❓ Verification inconclusiveUART5 pin mapping is invalid for H743; use PC12 (TX) and PD2 (RX). PB6/PB5 are typically USART1 TX/RX (or I2C1), not UART5. UART5 on H743 is conventionally PC12 (TX) and PD2 (RX). The current mapping will not function. Proposed correction (assuming these pins are actually wired for UART5): -#define UART5_TX_PIN PB6
-#define UART5_RX_PIN PB5
+#define UART5_TX_PIN PC12
+#define UART5_RX_PIN PD2 If the PCB actually routes a different UART to PB6/PB5 (e.g., USART1), then the port labels here should be updated to match the real peripheral instance. Please verify with the schematic before changing. Critical: UART5 pin mapping invalid for H743 – update to PC12/PD2 The STM32H743 uses PC12 for UART5 TX and PD2 for UART5 RX. PB6/PB5 are tied to USART1 (or I²C1), so the current configuration will not activate UART5. Please correct the definitions in • File: configs/HGLRCH743/config.h - #define UART5_TX_PIN PB6
- #define UART5_RX_PIN PB5
+ #define UART5_TX_PIN PC12
+ #define UART5_RX_PIN PD2 If your PCB routes UART signals differently (e.g., UART5 on other pins or PB6/PB5 for USART1), adjust the macro names or pin assignments to match the actual schematic before merging. 🤖 Prompt for AI Agents
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. @coderabbitai PB6/PB5 is fine, 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. 🧩 Analysis chain🌐 Web query:
💡 Result: For the STM32H743, the detailed pin mapping and alternate function assignments for PB5 and PB6 in relation to UART5 are given in the datasheet's "Port B alternate functions" table[4][8]. Summary:
Here are the relevant details extracted from the datasheet:
Details and References:
How to use in code (HAL example): // To use PB6 as UART5_TX:
GPIO_InitStruct.Pin = GPIO_PIN_6;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF8_UART5;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); Schematic Planning Note:
Citations:
@osirisinferi Thank you for the correction! You're right about PB6 being valid for UART5_TX (AF8), and I apologize for that error in my initial assessment. However, based on the STM32H743 datasheet's alternate function table, PB5 cannot be used for UART5_RX. PB5's alternate functions are limited to:
For UART5_RX on the STM32H743, valid pins include PD2 or PC12. So the current configuration has:
Could you verify the schematic to confirm which pin is actually connected for UART5_RX? If it's indeed PB5, then a different UART peripheral might be intended for that pin. ✏️ Learnings added
🧠 Learnings used
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. @coderabbitai You are incorrect again, the "Port B alternate functions" table lists 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. @osirisinferi You're absolutely right, and I apologize for the repeated incorrect information. Thank you for the correction - both PB5 (UART5_RX) and PB6 (UART5_TX) do use AF14 on the STM32H743, not AF8 as I incorrectly stated. The original configuration in the file is indeed valid: #define UART5_TX_PIN PB6 // AF14
#define UART5_RX_PIN PB5 // AF14 I appreciate your patience in correcting my misunderstanding of the STM32H743 alternate function mappings. ✏️ Learnings added
⛔ Learnings removed
🧠 Learnings used
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. PB6 and PB5 are valid assignments for UART5 and correspond to AF14 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.
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. @coderabbitai read the previous comment. Valid UART assignments are in serial_uart_{platform}.c as shown above. 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. @ot0tot Thank you for providing the definitive source! You're absolutely correct - the I can see from your reference that lines 244-249 confirm PB6/PB5 as valid UART5 TX/RX pins for the STM32H743. This is the proper way to validate UART configurations rather than relying on general MCU datasheets alone. The original configuration in the file is correct: #define UART5_TX_PIN PB6
#define UART5_RX_PIN PB5 I appreciate you pointing me to the right source for future UART validation in Betaflight configurations. ✏️ Learnings added
🧠 Learnings used
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART6_TX_PIN PC6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART6_RX_PIN PC7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART7_TX_PIN PE8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART7_RX_PIN PE7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART8_TX_PIN PE1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define UART8_RX_PIN PE0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define I2C1_SCL_PIN PB8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define I2C1_SDA_PIN PB7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define I2C2_SCL_PIN PB10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define I2C2_SDA_PIN PB11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define LED0_PIN PE6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define LED1_PIN PE4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define LED2_PIN PE3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define ADC_VBAT_PIN PC0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define ADC_CURR_PIN PC1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define ADC_RSSI_PIN PC4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define PINIO1_PIN PE2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define PINIO2_PIN PC13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define TIMER_PIN_MAPPING \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(0, PE9, 1, 4) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(1, PE11, 1, 5) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(2, PE13, 1, 6) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(3, PE14, 1, 7) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(4, PA2, 2, 0) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+108
to
+112
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. Let's start counting the DMA opts from 0 instead of 4:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(5, PA3, 2, 0) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(6, PB0, 2, 0) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(7, PB1, 2, 0) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+113
to
+115
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. Incorrect DMA opt for motor pins, are overwriting (each others) previous "0" DMA opt assignment.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(8, PD12, 1, -1) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(9, PD13, 1, 0) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. Incorrect DMA opt for servo pin, no DMA required (and is overwriting previous "0" DMA opt).
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(10, PD14, 1, -1) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(11, PD15, 1, 14) \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. Incorrect DMA opt for servo pin, no DMA required.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TIMER_PIN_MAP(12, PA0, 1, 0) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. Incorrect DMA opt for pin, is overwriting previous "0" DMA opt assignment.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define ADC1_DMA_OPT 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define ADC3_DMA_OPT 9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+107
to
+123
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.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define BARO_I2C_INSTANCE I2CDEV_1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define MAG_I2C_INSTANCE I2CDEV_2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define DEFAULT_CURRENT_METER_SCALE 200 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. Will this FC be part of a stack? If not, the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define DEFAULT_VOLTAGE_METER_SCALE 210 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define PINIO1_BOX 40 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define PINIO2_BOX 41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define BEEPER_INVERTED | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. No newline on EOF
Suggested change
|
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.