Skip to content

Commit 14dc6a6

Browse files
ellenspernisv
authored andcommitted
🩹 Fix MARLIN_F446Zx_TRONXY variant (MarlinFirmware#25659)
Followup to 9be1554
1 parent 5eeaaf6 commit 14dc6a6

File tree

1 file changed

+9
-9
lines changed
  • buildroot/share/PlatformIO/variants/MARLIN_F446Zx_TRONXY

1 file changed

+9
-9
lines changed

buildroot/share/PlatformIO/variants/MARLIN_F446Zx_TRONXY/variant.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ uint32_t myvar[] = {1,2,3,4,5,6,7,8};
173173
void myshow(int fre, int times) // YSZ-WORK
174174
{
175175
uint32_t index = 10;
176-
RCC->AHB1ENR |= 1 << 6; // port G clock
177-
GPIOG->MODER &= ~(3UL << 2 * index); // clear old mode
178-
GPIOG->MODER |= 1 << 2 * index; // mode is output
179-
GPIOG->OSPEEDR &= ~(3UL << 2 * index) // Clear old output speed
180-
GPIOG->OSPEEDR |= 2 << 2 * index; // Set output speed
181-
GPIOG->OTYPER &= ~(1UL << index) // clear old output
182-
GPIOG->OTYPER |= 0 << index; // Set the output mode to push-pull
183-
GPIOG->PUPDR &= ~(3 << 2 * index) // Clear the original settings first
184-
GPIOG->PUPDR |= 1 << 2 * index; // Set new up and down
176+
RCC->AHB1ENR |= 1 << 6; // port G clock
177+
GPIOG->MODER &= ~(3UL << 2 * index); // clear old mode
178+
GPIOG->MODER |= 1 << 2 * index; // mode is output
179+
GPIOG->OSPEEDR &= ~(3UL << 2 * index); // Clear old output speed
180+
GPIOG->OSPEEDR |= 2 << 2 * index; // Set output speed
181+
GPIOG->OTYPER &= ~(1UL << index); // clear old output
182+
GPIOG->OTYPER |= 0 << index; // Set the output mode to push-pull
183+
GPIOG->PUPDR &= ~(3 << 2 * index); // Clear the original settings first
184+
GPIOG->PUPDR |= 1 << 2 * index; // Set new up and down
185185
while (times != 0) {
186186
GPIOG->BSRR = 1UL << index;
187187
for (int i = 0; i < fre; i++)

0 commit comments

Comments
 (0)