Skip to content

Update NEUTRONRCF435 #813

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
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
27 changes: 11 additions & 16 deletions configs/NEUTRONRCF435/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

#define ADC_VBAT_PIN PC2
#define ADC_CURR_PIN PC1
#define ADC1_DMA_OPT 11
#define ADC1_DMA_OPT 8

#define USE_FLASH
#define USE_FLASH_W25Q128FV
Expand All @@ -107,21 +107,16 @@
#define MAX7456_SPI_INSTANCE SPI2
#define MAX7456_SPI_CS_PIN PB12

/*
//TODO camera control not implemented yet
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, CAMERA_CONTROL_PIN, 2, 13 ) \
TIMER_PIN_MAP( 1, LED_STRIP_PIN, 2, 7 ) \
*/
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 1, LED_STRIP_PIN, 2, 7 ) \
TIMER_PIN_MAP( 2, UART2_RX_PIN, 1, 6 ) \
TIMER_PIN_MAP( 3, SERVO1_PIN, 1, 11 ) \
TIMER_PIN_MAP( 4, SERVO2_PIN, 1, 10 ) \
TIMER_PIN_MAP( 5, SERVO3_PIN, 2, 8 ) \
TIMER_PIN_MAP( 6, SERVO4_PIN, 2, 9 ) \
TIMER_PIN_MAP( 7, MOTOR1_PIN, 2, 0 ) \
TIMER_PIN_MAP( 8, MOTOR2_PIN, 2, 2 ) \
TIMER_PIN_MAP( 9, MOTOR3_PIN, 1, 1 ) \
TIMER_PIN_MAP(10, MOTOR4_PIN, 1, 3 )
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, MOTOR1_PIN, 2, 0 ) \
TIMER_PIN_MAP( 1, MOTOR2_PIN, 2, 1 ) \
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 2 ) \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 3 ) \
TIMER_PIN_MAP( 4, SERVO1_PIN, 1, -1 ) \
TIMER_PIN_MAP( 5, SERVO2_PIN, 1, -1 ) \
TIMER_PIN_MAP( 6, SERVO3_PIN, 2, -1 ) \
TIMER_PIN_MAP( 7, SERVO4_PIN, 2, -1 ) \
TIMER_PIN_MAP( 8, LED_STRIP_PIN, 2, 4 ) \
TIMER_PIN_MAP( 9, CAMERA_CONTROL_PIN, 2, -1 )

#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
Expand Down