Skip to content

Commit 57cbdd0

Browse files
committed
feat: update
1 parent 5ba1a03 commit 57cbdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chip/CH422G.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
#define REG_WR_OC_DEFAULT_VAL (0x0FUL)
3939
#define REG_WR_IO_DEFAULT_VAL (0xFFUL)
4040
#define REG_OUT_DEFAULT_VAL ((REG_WR_OC_DEFAULT_VAL << 8) | REG_WR_IO_DEFAULT_VAL)
41-
#define REG_DIR_DEFAULT_VAL (0xFFUL)
41+
#define REG_DIR_DEFAULT_VAL (0xFFFUL)
4242

4343
#define REG_WR_SET_BIT_IO_OE (1 << 0)
44-
#define REG_WR_SET_BIT_OD_EN (1 << 4)
44+
#define REG_WR_SET_BIT_OD_EN (1 << 2)
4545

4646
/**
4747
* @brief Device Structure Type

0 commit comments

Comments
 (0)