From 3f3fa0791895f14370b4bb3e8512597688c45122 Mon Sep 17 00:00:00 2001 From: skullydazed Date: Tue, 17 Oct 2017 18:05:21 -0700 Subject: Reorganize clueboard into a single directory (#1855) --- keyboards/clueboard/17/clueboard_17.c | 60 + keyboards/clueboard/17/clueboard_17.h | 36 + keyboards/clueboard/17/config.h | 100 ++ keyboards/clueboard/17/keymaps/default/keymap.c | 65 ++ keyboards/clueboard/17/readme.md | 16 + keyboards/clueboard/17/rules.mk | 65 ++ .../60/boards/GENERIC_STM32_F303XC/board.c | 124 ++ .../60/boards/GENERIC_STM32_F303XC/board.h | 1187 ++++++++++++++++++++ .../60/boards/GENERIC_STM32_F303XC/board.mk | 5 + keyboards/clueboard/60/bootloader_defs.h | 7 + keyboards/clueboard/60/chconf.h | 520 +++++++++ keyboards/clueboard/60/clueboard_60.c | 24 + keyboards/clueboard/60/clueboard_60.h | 105 ++ keyboards/clueboard/60/config.h | 133 +++ keyboards/clueboard/60/halconf.h | 388 +++++++ keyboards/clueboard/60/keymaps/default/keymap.c | 43 + keyboards/clueboard/60/keymaps/default/readme.md | 1 + .../clueboard/60/keymaps/default_aek/keymap.c | 43 + .../clueboard/60/keymaps/default_aek/readme.md | 1 + keyboards/clueboard/60/led.c | 58 + keyboards/clueboard/60/matrix.c | 177 +++ keyboards/clueboard/60/mcuconf.h | 257 +++++ keyboards/clueboard/60/readme.md | 14 + keyboards/clueboard/60/rules.mk | 54 + keyboards/clueboard/66/clueboard_66.c | 1 + keyboards/clueboard/66/clueboard_66.h | 16 + keyboards/clueboard/66/config.h | 63 ++ keyboards/clueboard/66/keymaps/bloodlvst/Makefile | 2 + keyboards/clueboard/66/keymaps/bloodlvst/config.h | 8 + keyboards/clueboard/66/keymaps/bloodlvst/keymap.c | 41 + keyboards/clueboard/66/keymaps/bloodlvst/readme.md | 17 + keyboards/clueboard/66/keymaps/bloodlvst/rules.mk | 2 + keyboards/clueboard/66/keymaps/caps_fn/keymap.c | 41 + keyboards/clueboard/66/keymaps/caps_fn/readme.md | 6 + keyboards/clueboard/66/keymaps/colemak/keymap.c | 41 + keyboards/clueboard/66/keymaps/default/keymap.c | 39 + keyboards/clueboard/66/keymaps/default/readme.md | 8 + keyboards/clueboard/66/keymaps/jokrik/keymap.c | 41 + keyboards/clueboard/66/keymaps/jokrik/readme.md | 2 + .../clueboard/66/keymaps/mac_optimized/keymap.c | 41 + .../clueboard/66/keymaps/mac_optimized/readme.md | 6 + keyboards/clueboard/66/keymaps/magicmonty/Makefile | 9 + keyboards/clueboard/66/keymaps/magicmonty/config.h | 40 + keyboards/clueboard/66/keymaps/magicmonty/keymap.c | 230 ++++ .../clueboard/66/keymaps/magicmonty/readme.md | 53 + keyboards/clueboard/66/keymaps/magicmonty/rules.mk | 9 + keyboards/clueboard/66/keymaps/maximised/keymap.c | 41 + keyboards/clueboard/66/keymaps/maximised/readme.md | 5 + keyboards/clueboard/66/keymaps/mouse_keys/Makefile | 1 + keyboards/clueboard/66/keymaps/mouse_keys/keymap.c | 51 + .../clueboard/66/keymaps/mouse_keys/readme.md | 7 + keyboards/clueboard/66/keymaps/mouse_keys/rules.mk | 1 + keyboards/clueboard/66/keymaps/serubin/Makefile | 4 + keyboards/clueboard/66/keymaps/serubin/keymap.c | 52 + keyboards/clueboard/66/keymaps/serubin/readme.md | 14 + keyboards/clueboard/66/keymaps/serubin/rules.mk | 4 + keyboards/clueboard/66/keymaps/shift_fn/keymap.c | 41 + keyboards/clueboard/66/keymaps/shift_fn/readme.md | 6 + keyboards/clueboard/66/keymaps/skully/keymap.c | 41 + keyboards/clueboard/66/keymaps/skully/readme.md | 11 + keyboards/clueboard/66/keymaps/smt/keymap.c | 136 +++ keyboards/clueboard/66/keymaps/smt/readme.md | 21 + keyboards/clueboard/66/keymaps/tetris/Makefile | 1 + keyboards/clueboard/66/keymaps/tetris/keymap.c | 209 ++++ keyboards/clueboard/66/keymaps/tetris/readme.md | 33 + keyboards/clueboard/66/keymaps/tetris/rules.mk | 1 + .../clueboard/66/keymaps/tetris/tetris_text.c | 505 +++++++++ .../clueboard/66/keymaps/tetris/tetris_text.h | 45 + .../clueboard/66/keymaps/unix_optimized/keymap.c | 41 + .../clueboard/66/keymaps/unix_optimized/readme.md | 6 + .../clueboard/66/keymaps/win_optimized/keymap.c | 41 + .../clueboard/66/keymaps/win_optimized/readme.md | 8 + keyboards/clueboard/66/keymaps/xyverz/Makefile | 49 + keyboards/clueboard/66/keymaps/xyverz/keymap.c | 78 ++ keyboards/clueboard/66/keymaps/xyverz/rules.mk | 49 + keyboards/clueboard/66/readme.md | 18 + keyboards/clueboard/66/rev1/config.h | 36 + keyboards/clueboard/66/rev1/rev1.c | 17 + keyboards/clueboard/66/rev1/rev1.h | 47 + keyboards/clueboard/66/rev1/rules.mk | 1 + keyboards/clueboard/66/rev2/config.h | 48 + keyboards/clueboard/66/rev2/rev2.c | 63 ++ keyboards/clueboard/66/rev2/rev2.h | 52 + keyboards/clueboard/66/rev2/rules.mk | 1 + keyboards/clueboard/66/rev3/config.h | 48 + keyboards/clueboard/66/rev3/rev3.c | 63 ++ keyboards/clueboard/66/rev3/rev3.h | 52 + keyboards/clueboard/66/rev3/rules.mk | 1 + keyboards/clueboard/66/rules.mk | 22 + keyboards/clueboard/card/cluecard.c | 98 ++ keyboards/clueboard/card/cluecard.h | 22 + keyboards/clueboard/card/config.h | 167 +++ keyboards/clueboard/card/keymaps/default/config.h | 8 + keyboards/clueboard/card/keymaps/default/keymap.c | 63 ++ keyboards/clueboard/card/keymaps/default/readme.md | 3 + keyboards/clueboard/card/keymaps/default/rules.mk | 21 + .../clueboard/card/keymaps/rgb_effects/config.h | 12 + .../clueboard/card/keymaps/rgb_effects/keymap.c | 28 + .../clueboard/card/keymaps/rgb_effects/readme.md | 5 + .../clueboard/card/keymaps/rgb_effects/rules.mk | 21 + keyboards/clueboard/card/readme.md | 13 + keyboards/clueboard/card/rules.mk | 70 ++ keyboards/clueboard/readme.md | 13 + keyboards/clueboard_17/clueboard_17.c | 60 - keyboards/clueboard_17/clueboard_17.h | 36 - keyboards/clueboard_17/config.h | 100 -- keyboards/clueboard_17/keymaps/default/keymap.c | 65 -- keyboards/clueboard_17/readme.md | 15 - keyboards/clueboard_17/rules.mk | 65 -- .../boards/GENERIC_STM32_F303XC/board.c | 124 -- .../boards/GENERIC_STM32_F303XC/board.h | 1187 -------------------- .../boards/GENERIC_STM32_F303XC/board.mk | 5 - keyboards/clueboard_60/bootloader_defs.h | 7 - keyboards/clueboard_60/chconf.h | 520 --------- keyboards/clueboard_60/clueboard_60.c | 24 - keyboards/clueboard_60/clueboard_60.h | 105 -- keyboards/clueboard_60/config.h | 133 --- keyboards/clueboard_60/halconf.h | 388 ------- keyboards/clueboard_60/keymaps/default/keymap.c | 43 - keyboards/clueboard_60/keymaps/default/readme.md | 1 - .../clueboard_60/keymaps/default_aek/keymap.c | 43 - .../clueboard_60/keymaps/default_aek/readme.md | 1 - keyboards/clueboard_60/led.c | 58 - keyboards/clueboard_60/matrix.c | 177 --- keyboards/clueboard_60/mcuconf.h | 257 ----- keyboards/clueboard_60/readme.md | 14 - keyboards/clueboard_60/rules.mk | 54 - keyboards/clueboard_66/clueboard_66.c | 1 - keyboards/clueboard_66/clueboard_66.h | 16 - keyboards/clueboard_66/config.h | 63 -- keyboards/clueboard_66/keymaps/bloodlvst/Makefile | 2 - keyboards/clueboard_66/keymaps/bloodlvst/config.h | 8 - keyboards/clueboard_66/keymaps/bloodlvst/keymap.c | 41 - keyboards/clueboard_66/keymaps/bloodlvst/readme.md | 17 - keyboards/clueboard_66/keymaps/bloodlvst/rules.mk | 2 - keyboards/clueboard_66/keymaps/caps_fn/keymap.c | 41 - keyboards/clueboard_66/keymaps/caps_fn/readme.md | 6 - keyboards/clueboard_66/keymaps/colemak/keymap.c | 41 - keyboards/clueboard_66/keymaps/default/keymap.c | 39 - keyboards/clueboard_66/keymaps/default/readme.md | 8 - keyboards/clueboard_66/keymaps/jokrik/keymap.c | 41 - keyboards/clueboard_66/keymaps/jokrik/readme.md | 2 - .../clueboard_66/keymaps/mac_optimized/keymap.c | 41 - .../clueboard_66/keymaps/mac_optimized/readme.md | 6 - keyboards/clueboard_66/keymaps/magicmonty/Makefile | 9 - keyboards/clueboard_66/keymaps/magicmonty/config.h | 40 - keyboards/clueboard_66/keymaps/magicmonty/keymap.c | 230 ---- .../clueboard_66/keymaps/magicmonty/readme.md | 53 - keyboards/clueboard_66/keymaps/magicmonty/rules.mk | 9 - keyboards/clueboard_66/keymaps/maximised/keymap.c | 41 - keyboards/clueboard_66/keymaps/maximised/readme.md | 5 - keyboards/clueboard_66/keymaps/mouse_keys/Makefile | 1 - keyboards/clueboard_66/keymaps/mouse_keys/keymap.c | 51 - .../clueboard_66/keymaps/mouse_keys/readme.md | 7 - keyboards/clueboard_66/keymaps/mouse_keys/rules.mk | 1 - keyboards/clueboard_66/keymaps/serubin/Makefile | 4 - keyboards/clueboard_66/keymaps/serubin/keymap.c | 52 - keyboards/clueboard_66/keymaps/serubin/readme.md | 14 - keyboards/clueboard_66/keymaps/serubin/rules.mk | 4 - keyboards/clueboard_66/keymaps/shift_fn/keymap.c | 41 - keyboards/clueboard_66/keymaps/shift_fn/readme.md | 6 - keyboards/clueboard_66/keymaps/skully/keymap.c | 41 - keyboards/clueboard_66/keymaps/skully/readme.md | 11 - keyboards/clueboard_66/keymaps/smt/keymap.c | 136 --- keyboards/clueboard_66/keymaps/smt/readme.md | 21 - keyboards/clueboard_66/keymaps/tetris/Makefile | 1 - keyboards/clueboard_66/keymaps/tetris/keymap.c | 209 ---- keyboards/clueboard_66/keymaps/tetris/readme.md | 33 - keyboards/clueboard_66/keymaps/tetris/rules.mk | 1 - .../clueboard_66/keymaps/tetris/tetris_text.c | 505 --------- .../clueboard_66/keymaps/tetris/tetris_text.h | 45 - .../clueboard_66/keymaps/unix_optimized/keymap.c | 41 - .../clueboard_66/keymaps/unix_optimized/readme.md | 6 - .../clueboard_66/keymaps/win_optimized/keymap.c | 41 - .../clueboard_66/keymaps/win_optimized/readme.md | 8 - keyboards/clueboard_66/keymaps/xyverz/Makefile | 49 - keyboards/clueboard_66/keymaps/xyverz/keymap.c | 78 -- keyboards/clueboard_66/keymaps/xyverz/rules.mk | 49 - keyboards/clueboard_66/readme.md | 18 - keyboards/clueboard_66/rev1/config.h | 36 - keyboards/clueboard_66/rev1/rev1.c | 17 - keyboards/clueboard_66/rev1/rev1.h | 47 - keyboards/clueboard_66/rev1/rules.mk | 1 - keyboards/clueboard_66/rev2/config.h | 48 - keyboards/clueboard_66/rev2/rev2.c | 63 -- keyboards/clueboard_66/rev2/rev2.h | 52 - keyboards/clueboard_66/rev2/rules.mk | 1 - keyboards/clueboard_66/rev3/config.h | 48 - keyboards/clueboard_66/rev3/rev3.c | 63 -- keyboards/clueboard_66/rev3/rev3.h | 52 - keyboards/clueboard_66/rev3/rules.mk | 1 - keyboards/clueboard_66/rules.mk | 23 - keyboards/cluecard/cluecard.c | 98 -- keyboards/cluecard/cluecard.h | 22 - keyboards/cluecard/config.h | 167 --- keyboards/cluecard/keymaps/default/config.h | 8 - keyboards/cluecard/keymaps/default/keymap.c | 63 -- keyboards/cluecard/keymaps/default/readme.md | 5 - keyboards/cluecard/keymaps/default/rules.mk | 21 - keyboards/cluecard/keymaps/rgb_effects/config.h | 12 - keyboards/cluecard/keymaps/rgb_effects/keymap.c | 28 - keyboards/cluecard/keymaps/rgb_effects/readme.md | 7 - keyboards/cluecard/keymaps/rgb_effects/rules.mk | 21 - keyboards/cluecard/readme.md | 13 - keyboards/cluecard/rules.mk | 70 -- 205 files changed, 6714 insertions(+), 6705 deletions(-) create mode 100644 keyboards/clueboard/17/clueboard_17.c create mode 100644 keyboards/clueboard/17/clueboard_17.h create mode 100644 keyboards/clueboard/17/config.h create mode 100644 keyboards/clueboard/17/keymaps/default/keymap.c create mode 100644 keyboards/clueboard/17/readme.md create mode 100644 keyboards/clueboard/17/rules.mk create mode 100644 keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.c create mode 100644 keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.h create mode 100644 keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.mk create mode 100644 keyboards/clueboard/60/bootloader_defs.h create mode 100644 keyboards/clueboard/60/chconf.h create mode 100644 keyboards/clueboard/60/clueboard_60.c create mode 100644 keyboards/clueboard/60/clueboard_60.h create mode 100644 keyboards/clueboard/60/config.h create mode 100644 keyboards/clueboard/60/halconf.h create mode 100644 keyboards/clueboard/60/keymaps/default/keymap.c create mode 100644 keyboards/clueboard/60/keymaps/default/readme.md create mode 100644 keyboards/clueboard/60/keymaps/default_aek/keymap.c create mode 100644 keyboards/clueboard/60/keymaps/default_aek/readme.md create mode 100644 keyboards/clueboard/60/led.c create mode 100644 keyboards/clueboard/60/matrix.c create mode 100644 keyboards/clueboard/60/mcuconf.h create mode 100644 keyboards/clueboard/60/readme.md create mode 100644 keyboards/clueboard/60/rules.mk create mode 100644 keyboards/clueboard/66/clueboard_66.c create mode 100644 keyboards/clueboard/66/clueboard_66.h create mode 100644 keyboards/clueboard/66/config.h create mode 100644 keyboards/clueboard/66/keymaps/bloodlvst/Makefile create mode 100644 keyboards/clueboard/66/keymaps/bloodlvst/config.h create mode 100644 keyboards/clueboard/66/keymaps/bloodlvst/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/bloodlvst/readme.md create mode 100644 keyboards/clueboard/66/keymaps/bloodlvst/rules.mk create mode 100644 keyboards/clueboard/66/keymaps/caps_fn/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/caps_fn/readme.md create mode 100644 keyboards/clueboard/66/keymaps/colemak/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/default/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/default/readme.md create mode 100644 keyboards/clueboard/66/keymaps/jokrik/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/jokrik/readme.md create mode 100644 keyboards/clueboard/66/keymaps/mac_optimized/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/mac_optimized/readme.md create mode 100644 keyboards/clueboard/66/keymaps/magicmonty/Makefile create mode 100644 keyboards/clueboard/66/keymaps/magicmonty/config.h create mode 100644 keyboards/clueboard/66/keymaps/magicmonty/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/magicmonty/readme.md create mode 100644 keyboards/clueboard/66/keymaps/magicmonty/rules.mk create mode 100644 keyboards/clueboard/66/keymaps/maximised/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/maximised/readme.md create mode 100644 keyboards/clueboard/66/keymaps/mouse_keys/Makefile create mode 100644 keyboards/clueboard/66/keymaps/mouse_keys/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/mouse_keys/readme.md create mode 100644 keyboards/clueboard/66/keymaps/mouse_keys/rules.mk create mode 100644 keyboards/clueboard/66/keymaps/serubin/Makefile create mode 100644 keyboards/clueboard/66/keymaps/serubin/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/serubin/readme.md create mode 100644 keyboards/clueboard/66/keymaps/serubin/rules.mk create mode 100644 keyboards/clueboard/66/keymaps/shift_fn/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/shift_fn/readme.md create mode 100644 keyboards/clueboard/66/keymaps/skully/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/skully/readme.md create mode 100644 keyboards/clueboard/66/keymaps/smt/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/smt/readme.md create mode 100644 keyboards/clueboard/66/keymaps/tetris/Makefile create mode 100644 keyboards/clueboard/66/keymaps/tetris/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/tetris/readme.md create mode 100644 keyboards/clueboard/66/keymaps/tetris/rules.mk create mode 100644 keyboards/clueboard/66/keymaps/tetris/tetris_text.c create mode 100644 keyboards/clueboard/66/keymaps/tetris/tetris_text.h create mode 100644 keyboards/clueboard/66/keymaps/unix_optimized/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/unix_optimized/readme.md create mode 100644 keyboards/clueboard/66/keymaps/win_optimized/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/win_optimized/readme.md create mode 100644 keyboards/clueboard/66/keymaps/xyverz/Makefile create mode 100644 keyboards/clueboard/66/keymaps/xyverz/keymap.c create mode 100644 keyboards/clueboard/66/keymaps/xyverz/rules.mk create mode 100644 keyboards/clueboard/66/readme.md create mode 100644 keyboards/clueboard/66/rev1/config.h create mode 100644 keyboards/clueboard/66/rev1/rev1.c create mode 100644 keyboards/clueboard/66/rev1/rev1.h create mode 100644 keyboards/clueboard/66/rev1/rules.mk create mode 100644 keyboards/clueboard/66/rev2/config.h create mode 100644 keyboards/clueboard/66/rev2/rev2.c create mode 100644 keyboards/clueboard/66/rev2/rev2.h create mode 100644 keyboards/clueboard/66/rev2/rules.mk create mode 100644 keyboards/clueboard/66/rev3/config.h create mode 100644 keyboards/clueboard/66/rev3/rev3.c create mode 100644 keyboards/clueboard/66/rev3/rev3.h create mode 100644 keyboards/clueboard/66/rev3/rules.mk create mode 100644 keyboards/clueboard/66/rules.mk create mode 100644 keyboards/clueboard/card/cluecard.c create mode 100644 keyboards/clueboard/card/cluecard.h create mode 100644 keyboards/clueboard/card/config.h create mode 100644 keyboards/clueboard/card/keymaps/default/config.h create mode 100644 keyboards/clueboard/card/keymaps/default/keymap.c create mode 100644 keyboards/clueboard/card/keymaps/default/readme.md create mode 100644 keyboards/clueboard/card/keymaps/default/rules.mk create mode 100644 keyboards/clueboard/card/keymaps/rgb_effects/config.h create mode 100644 keyboards/clueboard/card/keymaps/rgb_effects/keymap.c create mode 100644 keyboards/clueboard/card/keymaps/rgb_effects/readme.md create mode 100644 keyboards/clueboard/card/keymaps/rgb_effects/rules.mk create mode 100644 keyboards/clueboard/card/readme.md create mode 100644 keyboards/clueboard/card/rules.mk create mode 100644 keyboards/clueboard/readme.md delete mode 100644 keyboards/clueboard_17/clueboard_17.c delete mode 100644 keyboards/clueboard_17/clueboard_17.h delete mode 100644 keyboards/clueboard_17/config.h delete mode 100644 keyboards/clueboard_17/keymaps/default/keymap.c delete mode 100644 keyboards/clueboard_17/readme.md delete mode 100644 keyboards/clueboard_17/rules.mk delete mode 100644 keyboards/clueboard_60/boards/GENERIC_STM32_F303XC/board.c delete mode 100644 keyboards/clueboard_60/boards/GENERIC_STM32_F303XC/board.h delete mode 100644 keyboards/clueboard_60/boards/GENERIC_STM32_F303XC/board.mk delete mode 100644 keyboards/clueboard_60/bootloader_defs.h delete mode 100644 keyboards/clueboard_60/chconf.h delete mode 100644 keyboards/clueboard_60/clueboard_60.c delete mode 100644 keyboards/clueboard_60/clueboard_60.h delete mode 100644 keyboards/clueboard_60/config.h delete mode 100644 keyboards/clueboard_60/halconf.h delete mode 100644 keyboards/clueboard_60/keymaps/default/keymap.c delete mode 100644 keyboards/clueboard_60/keymaps/default/readme.md delete mode 100644 keyboards/clueboard_60/keymaps/default_aek/keymap.c delete mode 100644 keyboards/clueboard_60/keymaps/default_aek/readme.md delete mode 100644 keyboards/clueboard_60/led.c delete mode 100644 keyboards/clueboard_60/matrix.c delete mode 100644 keyboards/clueboard_60/mcuconf.h delete mode 100644 keyboards/clueboard_60/readme.md delete mode 100644 keyboards/clueboard_60/rules.mk delete mode 100644 keyboards/clueboard_66/clueboard_66.c delete mode 100644 keyboards/clueboard_66/clueboard_66.h delete mode 100644 keyboards/clueboard_66/config.h delete mode 100644 keyboards/clueboard_66/keymaps/bloodlvst/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/bloodlvst/config.h delete mode 100644 keyboards/clueboard_66/keymaps/bloodlvst/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/bloodlvst/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/bloodlvst/rules.mk delete mode 100644 keyboards/clueboard_66/keymaps/caps_fn/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/caps_fn/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/colemak/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/default/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/default/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/jokrik/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/jokrik/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/mac_optimized/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/mac_optimized/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/magicmonty/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/magicmonty/config.h delete mode 100644 keyboards/clueboard_66/keymaps/magicmonty/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/magicmonty/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/magicmonty/rules.mk delete mode 100644 keyboards/clueboard_66/keymaps/maximised/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/maximised/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/mouse_keys/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/mouse_keys/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/mouse_keys/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/mouse_keys/rules.mk delete mode 100644 keyboards/clueboard_66/keymaps/serubin/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/serubin/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/serubin/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/serubin/rules.mk delete mode 100644 keyboards/clueboard_66/keymaps/shift_fn/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/shift_fn/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/skully/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/skully/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/smt/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/smt/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/tetris/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/tetris/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/tetris/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/tetris/rules.mk delete mode 100644 keyboards/clueboard_66/keymaps/tetris/tetris_text.c delete mode 100644 keyboards/clueboard_66/keymaps/tetris/tetris_text.h delete mode 100644 keyboards/clueboard_66/keymaps/unix_optimized/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/unix_optimized/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/win_optimized/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/win_optimized/readme.md delete mode 100644 keyboards/clueboard_66/keymaps/xyverz/Makefile delete mode 100644 keyboards/clueboard_66/keymaps/xyverz/keymap.c delete mode 100644 keyboards/clueboard_66/keymaps/xyverz/rules.mk delete mode 100644 keyboards/clueboard_66/readme.md delete mode 100644 keyboards/clueboard_66/rev1/config.h delete mode 100644 keyboards/clueboard_66/rev1/rev1.c delete mode 100644 keyboards/clueboard_66/rev1/rev1.h delete mode 100644 keyboards/clueboard_66/rev1/rules.mk delete mode 100644 keyboards/clueboard_66/rev2/config.h delete mode 100644 keyboards/clueboard_66/rev2/rev2.c delete mode 100644 keyboards/clueboard_66/rev2/rev2.h delete mode 100644 keyboards/clueboard_66/rev2/rules.mk delete mode 100644 keyboards/clueboard_66/rev3/config.h delete mode 100644 keyboards/clueboard_66/rev3/rev3.c delete mode 100644 keyboards/clueboard_66/rev3/rev3.h delete mode 100644 keyboards/clueboard_66/rev3/rules.mk delete mode 100644 keyboards/clueboard_66/rules.mk delete mode 100644 keyboards/cluecard/cluecard.c delete mode 100644 keyboards/cluecard/cluecard.h delete mode 100644 keyboards/cluecard/config.h delete mode 100644 keyboards/cluecard/keymaps/default/config.h delete mode 100644 keyboards/cluecard/keymaps/default/keymap.c delete mode 100644 keyboards/cluecard/keymaps/default/readme.md delete mode 100644 keyboards/cluecard/keymaps/default/rules.mk delete mode 100644 keyboards/cluecard/keymaps/rgb_effects/config.h delete mode 100644 keyboards/cluecard/keymaps/rgb_effects/keymap.c delete mode 100644 keyboards/cluecard/keymaps/rgb_effects/readme.md delete mode 100644 keyboards/cluecard/keymaps/rgb_effects/rules.mk delete mode 100644 keyboards/cluecard/readme.md delete mode 100644 keyboards/cluecard/rules.mk (limited to 'keyboards') diff --git a/keyboards/clueboard/17/clueboard_17.c b/keyboards/clueboard/17/clueboard_17.c new file mode 100644 index 0000000000..04cc812178 --- /dev/null +++ b/keyboards/clueboard/17/clueboard_17.c @@ -0,0 +1,60 @@ +#include "clueboard_17.h" + +int pwm_level; + +void matrix_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + matrix_init_user(); + + // JTAG disable for PORT F. write JTD bit twice within four cycles. + MCUCR |= (1<> 8; + OCR4A = 0xFF & pwm_level; +} diff --git a/keyboards/clueboard/17/clueboard_17.h b/keyboards/clueboard/17/clueboard_17.h new file mode 100644 index 0000000000..5e4a5999e2 --- /dev/null +++ b/keyboards/clueboard/17/clueboard_17.h @@ -0,0 +1,36 @@ +#ifndef CLUEPAD_H +#define CLUEPAD_H + +#include "quantum.h" + + +/* Cluepad matrix layout + * .-------------------. + * |NLCK| /| *| -| + * |-------------------| + * | 7| 8| 9| | + * |--------------| | + * | 4| 5| 6| +| + * |-------------------| + * | 1| 2| 3| | + * |--------------| | + * | 0| .| Ent| + * '-------------------' + */ +// The first section contains all of the arguments +// The second converts the arguments into a two-dimensional array +#define KEYMAP( \ + k00, k01, k02, k03, \ + k10, k11, k12, k13, \ + k20, k21, k22, \ + k30, k31, k32, k33, \ + k40, k42 \ +) { \ + { k00, k01, k02, k03, }, \ + { k10, k11, k12, k13, }, \ + { k20, k21, k22, KC_NO, }, \ + { k30, k31, k32, k33, }, \ + { k40, KC_NO, k42, KC_NO } \ +} + +#endif diff --git a/keyboards/clueboard/17/config.h b/keyboards/clueboard/17/config.h new file mode 100644 index 0000000000..bd64dfd27d --- /dev/null +++ b/keyboards/clueboard/17/config.h @@ -0,0 +1,100 @@ +/* +Copyright 2012 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#ifndef CONFIG_H +#define CONFIG_H + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xC1ED +#define PRODUCT_ID 0x2312 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Clueboard +#define PRODUCT Cluepad with RGB Underlighting +#define DESCRIPTION QMK keyboard firmware for Cluepad + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 4 + +// ROWS: Top to bottom, COLS: Left to right +/* Row pin configuration +* row: 0 1 2 3 4 +* pin: +*/ +#define MATRIX_ROW_PINS { B0, D3, D5, D4, D6 } +/* Column pin configuration + * col: 0 1 2 3 + * pin: F4 E6 B1 D2 + */ +#define MATRIX_COL_PINS { F4, E6, B1, D2 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* define if matrix has ghost */ +//#define MATRIX_HAS_GHOST + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCING_DELAY 5 + +/* Number of backlighting levels */ +#define BACKLIGHT_LEVELS 3 + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ +) + +/* Underlight configuration + */ +#define RGB_DI_PIN F6 +#define RGBLIGHT_ANIMATIONS +#define RGBLED_NUM 4 // Number of LEDs +#define RGBLIGHT_HUE_STEP 10 +#define RGBLIGHT_SAT_STEP 17 +#define RGBLIGHT_VAL_STEP 17 + +/* + * Feature disable options + * These options are also useful to firmware size reduction. + */ + +/* disable debug print */ +//#define NO_DEBUG + +/* Debug forcibly enabled */ +#define ALWAYS_DEBUG + +/* disable print */ +//#define NO_PRINT + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT +//#define NO_ACTION_MACRO +//#define NO_ACTION_FUNCTION + +#endif diff --git a/keyboards/clueboard/17/keymaps/default/keymap.c b/keyboards/clueboard/17/keymaps/default/keymap.c new file mode 100644 index 0000000000..7a0d518515 --- /dev/null +++ b/keyboards/clueboard/17/keymaps/default/keymap.c @@ -0,0 +1,65 @@ +#include "clueboard_17.h" + +#include "backlight.h" + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. +#define _BL 0 +#define _FL 1 +#define _RS 2 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* Keymap _BL: (Base Layer) Default Layer + * .-------------------. + * |NL F| /| *| -| + * |-------------------| + * | 7| 8| 9| | + * |--------------| | + * | 4| 5| 6| +| + * |-------------------| + * | 1| 2| 3| | + * |--------------| | + * | 0| .| Ent| + * '-------------------' + */ +[_BL] = KEYMAP( + LT(_FL, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, \ + KC_P7, KC_P8, KC_P9, KC_PPLS, \ + KC_P4, KC_P5, KC_P6, \ + KC_P1, KC_P2, KC_P3, KC_PENT, \ + KC_P0, KC_PDOT), + + /* Keymap _FL: Function Layer + * .-------------------. + * |NL F| | | Fn0| + * |-------------------| + * | | Fn4| | | + * |--------------| | + * | Fn3|BL_S| Fn2| Fn6| + * |-------------------| + * | | Fn5| | | + * |--------------| | + * | Fn1| | Fn7| + * '-------------------' + */ +[_FL] = KEYMAP( + LT(_FL, KC_NLCK), KC_TRNS, KC_TRNS, RGB_TOG, \ + KC_TRNS, RGB_SAI, KC_TRNS, RGB_VAI, \ + RGB_HUD, BL_STEP, RGB_HUI, \ + KC_TRNS, RGB_SAD, KC_TRNS, RGB_VAD, \ + RGB_MOD, KC_TRNS) +}; + +/*enum function_id { +};*/ + +const uint16_t PROGMEM fn_actions[] = { +}; + +void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { + switch (id) { + } +} + diff --git a/keyboards/clueboard/17/readme.md b/keyboards/clueboard/17/readme.md new file mode 100644 index 0000000000..877adc7842 --- /dev/null +++ b/keyboards/clueboard/17/readme.md @@ -0,0 +1,16 @@ +# Clueboard 17% (Formerly Cluepad) + +![Clueboard 17%](https://static1.squarespace.com/static/55c13bdee4b099be5dcb82eb/5842fbdce3df28eae5ec557e/5844fb2cb8a79bbdfd63bad1/1498501250178/IMGP3931.jpg?format=750w) + +A basic 17 key numpad PCB. + +* Keyboard Maintainer: [Zach White](https://github.com/skullydazed) +* Hardware Supported: + * Cluepad PCB 1.0 +* Hardware Availability: [clueboard.co](https://clueboard.co/) + +Make example for this keyboard (after setting up your build environment): + + make clueboard/17:default + +See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. diff --git a/keyboards/clueboard/17/rules.mk b/keyboards/clueboard/17/rules.mk new file mode 100644 index 0000000000..264aba044d --- /dev/null +++ b/keyboards/clueboard/17/rules.mk @@ -0,0 +1,65 @@ + +# MCU name +#MCU = at90usb1287 +MCU = atmega32u4 + +# Processor frequency. +# This will define a symbol, F_CPU, in all source code files equal to the +# processor frequency in Hz. You can then use this symbol in your source code to +# calculate timings. Do NOT tack on a 'UL' at the end, this will be done +# automatically to create a 32-bit value in your source code. +# +# This will be an integer division of F_USB below, as it is sourced by +# F_USB after it has run through any CPU prescalers. Note that this value +# does not *change* the processor frequency - it should merely be updated to +# reflect the processor speed set externally so that the code can use accurate +# software delays. +F_CPU = 16000000 + + +# +# LUFA specific +# +# Target architecture (see library "Board Types" documentation). +ARCH = AVR8 + +# Input clock frequency. +# This will define a symbol, F_USB, in all source code files equal to the +# input clock frequency (before any prescaling is performed) in Hz. This value may +# differ from F_CPU if prescaling is used on the latter, and is required as the +# raw input clock is fed directly to the PLL sections of the AVR for high speed +# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' +# at the end, this will be done automatically to create a 32-bit value in your +# source code. +# +# If no clock division is performed on the input clock inside the AVR (via the +# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. +F_USB = $(F_CPU) + +# Interrupt driven control endpoint task(+60) +OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT + + +# Boot Section Size in *bytes* +# Teensy halfKay 512 +# Teensy++ halfKay 1024 +# Atmel DFU loader 4096 +# LUFA bootloader 4096 +# USBaspLoader 2048 +OPT_DEFS += -DBOOTLOADER_SIZE=4096 + + +# Build Options +# comment out to disable the options. +# +BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) +# MOUSEKEY_ENABLE = yes # Mouse keys(+4700) +# EXTRAKEY_ENABLE = yes # Audio control and System control(+450) +# CONSOLE_ENABLE = yes # Console for debug(+400) +# COMMAND_ENABLE = yes # Commands for debug and configuration +NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE = yes # Enable numpad's backlight functionality +RGBLIGHT_ENABLE = yes +# MIDI_ENABLE = YES # MIDI controls +# UNICODE_ENABLE = YES # Unicode +# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID \ No newline at end of file diff --git a/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.c b/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.c new file mode 100644 index 0000000000..897f20a887 --- /dev/null +++ b/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.c @@ -0,0 +1,124 @@ +/* + ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#include "hal.h" + +#if HAL_USE_PAL || defined(__DOXYGEN__) +/** + * @brief PAL setup. + * @details Digital I/O ports static configuration as defined in @p board.h. + * This variable is used by the HAL when initializing the PAL driver. + */ +const PALConfig pal_default_config = { +#if STM32_HAS_GPIOA + {VAL_GPIOA_MODER, VAL_GPIOA_OTYPER, VAL_GPIOA_OSPEEDR, VAL_GPIOA_PUPDR, + VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH}, +#endif +#if STM32_HAS_GPIOB + {VAL_GPIOB_MODER, VAL_GPIOB_OTYPER, VAL_GPIOB_OSPEEDR, VAL_GPIOB_PUPDR, + VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH}, +#endif +#if STM32_HAS_GPIOC + {VAL_GPIOC_MODER, VAL_GPIOC_OTYPER, VAL_GPIOC_OSPEEDR, VAL_GPIOC_PUPDR, + VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH}, +#endif +#if STM32_HAS_GPIOD + {VAL_GPIOD_MODER, VAL_GPIOD_OTYPER, VAL_GPIOD_OSPEEDR, VAL_GPIOD_PUPDR, + VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH}, +#endif +#if STM32_HAS_GPIOE + {VAL_GPIOE_MODER, VAL_GPIOE_OTYPER, VAL_GPIOE_OSPEEDR, VAL_GPIOE_PUPDR, + VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH}, +#endif +#if STM32_HAS_GPIOF + {VAL_GPIOF_MODER, VAL_GPIOF_OTYPER, VAL_GPIOF_OSPEEDR, VAL_GPIOF_PUPDR, + VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH}, +#endif +#if STM32_HAS_GPIOG + {VAL_GPIOG_MODER, VAL_GPIOG_OTYPER, VAL_GPIOG_OSPEEDR, VAL_GPIOG_PUPDR, + VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH}, +#endif +#if STM32_HAS_GPIOH + {VAL_GPIOH_MODER, VAL_GPIOH_OTYPER, VAL_GPIOH_OSPEEDR, VAL_GPIOH_PUPDR, + VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH}, +#endif +#if STM32_HAS_GPIOI + {VAL_GPIOI_MODER, VAL_GPIOI_OTYPER, VAL_GPIOI_OSPEEDR, VAL_GPIOI_PUPDR, + VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH} +#endif +}; +#endif + +/** + * @brief Early initialization code. + * @details This initialization must be performed just after stack setup + * and before any other initialization. + */ +void __early_init(void) { + + stm32_clock_init(); +} + +#if HAL_USE_SDC || defined(__DOXYGEN__) +/** + * @brief SDC card detection. + */ +bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { + + (void)sdcp; + /* TODO: Fill the implementation.*/ + return true; +} + +/** + * @brief SDC card write protection detection. + */ +bool sdc_lld_is_write_protected(SDCDriver *sdcp) { + + (void)sdcp; + /* TODO: Fill the implementation.*/ + return false; +} +#endif /* HAL_USE_SDC */ + +#if HAL_USE_MMC_SPI || defined(__DOXYGEN__) +/** + * @brief MMC_SPI card detection. + */ +bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { + + (void)mmcp; + /* TODO: Fill the implementation.*/ + return true; +} + +/** + * @brief MMC_SPI card write protection detection. + */ +bool mmc_lld_is_write_protected(MMCDriver *mmcp) { + + (void)mmcp; + /* TODO: Fill the implementation.*/ + return false; +} +#endif + +/** + * @brief Board-specific initialization code. + * @todo Add your board-specific code, if any. + */ +void boardInit(void) { +} diff --git a/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.h b/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.h new file mode 100644 index 0000000000..145d569f09 --- /dev/null +++ b/keyboards/clueboard/60/boards/GENERIC_STM32_F303XC/board.h @@ -0,0 +1,1187 @@ +/* + ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +/* + * Setup for Clueboard 60% Keyboard + */ + +/* + * Board identifier. + */ +#define BOARD_GENERIC_STM32_F303XC +#define BOARD_NAME "Clueboard 60 PCB" + +/* + * Board oscillators-related settings. + * NOTE: LSE not fitted. + */ +#if !defined(STM32_LSECLK) +#define STM32_LSECLK 0U +#endif + +#define STM32_LSEDRV (3U << 3U) + +#if !defined(STM32_HSECLK) +#define STM32_HSECLK 8000000U +#endif + +// #define STM32_HSE_BYPASS + +/* + * MCU type as defined in the ST header. + */ +#define STM32F303xC + +/* + * IO pins assignments. + */ +#define GPIOA_PIN0 0U +#define GPIOA_PIN1 1U +#define GPIOA_PIN2 2U +#define GPIOA_PIN3 3U +#define GPIOA_PIN4 4U +#define GPIOA_PIN5 5U +#define GPIOA_PIN6 6U +#define GPIOA_PIN7 7U +#define GPIOA_PIN8 8U +#define GPIOA_PIN9 9U +#define GPIOA_PIN10 10U +#define GPIOA_USB_DM 11U +#define GPIOA_USB_DP 12U +#define GPIOA_SWDIO 13U +#define GPIOA_SWCLK 14U +#define GPIOA_PIN15 15U + +#define GPIOB_PIN0 0U +#define GPIOB_PIN1 1U +#define GPIOB_PIN2 2U +#define GPIOB_PIN3 3U +#define GPIOB_PIN4 4U +#define GPIOB_PIN5 5U +#define GPIOB_PIN6 6U +#define GPIOB_PIN7 7U +#define GPIOB_PIN8 8U +#define GPIOB_PIN9 9U +#define GPIOB_PIN10 10U +#define GPIOB_PIN11 11U +#define GPIOB_PIN12 12U +#define GPIOB_PIN13 13U +#define GPIOB_PIN14 14U +#define GPIOB_PIN15 15U + +#define GPIOC_PIN0 0U +#define GPIOC_PIN1 1U +#define GPIOC_PIN2 2U +#define GPIOC_PIN3 3U +#define GPIOC_PIN4 4U +#define GPIOC_PIN5 5U +#define GPIOC_PIN6 6U +#define GPIOC_PIN7 7U +#define GPIOC_PIN8 8U +#define GPIOC_PIN9 9U +#define GPIOC_PIN10 10U +#define GPIOC_PIN11 11U +#define GPIOC_PIN12 12U +#define GPIOC_PIN13 13U +#define GPIOC_PIN14 14U +#define GPIOC_PIN15 15U + +#define GPIOD_PIN0 0U +#define GPIOD_PIN1 1U +#define GPIOD_PIN2 2U +#define GPIOD_PIN3 3U +#define GPIOD_PIN4 4U +#define GPIOD_PIN5 5U +#define GPIOD_PIN6 6U +#define GPIOD_PIN7 7U +#define GPIOD_PIN8 8U +#define GPIOD_PIN9 9U +#define GPIOD_PIN10 10U +#define GPIOD_PIN11 11U +#define GPIOD_PIN12 12U +#define GPIOD_PIN13 13U +#define GPIOD_PIN14 14U +#define GPIOD_PIN15 15U + +#define GPIOE_PIN0 0U +#define GPIOE_PIN1 1U +#define GPIOE_PIN2 2U +#define GPIOE_PIN3 3U +#define GPIOE_PIN4 4U +#define GPIOE_PIN5 5U +#define GPIOE_PIN6 6U +#define GPIOE_PIN7 7U +#define GPIOE_PIN8 8U +#define GPIOE_PIN9 9U +#define GPIOE_PIN10 10U +#define GPIOE_PIN11 11U +#define GPIOE_PIN12 12U +#define GPIOE_PIN13 13U +#define GPIOE_PIN14 14U +#define GPIOE_PIN15 15U + +#define GPIOF_I2C2_SDA 0U +#define GPIOF_I2C2_SCL 1U +#define GPIOF_PIN2 2U +#define GPIOF_PIN3 3U +#define GPIOF_PIN4 4U +#define GPIOF_PIN5 5U +#define GPIOF_PIN6 6U +#define GPIOF_PIN7 7U +#define GPIOF_PIN8 8U +#define GPIOF_PIN9 9U +#define GPIOF_PIN10 10U +#define GPIOF_PIN11 11U +#define GPIOF_PIN12 12U +#define GPIOF_PIN13 13U +#define GPIOF_PIN14 14U +#define GPIOF_PIN15 15U + +#define GPIOG_PIN0 0U +#define GPIOG_PIN1 1U +#define GPIOG_PIN2 2U +#define GPIOG_PIN3 3U +#define GPIOG_PIN4 4U +#define GPIOG_PIN5 5U +#define GPIOG_PIN6 6U +#define GPIOG_PIN7 7U +#define GPIOG_PIN8 8U +#define GPIOG_PIN9 9U +#define GPIOG_PIN10 10U +#define GPIOG_PIN11 11U +#define GPIOG_PIN12 12U +#define GPIOG_PIN13 13U +#define GPIOG_PIN14 14U +#define GPIOG_PIN15 15U + +#define GPIOH_PIN0 0U +#define GPIOH_PIN1 1U +#define GPIOH_PIN2 2U +#define GPIOH_PIN3 3U +#define GPIOH_PIN4 4U +#define GPIOH_PIN5 5U +#define GPIOH_PIN6 6U +#define GPIOH_PIN7 7U +#define GPIOH_PIN8 8U +#define GPIOH_PIN9 9U +#define GPIOH_PIN10 10U +#define GPIOH_PIN11 11U +#define GPIOH_PIN12 12U +#define GPIOH_PIN13 13U +#define GPIOH_PIN14 14U +#define GPIOH_PIN15 15U + +/* + * IO lines assignments. + */ +#define LINE_L3GD20_SDI PAL_LINE(GPIOA, 7U) +#define LINE_USB_DM PAL_LINE(GPIOA, 11U) +#define LINE_USB_DP PAL_LINE(GPIOA, 12U) +#define LINE_SWDIO PAL_LINE(GPIOA, 13U) +#define LINE_SWCLK PAL_LINE(GPIOA, 14U) + +#define LINE_PIN6 PAL_LINE(GPIOF, 0U) +#define LINE_PIN7 PAL_LINE(GPIOF, 1U) + +#define LINE_CAPS_LOCK PAL_LINE(GPIOB, 7U) + + +/* + * I/O ports initial setup, this configuration is established soon after reset + * in the initialization code. + * Please refer to the STM32 Reference Manual for details. + */ +#define PIN_MODE_INPUT(n) (0U << ((n) * 2U)) +#define PIN_MODE_OUTPUT(n) (1U << ((n) * 2U)) +#define PIN_MODE_ALTERNATE(n) (2U << ((n) * 2U)) +#define PIN_MODE_ANALOG(n) (3U << ((n) * 2U)) +#define PIN_ODR_LOW(n) (0U << (n)) +#define PIN_ODR_HIGH(n) (1U << (n)) +#define PIN_OTYPE_PUSHPULL(n) (0U << (n)) +#define PIN_OTYPE_OPENDRAIN(n) (1U << (n)) +#define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U)) +#define PIN_OSPEED_LOW(n) (1U << ((n) * 2U)) +#define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U)) +#define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U)) +#define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U)) +#define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) +#define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) +#define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) + +/* + * GPIOA setup: + * + * PA0 - NC + * PA1 - NC + * PA2 - COL1 + * PA3 - COL2 + * PA4 - SPEAKER1 + * PA5 - SPEAKER2 + * PA6 - COL3 + * PA7 - COL8 + * PA8 - COL6 + * PA9 - COL7 + * PA10 - ROW5 + * PA11 - USB_DM (alternate 14). + * PA12 - USB_DP (alternate 14). + * PA13 - SWDIO (alternate 0). + * PA14 - SWCLK (alternate 0). + * PA15 - ROW4 + */ +#define VAL_GPIOA_MODER (PIN_MODE_INPUT(GPIOA_PIN0) | \ + PIN_MODE_INPUT(GPIOA_PIN1) | \ + PIN_MODE_INPUT(GPIOA_PIN2) | \ + PIN_MODE_INPUT(GPIOA_PIN3) | \ + PIN_MODE_INPUT(GPIOA_PIN4) | \ + PIN_MODE_INPUT(GPIOA_PIN5) | \ + PIN_MODE_INPUT(GPIOA_PIN6) | \ + PIN_MODE_INPUT(GPIOA_PIN7) | \ + PIN_MODE_INPUT(GPIOA_PIN8) | \ + PIN_MODE_INPUT(GPIOA_PIN9) | \ + PIN_MODE_INPUT(GPIOA_PIN10) | \ + PIN_MODE_ALTERNATE(GPIOA_USB_DM) | \ + PIN_MODE_ALTERNATE(GPIOA_USB_DP) | \ + PIN_MODE_ALTERNATE(GPIOA_SWDIO) | \ + PIN_MODE_ALTERNATE(GPIOA_SWCLK) | \ + PIN_MODE_INPUT(GPIOA_PIN15)) +#define VAL_GPIOA_OTYPER (PIN_OTYPE_PUSHPULL(GPIOA_PIN0) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN1) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN2) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN3) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN4) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN5) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN6) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN7) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN8) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN9) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN10) | \ + PIN_OTYPE_PUSHPULL(GPIOA_USB_DM) | \ + PIN_OTYPE_PUSHPULL(GPIOA_USB_DP) | \ + PIN_OTYPE_PUSHPULL(GPIOA_SWDIO) | \ + PIN_OTYPE_PUSHPULL(GPIOA_SWCLK) | \ + PIN_OTYPE_PUSHPULL(GPIOA_PIN15)) +#define VAL_GPIOA_OSPEEDR (PIN_OSPEED_VERYLOW(GPIOA_PIN0) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN1) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN2) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN3) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN4) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN5) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN6) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN7) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN8) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN9) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN10) | \ + PIN_OSPEED_HIGH(GPIOA_USB_DM) | \ + PIN_OSPEED_VERYLOW(GPIOA_USB_DP) | \ + PIN_OSPEED_HIGH(GPIOA_SWDIO) | \ + PIN_OSPEED_HIGH(GPIOA_SWCLK) | \ + PIN_OSPEED_VERYLOW(GPIOA_PIN15)) +#define VAL_GPIOA_PUPDR (PIN_PUPDR_FLOATING(GPIOA_PIN0) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN1) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN2) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN3) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN4) | \ + PIN_PUPDR_FLOATING(GPIOA_PIN5) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN6) | \ + PIN_PUPDR_FLOATING(GPIOA_PIN7) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN8) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN9) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN10) | \ + PIN_PUPDR_FLOATING(GPIOA_USB_DM) | \ + PIN_PUPDR_FLOATING(GPIOA_USB_DP) | \ + PIN_PUPDR_PULLUP(GPIOA_SWDIO) | \ + PIN_PUPDR_PULLDOWN(GPIOA_SWCLK) | \ + PIN_PUPDR_PULLUP(GPIOA_PIN15)) +#define VAL_GPIOA_ODR (PIN_ODR_HIGH(GPIOA_PIN0) | \ + PIN_ODR_HIGH(GPIOA_PIN1) | \ + PIN_ODR_HIGH(GPIOA_PIN2) | \ + PIN_ODR_HIGH(GPIOA_PIN3) | \ + PIN_ODR_HIGH(GPIOA_PIN4) | \ + PIN_ODR_HIGH(GPIOA_PIN5) | \ + PIN_ODR_HIGH(GPIOA_PIN6) | \ + PIN_ODR_HIGH(GPIOA_PIN7) | \ + PIN_ODR_HIGH(GPIOA_PIN8) | \ + PIN_ODR_HIGH(GPIOA_PIN9) | \ + PIN_ODR_HIGH(GPIOA_PIN10) | \ + PIN_ODR_HIGH(GPIOA_USB_DM) | \ + PIN_ODR_HIGH(GPIOA_USB_DP) | \ + PIN_ODR_HIGH(GPIOA_SWDIO) | \ + PIN_ODR_HIGH(GPIOA_SWCLK) | \ + PIN_ODR_HIGH(GPIOA_PIN15)) +#define VAL_GPIOA_AFRL (PIN_AFIO_AF(GPIOA_PIN0, 0) | \ + PIN_AFIO_AF(GPIOA_PIN1, 0) | \ + PIN_AFIO_AF(GPIOA_PIN2, 0) | \ + PIN_AFIO_AF(GPIOA_PIN3, 0) | \ + PIN_AFIO_AF(GPIOA_PIN4, 0) | \ + PIN_AFIO_AF(GPIOA_PIN5, 5) | \ + PIN_AFIO_AF(GPIOA_PIN6, 5) | \ + PIN_AFIO_AF(GPIOA_PIN7, 5)) +#define VAL_GPIOA_AFRH (PIN_AFIO_AF(GPIOA_PIN8, 0) | \ + PIN_AFIO_AF(GPIOA_PIN9, 0) | \ + PIN_AFIO_AF(GPIOA_PIN10, 0) | \ + PIN_AFIO_AF(GPIOA_USB_DM, 14) | \ + PIN_AFIO_AF(GPIOA_USB_DP, 14) | \ + PIN_AFIO_AF(GPIOA_SWDIO, 0) | \ + PIN_AFIO_AF(GPIOA_SWCLK, 0) | \ + PIN_AFIO_AF(GPIOA_PIN15, 0)) + +/* + * GPIOB setup: + * + * PB0 - PIN0 (input pullup). + * PB1 - PIN1 (input pullup). + * PB2 - PIN2 (input pullup). + * PB3 - PIN3 (alternate 0). + * PB4 - PIN4 (input pullup). + * PB5 - PIN5 (input pullup). + * PB6 - PIN6 LSM303DLHC_SCL (alternate 4). + * PB7 - PIN7 LSM303DLHC_SDA (alternate 4). + * PB8 - PIN8 (input pullup). + * PB9 - PIN9 (input pullup). + * PB10 - PIN10 (input pullup). + * PB11 - PIN11 (input pullup). + * PB12 - PIN12 (input pullup). + * PB13 - PIN13 (input pullup). + * PB14 - PIN14 (input pullup). + * PB15 - PIN15 (input pullup). + */ +#define VAL_GPIOB_MODER (PIN_MODE_INPUT(GPIOB_PIN0) | \ + PIN_MODE_INPUT(GPIOB_PIN1) | \ + PIN_MODE_INPUT(GPIOB_PIN2) | \ + PIN_MODE_ALTERNATE(GPIOB_PIN3) | \ + PIN_MODE_INPUT(GPIOB_PIN4) | \ + PIN_MODE_INPUT(GPIOB_PIN5) | \ + PIN_MODE_ALTERNATE(GPIOB_PIN6) | \ + PIN_MODE_OUTPUT(GPIOB_PIN7) | \ + PIN_MODE_INPUT(GPIOB_PIN8) | \ + PIN_MODE_INPUT(GPIOB_PIN9) | \ + PIN_MODE_INPUT(GPIOB_PIN10) | \ + PIN_MODE_INPUT(GPIOB_PIN11) | \ + PIN_MODE_INPUT(GPIOB_PIN12) | \ + PIN_MODE_INPUT(GPIOB_PIN13) | \ + PIN_MODE_INPUT(GPIOB_PIN14) | \ + PIN_MODE_INPUT(GPIOB_PIN15)) +#define VAL_GPIOB_OTYPER (PIN_OTYPE_PUSHPULL(GPIOB_PIN0) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN1) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN2) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN3) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN4) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN5) | \ + PIN_OTYPE_OPENDRAIN(GPIOB_PIN6) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN7) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN8) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN9) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN10) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN11) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN12) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN13) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN14) | \ + PIN_OTYPE_PUSHPULL(GPIOB_PIN15)) +#define VAL_GPIOB_OSPEEDR (PIN_OSPEED_VERYLOW(GPIOB_PIN0) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN1) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN2) | \ + PIN_OSPEED_HIGH(GPIOB_PIN3) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN4) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN5) | \ + PIN_OSPEED_HIGH(GPIOB_PIN6) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN7) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN8) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN9) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN10) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN11) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN12) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN13) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN14) | \ + PIN_OSPEED_VERYLOW(GPIOB_PIN15)) +#define VAL_GPIOB_PUPDR (PIN_PUPDR_PULLUP(GPIOB_PIN0) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN1) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN2) | \ + PIN_PUPDR_FLOATING(GPIOB_PIN3) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN4) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN5) | \ + PIN_PUPDR_FLOATING(GPIOB_PIN6) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN7) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN8) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN9) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN10) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN11) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN12) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN13) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN14) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN15)) +#define VAL_GPIOB_ODR (PIN_ODR_HIGH(GPIOB_PIN0) | \ + PIN_ODR_HIGH(GPIOB_PIN1) | \ + PIN_ODR_HIGH(GPIOB_PIN2) | \ + PIN_ODR_HIGH(GPIOB_PIN3) | \ + PIN_ODR_HIGH(GPIOB_PIN4) | \ + PIN_ODR_HIGH(GPIOB_PIN5) | \ + PIN_ODR_HIGH(GPIOB_PIN6) | \ + PIN_ODR_HIGH(GPIOB_PIN7) | \ + PIN_ODR_HIGH(GPIOB_PIN8) | \ + PIN_ODR_HIGH(GPIOB_PIN9) | \ + PIN_ODR_HIGH(GPIOB_PIN10) | \ + PIN_ODR_HIGH(GPIOB_PIN11) | \ + PIN_ODR_HIGH(GPIOB_PIN12) | \ + PIN_ODR_HIGH(GPIOB_PIN13) | \ + PIN_ODR_HIGH(GPIOB_PIN14) | \ + PIN_ODR_HIGH(GPIOB_PIN15)) +#define VAL_GPIOB_AFRL (PIN_AFIO_AF(GPIOB_PIN0, 0) | \ + PIN_AFIO_AF(GPIOB_PIN1, 0) | \ + PIN_AFIO_AF(GPIOB_PIN2, 0) | \ + PIN_AFIO_AF(GPIOB_PIN3, 0) | \ + PIN_AFIO_AF(GPIOB_PIN4, 0) | \ + PIN_AFIO_AF(GPIOB_PIN5, 0) | \ + PIN_AFIO_AF(GPIOB_PIN6, 4) | \ + PIN_AFIO_AF(GPIOB_PIN7, 0)) +#define VAL_GPIOB_AFRH (PIN_AFIO_AF(GPIOB_PIN8, 0) | \ + PIN_AFIO_AF(GPIOB_PIN9, 0) | \ + PIN_AFIO_AF(GPIOB_PIN10, 0) | \ + PIN_AFIO_AF(GPIOB_PIN11, 0) | \ + PIN_AFIO_AF(GPIOB_PIN12, 0) | \ + PIN_AFIO_AF(GPIOB_PIN13, 0) | \ + PIN_AFIO_AF(GPIOB_PIN14, 0) | \ + PIN_AFIO_AF(GPIOB_PIN15, 0)) + +/* + * GPIOC setup: + * + * PC0 - PIN0 (input pullup). + * PC1 - PIN1 (input pullup). + * PC2 - PIN2 (input pullup). + * PC3 - PIN3 (input pullup). + * PC4 - PIN4 (input pullup). + * PC5 - PIN5 (input pullup). + * PC6 - PIN6 (input pullup). + * PC7 - PIN7 (input pullup). + * PC8 - PIN8 (input pullup). + * PC9 - PIN9 (input pullup). + * PC10 - PIN10 (input pullup). + * PC11 - PIN11 (input pullup). + * PC12 - PIN12 (input pullup). + * PC13 - PIN13 (input pullup). + * PC14 - PIN14 (input floating). + * PC15 - PIN15 (input floating). + */ +#defin