Skip to content

Commit cfb0886

Browse files
authored
Merge pull request #9686 from iNavFlight/dzikuvx-speedybee-f405-wing-update
Add PINIO to SPEEDYBEEF405WING
2 parents 3db6c52 + d334fd1 commit cfb0886

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/target/SPEEDYBEEF405WING/config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@
2929

3030
#include "fc/fc_msp_box.h"
3131
#include "io/serial.h"
32+
#include "io/piniobox.h"
3233

3334
void targetConfiguration(void)
3435
{
3536
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART1)].functionMask = FUNCTION_RX_SERIAL;
3637
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART3)].functionMask = FUNCTION_GPS;
3738
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART6)].functionMask = FUNCTION_MSP;
39+
40+
pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1;
3841
}

src/main/target/SPEEDYBEEF405WING/target.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,7 @@
169169
#define TARGET_IO_PORTD (BIT(2))
170170

171171
#define MAX_PWM_OUTPUT_PORTS 11
172+
173+
#define USE_PINIO
174+
#define USE_PINIOBOX
175+
#define PINIO1_PIN PC13

0 commit comments

Comments
 (0)