aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox_stm32/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_stm32/board.h')
-rw-r--r--keyboards/ergodox_stm32/board.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/ergodox_stm32/board.h b/keyboards/ergodox_stm32/board.h
new file mode 100644
index 000000000..23f949578
--- /dev/null
+++ b/keyboards/ergodox_stm32/board.h
@@ -0,0 +1,37 @@
1/*
2Copyright 2021 QMK
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include_next <board.h>
19
20#ifdef STM32_LSECLK
21#undef STM32_LSECLK
22#endif // STM32_LSECLK
23#define STM32_LSECLK 32768
24
25#ifdef STM32_HSECLK
26#undef STM32_HSECLK
27#endif // STM32_HSECLK
28#define STM32_HSECLK 8000000
29
30#undef VAL_GPIOACRL
31#define VAL_GPIOACRL 0x88888888
32
33#undef VAL_GPIOAODR
34#define VAL_GPIOAODR 0xFFFFFFFF
35
36#undef VAL_GPIOCCRH
37#define VAL_GPIOCCRH 0x88888888