summaryrefslogtreecommitdiff
path: root/board/meep/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/meep/board.c')
-rw-r--r--board/meep/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/meep/board.c b/board/meep/board.c
index 85831cd85e..591e8758b9 100644
--- a/board/meep/board.c
+++ b/board/meep/board.c
@@ -330,3 +330,13 @@ const int keyboard_factory_scan_pins[][2] = {
const int keyboard_factory_scan_pins_used =
ARRAY_SIZE(keyboard_factory_scan_pins);
#endif
+
+void board_overcurrent_event(int port, int is_overcurrented)
+{
+ /* Sanity check the port. */
+ if ((port < 0) || (port >= CONFIG_USB_PD_PORT_COUNT))
+ return;
+
+ /* Note that the level is inverted because the pin is active low. */
+ gpio_set_level(GPIO_USB_C_OC, !is_overcurrented);
+}