Skip to content

Commit

Permalink
Assign Rumba32 serial timer in PlatformIO
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith committed Aug 29, 2020
1 parent 6786121 commit e501ade
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@
// Configure Timers
// TIM6 is used for TONE
// TIM7 is used for SERVO
// TIMER_SERIAL defaults to TIM7 so we'll override it here
//
#define STEP_TIMER 10
#define TEMP_TIMER 14
#define TIMER_SERIAL TIM9
// TIMER_SERIAL defaults to TIM7 and must be overridden in the platformio.h file if SERVO will also be used.
// This will be difficult to solve from the Arduino IDE, without modifying the RUMBA32 variant
// included with the STM32 framework.

#define STEP_TIMER 10
#define TEMP_TIMER 14
#define HAL_TIMER_RATE F_CPU

//
Expand Down
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ build_flags = ${common_stm32.build_flags}
-DHAL_PCD_MODULE_ENABLED
-DDISABLE_GENERIC_SERIALUSB
-DHAL_UART_MODULE_ENABLED
-DTIMER_SERIAL=TIM9
board = rumba32_f446ve
upload_protocol = dfu
monitor_speed = 500000
Expand Down

0 comments on commit e501ade

Please sign in to comment.