prime.c 335 B

12345678910111213141516
  1. // Copyright 2024 Dasky (@daskygit)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. void board_init(void) {
  5. gpio_set_pin_output(A15);
  6. gpio_write_pin_high(A15); // Activate D+ pullup
  7. gpio_set_pin_output(OPTICAL_SW_PWR);
  8. gpio_write_pin_low(OPTICAL_SW_PWR); // Enable power for optical switches
  9. }