Readme.md finished for current protocol

This commit is contained in:
Edward Emelianov
2024-08-20 17:25:26 +03:00
parent b10fb37c58
commit 3e86556206
5 changed files with 171 additions and 54 deletions

View File

@@ -194,7 +194,7 @@ TRUE_INLINE void iwdg_setup(){
static void setup_mpwm(int i){
volatile TIM_TypeDef *TIM = mottimers[i];
TIM->CR1 = TIM_CR1_ARPE; // buffered ARR
TIM->PSC = MOTORTIM_PSC; // 16MHz
TIM->PSC = MOTORTIM_PSC; // 26MHz
// PWM mode 1 (active -> inactive)
uint8_t n = mottchannels[i];
switch(n){