Skip to content

Commit c4f8b7f

Browse files
X39Ahaslinghuisosirisinferi
authored
Add HAKRC530 target config (#1252)
* Add HAKRC530 target config * Update configs/HARC/HAKRC530/config.h Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> * Update configs/HARC/HAKRC530/config.h Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> * Update configs/HARC/HAKRC530/config.h Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> * Update configs/HARC/HAKRC530/config.h Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> * Update configs/HARC/HAKRC530/config.h Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> * Update header comments in config.h * Update target information in config.h Removed old target information and added updated target details. * Comment out supported target information Commented out the supported target information in config.h. * Update license comment in config.h * Update configs/HARC/HAKRC530/config.h Co-authored-by: Osiris Inferi <github@flut.nl.eu.org> * Apply suggestion from @osirisinferi Co-authored-by: Osiris Inferi <github@flut.nl.eu.org> * get it done --------- Co-authored-by: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com> Co-authored-by: Osiris Inferi <github@flut.nl.eu.org>
1 parent 365df6f commit c4f8b7f

1 file changed

Lines changed: 108 additions & 0 deletions

File tree

‎configs/HARC/HAKRC530/config.h‎

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/*
2+
* This file is part of Betaflight.
3+
*
4+
* Betaflight is free software. You can redistribute this software
5+
* and/or modify this software under the terms of the GNU General
6+
* Public License as published by the Free Software Foundation,
7+
* either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* Betaflight is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+
*
14+
* See the GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public
17+
* License along with this software.
18+
*
19+
* If not, see <http://www.gnu.org/licenses/>.
20+
*/
21+
22+
/*
23+
SUPPORTED TARGET - THANK YOU
24+
REFERENCE: sha256_d6b1c2ec6f49dec71100d500d0d6248a7602387cca8691e149a4cdc75b2d2a4f
25+
DATE: 2026-05-01
26+
*/
27+
28+
#pragma once
29+
30+
#define FC_TARGET_MCU STM32C591
31+
#define BOARD_NAME HAKRC530
32+
#define MANUFACTURER_ID HARC
33+
34+
#define USE_ACC
35+
#define USE_GYRO
36+
#define USE_ACC_SPI_ICM42688P
37+
#define USE_ACCGYRO_LSM6DSK320X
38+
#define USE_GYRO_SPI_ICM42688P
39+
#define USE_BARO
40+
#define USE_BARO_DPS310
41+
#define USE_FLASH
42+
#define USE_FLASH_M25P16
43+
#define USE_FLASH_W25Q128FV
44+
#define USE_MAX7456
45+
46+
#define BEEPER_PIN PB3
47+
#define MOTOR1_PIN PC6
48+
#define MOTOR2_PIN PC7
49+
#define MOTOR3_PIN PC8
50+
#define MOTOR4_PIN PC9
51+
#define LED_STRIP_PIN PA8
52+
#define UART1_TX_PIN PB6
53+
#define UART3_TX_PIN PB10
54+
#define UART4_TX_PIN PA0
55+
#define UART5_TX_PIN PC12
56+
#define UART1_RX_PIN PB7
57+
#define UART2_RX_PIN PA3
58+
#define UART3_RX_PIN PB1
59+
#define UART4_RX_PIN PA1
60+
#define UART5_RX_PIN PD2
61+
#define I2C1_SCL_PIN PB8
62+
#define I2C1_SDA_PIN PB9
63+
#define LED0_PIN PA9
64+
#define LED1_PIN PA10
65+
#define SPI1_SCK_PIN PA5
66+
#define SPI2_SCK_PIN PB13
67+
#define SPI3_SCK_PIN PC10
68+
#define SPI1_SDI_PIN PA6
69+
#define SPI2_SDI_PIN PB14
70+
#define SPI3_SDI_PIN PC11
71+
#define SPI1_SDO_PIN PA7
72+
#define SPI2_SDO_PIN PB15
73+
#define SPI3_SDO_PIN PB5
74+
#define ESCSERIAL_PIN PA1
75+
#define ADC_VBAT_PIN PC1
76+
#define ADC_CURR_PIN PC3
77+
#define MAX7456_SPI_CS_PIN PB12
78+
#define FLASH_CS_PIN PA15
79+
#define GYRO_1_EXTI_PIN PC4
80+
#define GYRO_1_CS_PIN PA4
81+
#define PINIO1_PIN PC2
82+
#define PINIO2_PIN PC5
83+
84+
#define TIMER_PIN_MAPPING \
85+
TIMER_PIN_MAP( 0, PC6, 2, 0) \
86+
TIMER_PIN_MAP( 1, PC7, 2, 1) \
87+
TIMER_PIN_MAP( 2, PC8, 2, 2) \
88+
TIMER_PIN_MAP( 3, PC9, 2, 3) \
89+
TIMER_PIN_MAP( 4, PA8, 1, 4)
90+
91+
#define ADC1_DMA_OPT 8
92+
93+
#define BARO_I2C_INSTANCE I2CDEV_1
94+
#define MAG_I2C_INSTANCE I2CDEV_1
95+
#define ADC_INSTANCE ADC1
96+
#define BEEPER_INVERTED
97+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
98+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
99+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
100+
#define MAX7456_SPI_INSTANCE SPI2
101+
#define FLASH_SPI_INSTANCE SPI3
102+
#define PINIO1_BOX 40
103+
#define BOX_USER1_NAME "CAM 1,2"
104+
#define PINIO2_BOX 41
105+
#define BOX_USER2_NAME "VTX OFF"
106+
#define PINIO2_CONFIG 129
107+
#define GYRO_1_SPI_INSTANCE SPI1
108+
#define GYRO_1_ALIGN CW90_DEG

0 commit comments

Comments
 (0)