Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/target/KAKUTEH7/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target_stm32h743xi(KAKUTEH7)
target_stm32h743xi(KAKUTEH7MINI)
4 changes: 3 additions & 1 deletion src/main/target/KAKUTEH7/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ void targetConfiguration(void)
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART1)].functionMask = FUNCTION_MSP;
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART1)].msp_baudrateIndex = BAUD_115200;

#ifdef KAKUTEH7
//No BT on H7 Mini, do not reserve port
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART2)].functionMask = FUNCTION_MSP;
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART2)].msp_baudrateIndex = BAUD_115200;

#endif

}
26 changes: 26 additions & 0 deletions src/main/target/KAKUTEH7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@

#pragma once

#ifdef KAKUTEH7MINI
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be #ifndef ??

#define TARGET_BOARD_IDENTIFIER "KTH7"
#define USBD_PRODUCT_STRING "KAKUTEH7"
#else
#define TARGET_BOARD_IDENTIFIER "KH7M"
#define USBD_PRODUCT_STRING "KAKUTEH7MINI"

#endif

#define USE_TARGET_CONFIG

Expand All @@ -41,6 +47,17 @@
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7

#ifdef KAKUTEH7MINI

#define USE_FLASHFS
#define USE_FLASH_M25P16
#define M25P16_CS_PIN PA4
#define M25P16_SPI_BUS BUS_SPI1

#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT

#else

#define USE_SDCARD
#define USE_SDCARD_SPI
#define SDCARD_SPI_BUS BUS_SPI1
Expand All @@ -50,6 +67,9 @@

#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT

#endif


// *************** SPI2 ***********************
#define USE_SPI_DEVICE_2
#define SPI2_SCK_PIN PB13
Expand Down Expand Up @@ -151,7 +171,13 @@
// *************** PINIO ***************************
#define USE_PINIO
#define USE_PINIOBOX

#ifdef KAKUTEH7MINI
#define PINIO1_PIN PB11
#define PINIO1_FLAGS PINIO_FLAGS_INVERTED
#else
#define PINIO1_PIN PE13
#endif

// *************** LEDSTRIP ************************
#define USE_LED_STRIP
Expand Down