From 8a560acd96fcb3561ae972ca003d28a277038df0 Mon Sep 17 00:00:00 2001 From: Hansem Ro Date: Tue, 7 May 2024 00:17:46 -0700 Subject: [PATCH] HT32: fix PIN_DRVR_8MA macro --- os/hal/boards/HT_HT32F1653_4/board.h | 2 +- os/hal/boards/HT_HT32F1655_6/board.h | 2 +- os/hal/boards/HT_HT32F52342_52/board.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/hal/boards/HT_HT32F1653_4/board.h b/os/hal/boards/HT_HT32F1653_4/board.h index 29f6e3cd7f..b414dc3cba 100644 --- a/os/hal/boards/HT_HT32F1653_4/board.h +++ b/os/hal/boards/HT_HT32F1653_4/board.h @@ -124,7 +124,7 @@ #define PIN_ODR_PUSHPULL(n) (0U << (n)) #define PIN_ODR_OPENDRAIN(n) (1U << (n)) #define PIN_DRVR_4MA(n) (0U << (n)) -#define PIN_DRVR_8MA(n) (0U << (n)) +#define PIN_DRVR_8MA(n) (1U << (n)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) /* diff --git a/os/hal/boards/HT_HT32F1655_6/board.h b/os/hal/boards/HT_HT32F1655_6/board.h index fe9ec9c876..52ef5709d4 100644 --- a/os/hal/boards/HT_HT32F1655_6/board.h +++ b/os/hal/boards/HT_HT32F1655_6/board.h @@ -141,7 +141,7 @@ #define PIN_ODR_PUSHPULL(n) (0U << (n)) #define PIN_ODR_OPENDRAIN(n) (1U << (n)) #define PIN_DRVR_4MA(n) (0U << (n)) -#define PIN_DRVR_8MA(n) (0U << (n)) +#define PIN_DRVR_8MA(n) (1U << (n)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) /* diff --git a/os/hal/boards/HT_HT32F52342_52/board.h b/os/hal/boards/HT_HT32F52342_52/board.h index bcbef1902f..2cca557957 100644 --- a/os/hal/boards/HT_HT32F52342_52/board.h +++ b/os/hal/boards/HT_HT32F52342_52/board.h @@ -124,7 +124,7 @@ #define PIN_ODR_PUSHPULL(n) (0U << (n)) #define PIN_ODR_OPENDRAIN(n) (1U << (n)) #define PIN_DRVR_4MA(n) (0U << (n)) -#define PIN_DRVR_8MA(n) (0U << (n)) +#define PIN_DRVR_8MA(n) (1U << (n)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) /*