This commit is contained in:
Matthew Kennedy 2022-04-06 00:55:28 -07:00
commit b6985f6416
5 changed files with 14 additions and 6 deletions

3
.gitmodules vendored
View File

@ -1,6 +1,7 @@
[submodule "firmware/ChibiOS"]
path = firmware/ChibiOS
url = https://github.com/ChibiOS/ChibiOS
url = https://github.com/rusefi/ChibiOS
branch = master.wideband
[submodule "firmware/cmsis-svd"]
path = firmware/cmsis-svd
url = https://github.com/posborne/cmsis-svd

@ -1 +1 @@
Subproject commit d659db7440a251608405f40efd73658a6e2abc8a
Subproject commit 6e4b068f71287f7d67725d00e5d3a5d53cb4ac7b

View File

@ -15,6 +15,7 @@
*/
#include "hal.h"
#include "io_pins.h"
/**
* @brief PAL setup.
@ -46,4 +47,5 @@ void __early_init(void) {
* Board-specific initialization code.
*/
void boardInit(void) {
palSetPadMode(HEATER_PORT, HEATER_PIN, PAL_MODE_OUTPUT_PUSHPULL );
}

View File

@ -9,10 +9,15 @@
#define NERNST_ESR_DRIVER_PORT GPIOB
#define NERNST_ESR_DRIVER_PIN 12
// PC13
#define HEATER_PWM_DEVICE PWMD1
// PC13 on rev 0.1
// exploring jumper wire from PB6 DISP3 to HEATER
// PB6 TIM4_CH1
#define HEATER_PWM_DEVICE PWMD4
#define HEATER_PWM_CHANNEL 0
#define HEATER_PORT GPIOB
#define HEATER_PIN 6
// PA1 TIM2_CH2
#define PUMP_DAC_PWM_DEVICE PWMD2
#define PUMP_DAC_PWM_CHANNEL 1

View File

@ -134,10 +134,10 @@
* PWM driver system settings.
*/
#define STM32_PWM_USE_ADVANCED FALSE
#define STM32_PWM_USE_TIM1 TRUE
#define STM32_PWM_USE_TIM1 FALSE
#define STM32_PWM_USE_TIM2 TRUE
#define STM32_PWM_USE_TIM3 FALSE
#define STM32_PWM_USE_TIM4 FALSE
#define STM32_PWM_USE_TIM4 TRUE
#define STM32_PWM_USE_TIM5 FALSE
#define STM32_PWM_USE_TIM8 FALSE
#define STM32_PWM_TIM1_IRQ_PRIORITY 7