diff options
author | Seth <fl3tching101@gmail.com> | 2020-11-01 12:46:00 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-01 10:46:00 -0800 |
commit | 9f0dbc21a3bcb815877e321c974c55c5320605c6 (patch) | |
tree | 5ec4ec1df71d2912600ee6e81eb2aea78b0210cc /keyboards/rocketboard_16/mcuconf.h | |
parent | c731432765c17a159fd83f859a148c861769fd35 (diff) | |
download | qmk_firmware-9f0dbc21a3bcb815877e321c974c55c5320605c6.tar.gz qmk_firmware-9f0dbc21a3bcb815877e321c974c55c5320605c6.zip |
[Keyboard] beta support for the Rocketboard-16 macro/num pad (#10688)
* Firmware initial commit, still has a few bugs - mainly rotary encoders do not work and needs cleaning up
* Fixed the volume control issue and limited the RGB brightness (can be really bright), added the ability to switch LED mode with left encoder click, and added via support (untested)
* Remove define that should go in config.h
* Removed define that should be in config.h
* Removed LTO_ENABLE as suggested - has issues on ARM
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Added the correct define for OLED screen size
* Applied suggested change to remove description
Co-authored-by: Ryan <fauxpark@gmail.com>
* Made suggested change to remove backslashes
Co-authored-by: Ryan <fauxpark@gmail.com>
* Suggested change made to rgblight
Co-authored-by: Ryan <fauxpark@gmail.com>
* Suggested change made to rgblight
Co-authored-by: Ryan <fauxpark@gmail.com>
* Suggested change made to remove backslashes
Co-authored-by: Ryan <fauxpark@gmail.com>
* Suggested change made to rgblight
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/rocketboard_16/rocketboard_16.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Added suggested comments
Co-authored-by: Ryan <fauxpark@gmail.com>
* Made suggested changes to rules file
Co-authored-by: Ryan <fauxpark@gmail.com>
* Added suggested change to rgblight
Co-authored-by: Ryan <fauxpark@gmail.com>
* Added info.json for QMK configurator
* Update readme.md
* This change makes the firmware work... through magic... seriously, no idea - but it works!
* Updated dimming step, OLED functionality, and rules for formatting
- Changed the dimming step size for smoother dimming with the reduced range
- Added lots of OLED functionality - QMK logo and title at top, num/caps/scroll lock status, and backlight brightness level
- Updated the rules.mk file to comply more closely with the formatting guidelines
* Fixed tab issues
Co-authored-by: Ryan <fauxpark@gmail.com>
* Updated to use bootmagic lite with the key that usually turns rgb on/off
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/rocketboard_16/mcuconf.h')
-rw-r--r-- | keyboards/rocketboard_16/mcuconf.h | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/keyboards/rocketboard_16/mcuconf.h b/keyboards/rocketboard_16/mcuconf.h new file mode 100644 index 000000000..999f34512 --- /dev/null +++ b/keyboards/rocketboard_16/mcuconf.h | |||
@@ -0,0 +1,209 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | #ifndef _MCUCONF_H_ | ||
18 | #define _MCUCONF_H_ | ||
19 | |||
20 | #define STM32F103_MCUCONF | ||
21 | |||
22 | /* | ||
23 | * STM32F103 drivers configuration. | ||
24 | * The following settings override the default settings present in | ||
25 | * the various device driver implementation headers. | ||
26 | * Note that the settings for each driver only have effect if the whole | ||
27 | * driver is enabled in halconf.h. | ||
28 | * | ||
29 | * IRQ priorities: | ||
30 | * 15...0 Lowest...Highest. | ||
31 | * | ||
32 | * DMA priorities: | ||
33 | * 0...3 Lowest...Highest. | ||
34 | */ | ||
35 | |||
36 | /* | ||
37 | * HAL driver system settings. | ||
38 | */ | ||
39 | #define STM32_NO_INIT FALSE | ||
40 | #define STM32_HSI_ENABLED TRUE | ||
41 | #define STM32_LSI_ENABLED TRUE | ||
42 | #define STM32_HSE_ENABLED TRUE | ||
43 | #define STM32_LSE_ENABLED TRUE | ||
44 | #define STM32_SW STM32_SW_PLL | ||
45 | #define STM32_PLLSRC STM32_PLLSRC_HSE | ||
46 | #define STM32_PLLXTPRE STM32_PLLXTPRE_DIV1 | ||
47 | #define STM32_PLLMUL_VALUE 9 | ||
48 | #define STM32_HPRE STM32_HPRE_DIV1 | ||
49 | #define STM32_PPRE1 STM32_PPRE1_DIV2 | ||
50 | #define STM32_PPRE2 STM32_PPRE2_DIV2 | ||
51 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
52 | #define STM32_USB_CLOCK_REQUIRED TRUE | ||
53 | #define STM32_USBPRE STM32_USBPRE_DIV1P5 | ||
54 | #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK | ||
55 | #define STM32_RTCSEL STM32_RTCSEL_HSEDIV | ||
56 | #define STM32_PVD_ENABLE FALSE | ||
57 | #define STM32_PLS STM32_PLS_LEV0 | ||
58 | |||
59 | /* | ||
60 | * ADC driver system settings. | ||
61 | */ | ||
62 | #define STM32_ADC_USE_ADC1 FALSE | ||
63 | #define STM32_ADC_ADC1_DMA_PRIORITY 2 | ||
64 | #define STM32_ADC_ADC1_IRQ_PRIORITY 6 | ||
65 | |||
66 | /* | ||
67 | * CAN driver system settings. | ||
68 | */ | ||
69 | #define STM32_CAN_USE_CAN1 FALSE | ||
70 | #define STM32_CAN_CAN1_IRQ_PRIORITY 11 | ||
71 | |||
72 | /* | ||
73 | * EXT driver system settings. | ||
74 | */ | ||
75 | #define STM32_EXT_EXTI0_IRQ_PRIORITY 6 | ||
76 | #define STM32_EXT_EXTI1_IRQ_PRIORITY 6 | ||
77 | #define STM32_EXT_EXTI2_IRQ_PRIORITY 6 | ||
78 | #define STM32_EXT_EXTI3_IRQ_PRIORITY 6 | ||
79 | #define STM32_EXT_EXTI4_IRQ_PRIORITY 6 | ||
80 | #define STM32_EXT_EXTI5_9_IRQ_PRIORITY 6 | ||
81 | #define STM32_EXT_EXTI10_15_IRQ_PRIORITY 6 | ||
82 | #define STM32_EXT_EXTI16_IRQ_PRIORITY 6 | ||
83 | #define STM32_EXT_EXTI17_IRQ_PRIORITY 6 | ||
84 | #define STM32_EXT_EXTI18_IRQ_PRIORITY 6 | ||
85 | #define STM32_EXT_EXTI19_IRQ_PRIORITY 6 | ||
86 | |||
87 | /* | ||
88 | * GPT driver system settings. | ||
89 | */ | ||
90 | #define STM32_GPT_USE_TIM1 FALSE | ||
91 | #define STM32_GPT_USE_TIM2 FALSE | ||
92 | #define STM32_GPT_USE_TIM3 FALSE | ||
93 | #define STM32_GPT_USE_TIM4 FALSE | ||
94 | #define STM32_GPT_USE_TIM5 FALSE | ||
95 | #define STM32_GPT_USE_TIM8 FALSE | ||
96 | #define STM32_GPT_TIM1_IRQ_PRIORITY 7 | ||
97 | #define STM32_GPT_TIM2_IRQ_PRIORITY 7 | ||
98 | #define STM32_GPT_TIM3_IRQ_PRIORITY 7 | ||
99 | #define STM32_GPT_TIM4_IRQ_PRIORITY 7 | ||
100 | #define STM32_GPT_TIM5_IRQ_PRIORITY 7 | ||
101 | #define STM32_GPT_TIM8_IRQ_PRIORITY 7 | ||
102 | |||
103 | /* | ||
104 | * I2C driver system settings. | ||
105 | */ | ||
106 | #define STM32_I2C_USE_I2C1 TRUE | ||
107 | #define STM32_I2C_USE_I2C2 FALSE | ||
108 | #define STM32_I2C_BUSY_TIMEOUT 50 | ||
109 | #define STM32_I2C_I2C1_IRQ_PRIORITY 5 | ||
110 | #define STM32_I2C_I2C2_IRQ_PRIORITY 5 | ||
111 | #define STM32_I2C_I2C1_DMA_PRIORITY 3 | ||
112 | #define STM32_I2C_I2C2_DMA_PRIORITY 3 | ||
113 | #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure") | ||
114 | |||
115 | /* | ||
116 | * ICU driver system settings. | ||
117 | */ | ||
118 | #define STM32_ICU_USE_TIM1 FALSE | ||
119 | #define STM32_ICU_USE_TIM2 FALSE | ||
120 | #define STM32_ICU_USE_TIM3 FALSE | ||
121 | #define STM32_ICU_USE_TIM4 FALSE | ||
122 | #define STM32_ICU_USE_TIM5 FALSE | ||
123 | #define STM32_ICU_USE_TIM8 FALSE | ||
124 | #define STM32_ICU_TIM1_IRQ_PRIORITY 7 | ||
125 | #define STM32_ICU_TIM2_IRQ_PRIORITY 7 | ||
126 | #define STM32_ICU_TIM3_IRQ_PRIORITY 7 | ||
127 | #define STM32_ICU_TIM4_IRQ_PRIORITY 7 | ||
128 | #define STM32_ICU_TIM5_IRQ_PRIORITY 7 | ||
129 | #define STM32_ICU_TIM8_IRQ_PRIORITY 7 | ||
130 | |||
131 | /* | ||
132 | * PWM driver system settings. | ||
133 | */ | ||
134 | #define STM32_PWM_USE_ADVANCED FALSE | ||
135 | #define STM32_PWM_USE_TIM1 FALSE | ||
136 | #define STM32_PWM_USE_TIM2 TRUE | ||
137 | #define STM32_PWM_USE_TIM3 FALSE | ||
138 | #define STM32_PWM_USE_TIM4 FALSE | ||
139 | #define STM32_PWM_USE_TIM5 FALSE | ||
140 | #define STM32_PWM_USE_TIM8 FALSE | ||
141 | #define STM32_PWM_TIM1_IRQ_PRIORITY 7 | ||
142 | #define STM32_PWM_TIM2_IRQ_PRIORITY 7 | ||
143 | #define STM32_PWM_TIM3_IRQ_PRIORITY 7 | ||
144 | #define STM32_PWM_TIM4_IRQ_PRIORITY 7 | ||
145 | #define STM32_PWM_TIM5_IRQ_PRIORITY 7 | ||
146 | #define STM32_PWM_TIM8_IRQ_PRIORITY 7 | ||
147 | |||
148 | /* | ||
149 | * RTC driver system settings. | ||
150 | */ | ||
151 | #define STM32_RTC_IRQ_PRIORITY 15 | ||
152 | |||
153 | /* | ||
154 | * SERIAL driver system settings. | ||
155 | */ | ||
156 | #define STM32_SERIAL_USE_USART1 FALSE | ||
157 | #define STM32_SERIAL_USE_USART2 FALSE | ||
158 | #define STM32_SERIAL_USE_USART3 FALSE | ||
159 | #define STM32_SERIAL_USE_UART4 FALSE | ||
160 | #define STM32_SERIAL_USE_UART5 FALSE | ||
161 | #define STM32_SERIAL_USART1_PRIORITY 12 | ||
162 | #define STM32_SERIAL_USART2_PRIORITY 12 | ||
163 | #define STM32_SERIAL_USART3_PRIORITY 12 | ||
164 | #define STM32_SERIAL_UART4_PRIORITY 12 | ||
165 | #define STM32_SERIAL_UART5_PRIORITY 12 | ||
166 | |||
167 | /* | ||
168 | * SPI driver system settings. | ||
169 | */ | ||
170 | #define STM32_SPI_USE_SPI1 TRUE | ||
171 | #define STM32_SPI_USE_SPI2 FALSE | ||
172 | #define STM32_SPI_USE_SPI3 FALSE | ||
173 | #define STM32_SPI_SPI1_DMA_PRIORITY 1 | ||
174 | #define STM32_SPI_SPI2_DMA_PRIORITY 1 | ||
175 | #define STM32_SPI_SPI3_DMA_PRIORITY 1 | ||
176 | #define STM32_SPI_SPI1_IRQ_PRIORITY 10 | ||
177 | #define STM32_SPI_SPI2_IRQ_PRIORITY 10 | ||
178 | #define STM32_SPI_SPI3_IRQ_PRIORITY 10 | ||
179 | #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure") | ||
180 | |||
181 | /* | ||
182 | * ST driver system settings. | ||
183 | */ | ||
184 | #define STM32_ST_IRQ_PRIORITY 8 | ||
185 | #define STM32_ST_USE_TIMER 2 | ||
186 | |||
187 | /* | ||
188 | * UART driver system settings. | ||
189 | */ | ||
190 | #define STM32_UART_USE_USART1 FALSE | ||
191 | #define STM32_UART_USE_USART2 FALSE | ||
192 | #define STM32_UART_USE_USART3 FALSE | ||
193 | #define STM32_UART_USART1_IRQ_PRIORITY 12 | ||
194 | #define STM32_UART_USART2_IRQ_PRIORITY 12 | ||
195 | #define STM32_UART_USART3_IRQ_PRIORITY 12 | ||
196 | #define STM32_UART_USART1_DMA_PRIORITY 0 | ||
197 | #define STM32_UART_USART2_DMA_PRIORITY 0 | ||
198 | #define STM32_UART_USART3_DMA_PRIORITY 0 | ||
199 | #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") | ||
200 | |||
201 | /* | ||
202 | * USB driver system settings. | ||
203 | */ | ||
204 | #define STM32_USB_USE_USB1 TRUE | ||
205 | #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE | ||
206 | #define STM32_USB_USB1_HP_IRQ_PRIORITY 13 | ||
207 | #define STM32_USB_USB1_LP_IRQ_PRIORITY 14 | ||
208 | |||
209 | #endif /* _MCUCONF_H_ */ | ||