Skip to content

Commit

Permalink
HT32: fix PIN_DRVR_8MA macro
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemro committed May 7, 2024
1 parent 0689ae8 commit 8a560ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion os/hal/boards/HT_HT32F1653_4/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

/*
Expand Down
2 changes: 1 addition & 1 deletion os/hal/boards/HT_HT32F1655_6/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

/*
Expand Down
2 changes: 1 addition & 1 deletion os/hal/boards/HT_HT32F52342_52/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

/*
Expand Down

0 comments on commit 8a560ac

Please sign in to comment.