logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

rev2.h (1293B)


  1. /* Copyright 2018 MakotoKurauchi
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "quantum.h"
  18. bool is_mac_mode(void);
  19. void set_mac_mode_kb(bool macmode);
  20. #ifdef OLED_ENABLE
  21. void render_helix_logo(void);
  22. #endif
  23. #ifndef SPLIT_KEYBOARD
  24. extern bool is_helix_master(void);
  25. #define is_keyboard_master() is_helix_master()
  26. #endif
  27. // Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
  28. // But keep 'is_master' for a while for backwards compatibility
  29. // for the old keymap.c.
  30. extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
  31. #define has_usb() is_keyboard_master()