Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliased configuration for 30 and 50MHz speeds. #558

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add aliased configuration for 30 and 50MHz speeds.
cnlohr committed Mar 12, 2025
commit 2d17b25138f14bf6a78b5f0049ed6197bf9ea165
4 changes: 4 additions & 0 deletions ch32fun/ch32v003hw.h
Original file line number Diff line number Diff line change
@@ -246,15 +246,19 @@ typedef enum
GPIO_CFGLR_OUT_10Mhz_PP = 1,
GPIO_CFGLR_OUT_2Mhz_PP = 2,
GPIO_CFGLR_OUT_50Mhz_PP = 3,
GPIO_CFGLR_OUT_30Mhz_PP = 3,
GPIO_CFGLR_OUT_10Mhz_OD = 5,
GPIO_CFGLR_OUT_2Mhz_OD = 6,
GPIO_CFGLR_OUT_50Mhz_OD = 7,
GPIO_CFGLR_OUT_30Mhz_OD = 7,
GPIO_CFGLR_OUT_10Mhz_AF_PP = 9,
GPIO_CFGLR_OUT_2Mhz_AF_PP = 10,
GPIO_CFGLR_OUT_50Mhz_AF_PP = 11,
GPIO_CFGLR_OUT_30Mhz_AF_PP = 11,
GPIO_CFGLR_OUT_10Mhz_AF_OD = 13,
GPIO_CFGLR_OUT_2Mhz_AF_OD = 14,
GPIO_CFGLR_OUT_50Mhz_AF_OD = 15,
GPIO_CFGLR_OUT_30Mhz_AF_OD = 15,
} GPIO_CFGLR_PIN_MODE_Typedef;

typedef union {