/* * SPDX-FileCopyrightText: 2020 Benjamin Valentin * SPDX-License-Identifier: LGPL-2.1-only */ /** * @ingroup boards_nrf52840dongle * @{ * @file * @brief Allows reboot into bootloader via hardware reset * * @author Benjamin Valentin * * @} */ #ifdef MODULE_USB_BOARD_RESET #include "periph/gpio.h" /* P0.19 is connected to the RESET line */ #define BSP_SELF_PINRESET_PIN GPIO_PIN(0, 19) void usb_board_reset_in_bootloader(void) { gpio_init(BSP_SELF_PINRESET_PIN, GPIO_OUT); gpio_clear(BSP_SELF_PINRESET_PIN); } #endif /* MODULE_USB_BOARD_RESET */