Skip to content

Commit 04b60fe

Browse files
committed
psoc-edge/machine_pin: Cleaned up TODOS, and marked as additional modes.
Signed-off-by: jaenrig-ifx <[email protected]>
1 parent 1da1375 commit 04b60fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ports/psoc-edge/machine_pin.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ static uint32_t get_drive_mode(uint8_t mode, uint8_t pull) {
100100
} else {
101101
drive_mode = CY_GPIO_DM_HIGHZ;
102102
}
103-
// TODO: Check if this will be used.
104-
// CY_GPIO_DM_STRONG ??
103+
// Additional available unused modes:
104+
// - CY_GPIO_DM_STRONG
105105
} else if (mode == GPIO_MODE_OUT) {
106106
if (pull == GPIO_PULL_UP) {
107107
drive_mode = CY_GPIO_DM_PULLUP_IN_OFF;
@@ -114,9 +114,9 @@ static uint32_t get_drive_mode(uint8_t mode, uint8_t pull) {
114114
}
115115
} else if (mode == GPIO_MODE_OPEN_DRAIN) {
116116
drive_mode = CY_GPIO_DM_OD_DRIVESLOW_IN_OFF;
117-
// TODO: Check if we support other open drain modes
118-
// CY_GPIO_DM_OD_DRIVESLOW
119-
// CY_GPIO_DM_OD_DRIVESHIGH
117+
// Additional available unused modes:
118+
// - CY_GPIO_DM_OD_DRIVESLOW
119+
// - CY_GPIO_DM_OD_DRIVESHIGH
120120
} else if (mode == GPIO_MODE_NONE) {
121121
drive_mode = CY_GPIO_DM_INVALID;
122122
}

0 commit comments

Comments
 (0)