diff options
author | JuanTapMan <68515848+JuanTapMan@users.noreply.github.com> | 2020-08-18 01:25:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 18:25:43 +1000 |
commit | 186b1b2ba2550d9a7a864a241e8f9503c37f188b (patch) | |
tree | 08bfc70a3b8233d18467960598f65ee49e6dfc73 | |
parent | 4237d35e83826d0d8949a45dffa27d6c68d3d4f9 (diff) | |
download | qmk_firmware-186b1b2ba2550d9a7a864a241e8f9503c37f188b.tar.gz qmk_firmware-186b1b2ba2550d9a7a864a241e8f9503c37f188b.zip |
function96 keyboard added (#10024)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/function96/chconf.h | 711 | ||||
-rw-r--r-- | keyboards/function96/config.h | 52 | ||||
-rw-r--r-- | keyboards/function96/function96.c | 17 | ||||
-rw-r--r-- | keyboards/function96/function96.h | 44 | ||||
-rw-r--r-- | keyboards/function96/halconf.h | 522 | ||||
-rw-r--r-- | keyboards/function96/info.json | 12 | ||||
-rw-r--r-- | keyboards/function96/keymaps/default/keymap.c | 44 | ||||
-rw-r--r-- | keyboards/function96/keymaps/default/readme.md | 3 | ||||
-rw-r--r-- | keyboards/function96/mcuconf.h | 168 | ||||
-rw-r--r-- | keyboards/function96/readme.md | 13 | ||||
-rw-r--r-- | keyboards/function96/rules.mk | 19 |
11 files changed, 1605 insertions, 0 deletions
diff --git a/keyboards/function96/chconf.h b/keyboards/function96/chconf.h new file mode 100644 index 000000000..d9e59faf7 --- /dev/null +++ b/keyboards/function96/chconf.h | |||
@@ -0,0 +1,711 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | you may not use this file except in compliance with the License. | ||
5 | You may obtain a copy of the License at | ||
6 | http://www.apache.org/licenses/LICENSE-2.0 | ||
7 | Unless required by applicable law or agreed to in writing, software | ||
8 | distributed under the License is distributed on an "AS IS" BASIS, | ||
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
10 | See the License for the specific language governing permissions and | ||
11 | limitations under the License. | ||
12 | */ | ||
13 | |||
14 | /** | ||
15 | * @file rt/templates/chconf.h | ||
16 | * @brief Configuration file template. | ||
17 | * @details A copy of this file must be placed in each project directory, it | ||
18 | * contains the application specific kernel settings. | ||
19 | * | ||
20 | * @addtogroup config | ||
21 | * @details Kernel related settings and hooks. | ||
22 | * @{ | ||
23 | */ | ||
24 | |||
25 | #ifndef CHCONF_H | ||
26 | #define CHCONF_H | ||
27 | |||
28 | #define _CHIBIOS_RT_CONF_ | ||
29 | #define _CHIBIOS_RT_CONF_VER_6_0_ | ||
30 | |||
31 | /*===========================================================================*/ | ||
32 | /** | ||
33 | * @name System timers settings | ||
34 | * @{ | ||
35 | */ | ||
36 | /*===========================================================================*/ | ||
37 | |||
38 | /** | ||
39 | * @brief System time counter resolution. | ||
40 | * @note Allowed values are 16 or 32 bits. | ||
41 | */ | ||
42 | #if !defined(CH_CFG_ST_RESOLUTION) | ||
43 | #define CH_CFG_ST_RESOLUTION 32 | ||
44 | #endif | ||
45 | |||
46 | /** | ||
47 | * @brief System tick frequency. | ||
48 | * @details Frequency of the system timer that drives the system ticks. This | ||
49 | * setting also defines the system tick time unit. | ||
50 | */ | ||
51 | #if !defined(CH_CFG_ST_FREQUENCY) | ||
52 | #define CH_CFG_ST_FREQUENCY 10000 | ||
53 | #endif | ||
54 | |||
55 | /** | ||
56 | * @brief Time intervals data size. | ||
57 | * @note Allowed values are 16, 32 or 64 bits. | ||
58 | */ | ||
59 | #if !defined(CH_CFG_INTERVALS_SIZE) | ||
60 | #define CH_CFG_INTERVALS_SIZE 32 | ||
61 | #endif | ||
62 | |||
63 | /** | ||
64 | * @brief Time types data size. | ||
65 | * @note Allowed values are 16 or 32 bits. | ||
66 | */ | ||
67 | #if !defined(CH_CFG_TIME_TYPES_SIZE) | ||
68 | #define CH_CFG_TIME_TYPES_SIZE 32 | ||
69 | #endif | ||
70 | |||
71 | /** | ||
72 | * @brief Time delta constant for the tick-less mode. | ||
73 | * @note If this value is zero then the system uses the classic | ||
74 | * periodic tick. This value represents the minimum number | ||
75 | * of ticks that is safe to specify in a timeout directive. | ||
76 | * The value one is not valid, timeouts are rounded up to | ||
77 | * this value. | ||
78 | */ | ||
79 | #if !defined(CH_CFG_ST_TIMEDELTA) | ||
80 | #define CH_CFG_ST_TIMEDELTA 2 | ||
81 | #endif | ||
82 | |||
83 | /** @} */ | ||
84 | |||
85 | /*===========================================================================*/ | ||
86 | /** | ||
87 | * @name Kernel parameters and options | ||
88 | * @{ | ||
89 | */ | ||
90 | /*===========================================================================*/ | ||
91 | |||
92 | /** | ||
93 | * @brief Round robin interval. | ||
94 | * @details This constant is the number of system ticks allowed for the | ||
95 | * threads before preemption occurs. Setting this value to zero | ||
96 | * disables the preemption for threads with equal priority and the | ||
97 | * round robin becomes cooperative. Note that higher priority | ||
98 | * threads can still preempt, the kernel is always preemptive. | ||
99 | * @note Disabling the round robin preemption makes the kernel more compact | ||
100 | * and generally faster. | ||
101 | * @note The round robin preemption is not supported in tickless mode and | ||
102 | * must be set to zero in that case. | ||
103 | */ | ||
104 | #if !defined(CH_CFG_TIME_QUANTUM) | ||
105 | #define CH_CFG_TIME_QUANTUM 0 | ||
106 | #endif | ||
107 | |||
108 | /** | ||
109 | * @brief Managed RAM size. | ||
110 | * @details Size of the RAM area to be managed by the OS. If set to zero | ||
111 | * then the whole available RAM is used. The core memory is made | ||
112 | * available to the heap allocator and/or can be used directly through | ||
113 | * the simplified core memory allocator. | ||
114 | * | ||
115 | * @note In order to let the OS manage the whole RAM the linker script must | ||
116 | * provide the @p __heap_base__ and @p __heap_end__ symbols. | ||
117 | * @note Requires @p CH_CFG_USE_MEMCORE. | ||
118 | */ | ||
119 | #if !defined(CH_CFG_MEMCORE_SIZE) | ||
120 | #define CH_CFG_MEMCORE_SIZE 0 | ||
121 | #endif | ||
122 | |||
123 | /** | ||
124 | * @brief Idle thread automatic spawn suppression. | ||
125 | * @details When this option is activated the function @p chSysInit() | ||
126 | * does not spawn the idle thread. The application @p main() | ||
127 | * function becomes the idle thread and must implement an | ||
128 | * infinite loop. | ||
129 | */ | ||
130 | #if !defined(CH_CFG_NO_IDLE_THREAD) | ||
131 | #define CH_CFG_NO_IDLE_THREAD FALSE | ||
132 | #endif | ||
133 | |||
134 | /** @} */ | ||
135 | |||
136 | /*===========================================================================*/ | ||
137 | /** | ||
138 | * @name Performance options | ||
139 | * @{ | ||
140 | */ | ||
141 | /*===========================================================================*/ | ||
142 | |||
143 | /** | ||
144 | * @brief OS optimization. | ||
145 | * @details If enabled then time efficient rather than space efficient code | ||
146 | * is used when two possible implementations exist. | ||
147 | * | ||
148 | * @note This is not related to the compiler optimization options. | ||
149 | * @note The default is @p TRUE. | ||
150 | */ | ||
151 | #if !defined(CH_CFG_OPTIMIZE_SPEED) | ||
152 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
153 | #endif | ||
154 | |||
155 | /** @} */ | ||
156 | |||
157 | /*===========================================================================*/ | ||
158 | /** | ||
159 | * @name Subsystem options | ||
160 | * @{ | ||
161 | */ | ||
162 | /*===========================================================================*/ | ||
163 | |||
164 | /** | ||
165 | * @brief Time Measurement APIs. | ||
166 | * @details If enabled then the time measurement APIs are included in | ||
167 | * the kernel. | ||
168 | * | ||
169 | * @note The default is @p TRUE. | ||
170 | */ | ||
171 | #if !defined(CH_CFG_USE_TM) | ||
172 | #define CH_CFG_USE_TM FALSE | ||
173 | #endif | ||
174 | |||
175 | /** | ||
176 | * @brief Threads registry APIs. | ||
177 | * @details If enabled then the registry APIs are included in the kernel. | ||
178 | * | ||
179 | * @note The default is @p TRUE. | ||
180 | */ | ||
181 | #if !defined(CH_CFG_USE_REGISTRY) | ||
182 | #define CH_CFG_USE_REGISTRY TRUE | ||
183 | #endif | ||
184 | |||
185 | /** | ||
186 | * @brief Threads synchronization APIs. | ||
187 | * @details If enabled then the @p chThdWait() function is included in | ||
188 | * the kernel. | ||
189 | * | ||
190 | * @note The default is @p TRUE. | ||
191 | */ | ||
192 | #if !defined(CH_CFG_USE_WAITEXIT) | ||
193 | #define CH_CFG_USE_WAITEXIT TRUE | ||
194 | #endif | ||
195 | |||
196 | /** | ||
197 | * @brief Semaphores APIs. | ||
198 | * @details If enabled then the Semaphores APIs are included in the kernel. | ||
199 | * | ||
200 | * @note The default is @p TRUE. | ||
201 | */ | ||
202 | #if !defined(CH_CFG_USE_SEMAPHORES) | ||
203 | #define CH_CFG_USE_SEMAPHORES TRUE | ||
204 | #endif | ||
205 | |||
206 | /** | ||
207 | * @brief Semaphores queuing mode. | ||
208 | * @details If enabled then the threads are enqueued on semaphores by | ||
209 | * priority rather than in FIFO order. | ||
210 | * | ||
211 | * @note The default is @p FALSE. Enable this if you have special | ||
212 | * requirements. | ||
213 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
214 | */ | ||
215 | #if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY) | ||
216 | #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE | ||
217 | #endif | ||
218 | |||
219 | /** | ||
220 | * @brief Mutexes APIs. | ||
221 | * @details If enabled then the mutexes APIs are included in the kernel. | ||
222 | * | ||
223 | * @note The default is @p TRUE. | ||
224 | */ | ||
225 | #if !defined(CH_CFG_USE_MUTEXES) | ||
226 | #define CH_CFG_USE_MUTEXES TRUE | ||
227 | #endif | ||
228 | |||
229 | /** | ||
230 | * @brief Enables recursive behavior on mutexes. | ||
231 | * @note Recursive mutexes are heavier and have an increased | ||
232 | * memory footprint. | ||
233 | * | ||
234 | * @note The default is @p FALSE. | ||
235 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
236 | */ | ||
237 | #if !defined(CH_CFG_USE_MUTEXES_RECURSIVE) | ||
238 | #define CH_CFG_USE_MUTEXES_RECURSIVE FALSE | ||
239 | #endif | ||
240 | |||
241 | /** | ||
242 | * @brief Conditional Variables APIs. | ||
243 | * @details If enabled then the conditional variables APIs are included | ||
244 | * in the kernel. | ||
245 | * | ||
246 | * @note The default is @p TRUE. | ||
247 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
248 | */ | ||
249 | #if !defined(CH_CFG_USE_CONDVARS) | ||
250 | #define CH_CFG_USE_CONDVARS TRUE | ||
251 | #endif | ||
252 | |||
253 | /** | ||
254 | * @brief Conditional Variables APIs with timeout. | ||
255 | * @details If enabled then the conditional variables APIs with timeout | ||
256 | * specification are included in the kernel. | ||
257 | * | ||
258 | * @note The default is @p TRUE. | ||
259 | * @note Requires @p CH_CFG_USE_CONDVARS. | ||
260 | */ | ||
261 | #if !defined(CH_CFG_USE_CONDVARS_TIMEOUT) | ||
262 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
263 | #endif | ||
264 | |||
265 | /** | ||
266 | * @brief Events Flags APIs. | ||
267 | * @details If enabled then the event flags APIs are included in the kernel. | ||
268 | * | ||
269 | * @note The default is @p TRUE. | ||
270 | */ | ||
271 | #if !defined(CH_CFG_USE_EVENTS) | ||
272 | #define CH_CFG_USE_EVENTS TRUE | ||
273 | #endif | ||
274 | |||
275 | /** | ||
276 | * @brief Events Flags APIs with timeout. | ||
277 | * @details If enabled then the events APIs with timeout specification | ||
278 | * are included in the kernel. | ||
279 | * | ||
280 | * @note The default is @p TRUE. | ||
281 | * @note Requires @p CH_CFG_USE_EVENTS. | ||
282 | */ | ||
283 | #if !defined(CH_CFG_USE_EVENTS_TIMEOUT) | ||
284 | #define CH_CFG_USE_EVENTS_TIMEOUT TRUE | ||
285 | #endif | ||
286 | |||
287 | /** | ||
288 | * @brief Synchronous Messages APIs. | ||
289 | * @details If enabled then the synchronous messages APIs are included | ||
290 | * in the kernel. | ||
291 | * | ||
292 | * @note The default is @p TRUE. | ||
293 | */ | ||
294 | #if !defined(CH_CFG_USE_MESSAGES) | ||
295 | #define CH_CFG_USE_MESSAGES TRUE | ||
296 | #endif | ||
297 | |||
298 | /** | ||
299 | * @brief Synchronous Messages queuing mode. | ||
300 | * @details If enabled then messages are served by priority rather than in | ||
301 | * FIFO order. | ||
302 | * | ||
303 | * @note The default is @p FALSE. Enable this if you have special | ||
304 | * requirements. | ||
305 | * @note Requires @p CH_CFG_USE_MESSAGES. | ||
306 | */ | ||
307 | #if !defined(CH_CFG_USE_MESSAGES_PRIORITY) | ||
308 | #define CH_CFG_USE_MESSAGES_PRIORITY FALSE | ||
309 | #endif | ||
310 | |||
311 | /** | ||
312 | * @brief Mailboxes APIs. | ||
313 | * @details If enabled then the asynchronous messages (mailboxes) APIs are | ||
314 | * included in the kernel. | ||
315 | * | ||
316 | * @note The default is @p TRUE. | ||
317 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
318 | */ | ||
319 | #if !defined(CH_CFG_USE_MAILBOXES) | ||
320 | #define CH_CFG_USE_MAILBOXES TRUE | ||
321 | #endif | ||
322 | |||
323 | /** | ||
324 | * @brief Core Memory Manager APIs. | ||
325 | * @details If enabled then the core memory manager APIs are included | ||
326 | * in the kernel. | ||
327 | * | ||
328 | * @note The default is @p TRUE. | ||
329 | */ | ||
330 | #if !defined(CH_CFG_USE_MEMCORE) | ||
331 | #define CH_CFG_USE_MEMCORE TRUE | ||
332 | #endif | ||
333 | |||
334 | /** | ||
335 | * @brief Heap Allocator APIs. | ||
336 | * @details If enabled then the memory heap allocator APIs are included | ||
337 | * in the kernel. | ||
338 | * | ||
339 | * @note The default is @p TRUE. | ||
340 | * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or | ||
341 | * @p CH_CFG_USE_SEMAPHORES. | ||
342 | * @note Mutexes are recommended. | ||
343 | */ | ||
344 | #if !defined(CH_CFG_USE_HEAP) | ||
345 | #define CH_CFG_USE_HEAP FALSE | ||
346 | #endif | ||
347 | |||
348 | /** | ||
349 | * @brief Memory Pools Allocator APIs. | ||
350 | * @details If enabled then the memory pools allocator APIs are included | ||
351 | * in the kernel. | ||
352 | * | ||
353 | * @note The default is @p TRUE. | ||
354 | */ | ||
355 | #if !defined(CH_CFG_USE_MEMPOOLS) | ||
356 | #define CH_CFG_USE_MEMPOOLS FALSE | ||
357 | #endif | ||
358 | |||
359 | /** | ||
360 | * @brief Objects FIFOs APIs. | ||
361 | * @details If enabled then the objects FIFOs APIs are included | ||
362 | * in the kernel. | ||
363 | * | ||
364 | * @note The default is @p TRUE. | ||
365 | */ | ||
366 | #if !defined(CH_CFG_USE_OBJ_FIFOS) | ||
367 | #define CH_CFG_USE_OBJ_FIFOS FALSE | ||
368 | #endif | ||
369 | |||
370 | /** | ||
371 | * @brief Pipes APIs. | ||
372 | * @details If enabled then the pipes APIs are included | ||
373 | * in the kernel. | ||
374 | * | ||
375 | * @note The default is @p TRUE. | ||
376 | */ | ||
377 | #if !defined(CH_CFG_USE_PIPES) | ||
378 | #define CH_CFG_USE_PIPES FALSE | ||
379 | #endif | ||
380 | |||
381 | /** | ||
382 | * @brief Dynamic Threads APIs. | ||
383 | * @details If enabled then the dynamic threads creation APIs are included | ||
384 | * in the kernel. | ||
385 | * | ||
386 | * @note The default is @p TRUE. | ||
387 | * @note Requires @p CH_CFG_USE_WAITEXIT. | ||
388 | * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. | ||
389 | */ | ||
390 | #if !defined(CH_CFG_USE_DYNAMIC) | ||
391 | #define CH_CFG_USE_DYNAMIC FALSE | ||
392 | #endif | ||
393 | |||
394 | /** @} */ | ||
395 | |||
396 | /*===========================================================================*/ | ||
397 | /** | ||
398 | * @name Objects factory options | ||
399 | * @{ | ||
400 | */ | ||
401 | /*===========================================================================*/ | ||
402 | |||
403 | /** | ||
404 | * @brief Objects Factory APIs. | ||
405 | * @details If enabled then the objects factory APIs are included in the | ||
406 | * kernel. | ||
407 | * | ||
408 | * @note The default is @p FALSE. | ||
409 | */ | ||
410 | #if !defined(CH_CFG_USE_FACTORY) | ||
411 | #define CH_CFG_USE_FACTORY FALSE | ||
412 | #endif | ||
413 | |||
414 | /** | ||
415 | * @brief Maximum length for object names. | ||
416 | * @details If the specified length is zero then the name is stored by | ||
417 | * pointer but this could have unintended side effects. | ||
418 | */ | ||
419 | #if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH) | ||
420 | #define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8 | ||
421 | #endif | ||
422 | |||
423 | /** | ||
424 | * @brief Enables the registry of generic objects. | ||
425 | */ | ||
426 | #if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY) | ||
427 | #define CH_CFG_FACTORY_OBJECTS_REGISTRY FALSE | ||
428 | #endif | ||
429 | |||
430 | /** | ||
431 | * @brief Enables factory for generic buffers. | ||
432 | */ | ||
433 | #if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS) | ||
434 | #define CH_CFG_FACTORY_GENERIC_BUFFERS FALSE | ||
435 | #endif | ||
436 | |||
437 | /** | ||
438 | * @brief Enables factory for semaphores. | ||
439 | */ | ||
440 | #if !defined(CH_CFG_FACTORY_SEMAPHORES) | ||
441 | #define CH_CFG_FACTORY_SEMAPHORES FALSE | ||
442 | #endif | ||
443 | |||
444 | /** | ||
445 | * @brief Enables factory for mailboxes. | ||
446 | */ | ||
447 | #if !defined(CH_CFG_FACTORY_MAILBOXES) | ||
448 | #define CH_CFG_FACTORY_MAILBOXES FALSE | ||
449 | #endif | ||
450 | |||
451 | /** | ||
452 | * @brief Enables factory for objects FIFOs. | ||
453 | */ | ||
454 | #if !defined(CH_CFG_FACTORY_OBJ_FIFOS) | ||
455 | #define CH_CFG_FACTORY_OBJ_FIFOS FALSE | ||
456 | #endif | ||
457 | |||
458 | /** | ||
459 | * @brief Enables factory for Pipes. | ||
460 | */ | ||
461 | #if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__) | ||
462 | #define CH_CFG_FACTORY_PIPES FALSE | ||
463 | #endif | ||
464 | |||
465 | /** @} */ | ||
466 | |||
467 | /*===========================================================================*/ | ||
468 | /** | ||
469 | * @name Debug options | ||
470 | * @{ | ||
471 | */ | ||
472 | /*===========================================================================*/ | ||
473 | |||
474 | /** | ||
475 | * @brief Debug option, kernel statistics. | ||
476 | * | ||
477 | * @note The default is @p FALSE. | ||
478 | */ | ||
479 | #if !defined(CH_DBG_STATISTICS) | ||
480 | #define CH_DBG_STATISTICS FALSE | ||
481 | #endif | ||
482 | |||
483 | /** | ||
484 | * @brief Debug option, system state check. | ||
485 | * @details If enabled the correct call protocol for system APIs is checked | ||
486 | * at runtime. | ||
487 | * | ||
488 | * @note The default is @p FALSE. | ||
489 | */ | ||
490 | #if !defined(CH_DBG_SYSTEM_STATE_CHECK) | ||
491 | #define CH_DBG_SYSTEM_STATE_CHECK FALSE | ||
492 | #endif | ||
493 | |||
494 | /** | ||
495 | * @brief Debug option, parameters checks. | ||
496 | * @details If enabled then the checks on the API functions input | ||
497 | * parameters are activated. | ||
498 | * | ||
499 | * @note The default is @p FALSE. | ||
500 | */ | ||
501 | #if !defined(CH_DBG_ENABLE_CHECKS) | ||
502 | #define CH_DBG_ENABLE_CHECKS FALSE | ||
503 | #endif | ||
504 | |||
505 | /** | ||
506 | * @brief Debug option, consistency checks. | ||
507 | * @details If enabled then all the assertions in the kernel code are | ||
508 | * activated. This includes consistency checks inside the kernel, | ||
509 | * runtime anomalies and port-defined checks. | ||
510 | * | ||
511 | * @note The default is @p FALSE. | ||
512 | */ | ||
513 | #if !defined(CH_DBG_ENABLE_ASSERTS) | ||
514 | #define CH_DBG_ENABLE_ASSERTS FALSE | ||
515 | #endif | ||
516 | |||
517 | /** | ||
518 | * @brief Debug option, trace buffer. | ||
519 | * @details If enabled then the trace buffer is activated. | ||
520 | * | ||
521 | * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. | ||
522 | */ | ||
523 | #if !defined(CH_DBG_TRACE_MASK) | ||
524 | #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED | ||
525 | #endif | ||
526 | |||
527 | /** | ||
528 | * @brief Trace buffer entries. | ||
529 | * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is | ||
530 | * different from @p CH_DBG_TRACE_MASK_DISABLED. | ||
531 | */ | ||
532 | #if !defined(CH_DBG_TRACE_BUFFER_SIZE) | ||
533 | #define CH_DBG_TRACE_BUFFER_SIZE 128 | ||
534 | #endif | ||
535 | |||
536 | /** | ||
537 | * @brief Debug option, stack checks. | ||
538 | * @details If enabled then a runtime stack check is performed. | ||
539 | * | ||
540 | * @note The default is @p FALSE. | ||
541 | * @note The stack check is performed in a architecture/port dependent way. | ||
542 | * It may not be implemented or some ports. | ||
543 | * @note The default failure mode is to halt the system with the global | ||
544 | * @p panic_msg variable set to @p NULL. | ||
545 | */ | ||
546 | #if !defined(CH_DBG_ENABLE_STACK_CHECK) | ||
547 | #define CH_DBG_ENABLE_STACK_CHECK FALSE | ||
548 | #endif | ||
549 | |||
550 | /** | ||
551 | * @brief Debug option, stacks initialization. | ||
552 | * @details If enabled then the threads working area is filled with a byte | ||
553 | * value when a thread is created. This can be useful for the | ||
554 | * runtime measurement of the used stack. | ||
555 | * | ||
556 | * @note The default is @p FALSE. | ||
557 | */ | ||
558 | #if !defined(CH_DBG_FILL_THREADS) | ||
559 | #define CH_DBG_FILL_THREADS FALSE | ||
560 | #endif | ||
561 | |||
562 | /** | ||
563 | * @brief Debug option, threads profiling. | ||
564 | * @details If enabled then a field is added to the @p thread_t structure that | ||
565 | * counts the system ticks occurred while executing the thread. | ||
566 | * | ||
567 | * @note The default is @p FALSE. | ||
568 | * @note This debug option is not currently compatible with the | ||
569 | * tickless mode. | ||
570 | */ | ||
571 | #if !defined(CH_DBG_THREADS_PROFILING) | ||
572 | #define CH_DBG_THREADS_PROFILING FALSE | ||
573 | #endif | ||
574 | |||
575 | /** @} */ | ||
576 | |||
577 | /*===========================================================================*/ | ||
578 | /** | ||
579 | * @name Kernel hooks | ||
580 | * @{ | ||
581 | */ | ||
582 | /*===========================================================================*/ | ||
583 | |||
584 | /** | ||
585 | * @brief System structure extension. | ||
586 | * @details User fields added to the end of the @p ch_system_t structure. | ||
587 | */ | ||
588 | #define CH_CFG_SYSTEM_EXTRA_FIELDS \ | ||
589 | /* Add threads custom fields here.*/ | ||
590 | |||
591 | /** | ||
592 | * @brief System initialization hook. | ||
593 | * @details User initialization code added to the @p chSysInit() function | ||
594 | * just before interrupts are enabled globally. | ||
595 | */ | ||
596 | #define CH_CFG_SYSTEM_INIT_HOOK() { \ | ||
597 | /* Add threads initialization code here.*/ \ | ||
598 | } | ||
599 | |||
600 | /** | ||
601 | * @brief Threads descriptor structure extension. | ||
602 | * @details User fields added to the end of the @p thread_t structure. | ||
603 | */ | ||
604 | #define CH_CFG_THREAD_EXTRA_FIELDS \ | ||
605 | /* Add threads custom fields here.*/ | ||
606 | |||
607 | /** | ||
608 | * @brief Threads initialization hook. | ||
609 | * @details User initialization code added to the @p _thread_init() function. | ||
610 | * | ||
611 | * @note It is invoked from within @p _thread_init() and implicitly from all | ||
612 | * the threads creation APIs. | ||
613 | */ | ||
614 | #define CH_CFG_THREAD_INIT_HOOK(tp) { \ | ||
615 | /* Add threads initialization code here.*/ \ | ||
616 | } | ||
617 | |||
618 | /** | ||
619 | * @brief Threads finalization hook. | ||
620 | * @details User finalization code added to the @p chThdExit() API. | ||
621 | */ | ||
622 | #define CH_CFG_THREAD_EXIT_HOOK(tp) { \ | ||
623 | /* Add threads finalization code here.*/ \ | ||
624 | } | ||
625 | |||
626 | /** | ||
627 | * @brief Context switch hook. | ||
628 | * @details This hook is invoked just before switching between threads. | ||
629 | */ | ||
630 | #define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \ | ||
631 | /* Context switch code here.*/ \ | ||
632 | } | ||
633 | |||
634 | /** | ||
635 | * @brief ISR enter hook. | ||
636 | */ | ||
637 | #define CH_CFG_IRQ_PROLOGUE_HOOK() { \ | ||
638 | /* IRQ prologue code here.*/ \ | ||
639 | } | ||
640 | |||
641 | /** | ||
642 | * @brief ISR exit hook. | ||
643 | */ | ||
644 | #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ | ||
645 | /* IRQ epilogue code here.*/ \ | ||
646 | } | ||
647 | |||
648 | /** | ||
649 | * @brief Idle thread enter hook. | ||
650 | * @note This hook is invoked within a critical zone, no OS functions | ||
651 | * should be invoked from here. | ||
652 | * @note This macro can be used to activate a power saving mode. | ||
653 | */ | ||
654 | #define CH_CFG_IDLE_ENTER_HOOK() { \ | ||
655 | /* Idle-enter code here.*/ \ | ||
656 | } | ||
657 | |||
658 | /** | ||
659 | * @brief Idle thread leave hook. | ||
660 | * @note This hook is invoked within a critical zone, no OS functions | ||
661 | * should be invoked from here. | ||
662 | * @note This macro can be used to deactivate a power saving mode. | ||
663 | */ | ||
664 | #define CH_CFG_IDLE_LEAVE_HOOK() { \ | ||
665 | /* Idle-leave code here.*/ \ | ||
666 | } | ||
667 | |||
668 | /** | ||
669 | * @brief Idle Loop hook. | ||
670 | * @details This hook is continuously invoked by the idle thread loop. | ||
671 | */ | ||
672 | #define CH_CFG_IDLE_LOOP_HOOK() { \ | ||
673 | /* Idle loop code here.*/ \ | ||
674 | } | ||
675 | |||
676 | /** | ||
677 | * @brief System tick event hook. | ||
678 | * @details This hook is invoked in the system tick handler immediately | ||
679 | * after processing the virtual timers queue. | ||
680 | */ | ||
681 | #define CH_CFG_SYSTEM_TICK_HOOK() { \ | ||
682 | /* System tick event code here.*/ \ | ||
683 | } | ||
684 | |||
685 | /** | ||
686 | * @brief System halt hook. | ||
687 | * @details This hook is invoked in case to a system halting error before | ||
688 | * the system is halted. | ||
689 | */ | ||
690 | #define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ | ||
691 | /* System halt code here.*/ \ | ||
692 | } | ||
693 | |||
694 | /** | ||
695 | * @brief Trace hook. | ||
696 | * @details This hook is invoked each time a new record is written in the | ||
697 | * trace buffer. | ||
698 | */ | ||
699 | #define CH_CFG_TRACE_HOOK(tep) { \ | ||
700 | /* Trace code here.*/ \ | ||
701 | } | ||
702 | |||
703 | /** @} */ | ||
704 | |||
705 | /*===========================================================================*/ | ||
706 | /* Port-specific settings (override port settings defaulted in chcore.h). */ | ||
707 | /*===========================================================================*/ | ||
708 | |||
709 | #endif /* CHCONF_H */ | ||
710 | |||
711 | /** @} */ | ||
diff --git a/keyboards/function96/config.h b/keyboards/function96/config.h new file mode 100644 index 000000000..0656d223e --- /dev/null +++ b/keyboards/function96/config.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | Copyright 2020 Matt3o | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x672A | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER JTM | ||
28 | #define PRODUCT function96 | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 6 | ||
32 | #define MATRIX_COLS 19 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS { F1, F0, C15, C14, C13, B9 } | ||
45 | #define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B10, B12, A13, A14, A15, B3, B4, B5, B6, B7, B8} | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW, ROW2COL*/ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
52 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/function96/function96.c b/keyboards/function96/function96.c new file mode 100644 index 000000000..86b8a6f70 --- /dev/null +++ b/keyboards/function96/function96.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2020 Matt3o | ||
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 | |||
17 | #include "function96.h" | ||
diff --git a/keyboards/function96/function96.h b/keyboards/function96/function96.h new file mode 100644 index 000000000..50cd1fb2b --- /dev/null +++ b/keyboards/function96/function96.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* Copyright 2020 Matt3o | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | /* This is a shortcut to help you visually see your layout. | ||
22 | * | ||
23 | * The first section contains all of the arguments representing the physical | ||
24 | * layout of the board and position of the keys. | ||
25 | * | ||
26 | * The second converts the arguments into a two-dimensional array which | ||
27 | * represents the switch matrix. | ||
28 | */ | ||
29 | |||
30 | #define LAYOUT( \ | ||
31 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, K16, K17, K18, \ | ||
32 | K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, K36, \ | ||
33 | K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, K51, K52, K53, K54, \ | ||
34 | K55, K56, K57, K58, K59, K60, K61, K62, K63, K64, K65, K66, K67, K68, K69, K70, \ | ||
35 | K71, K72, K73, K74, K75, K76, K77, K78, K79, K80, K81, K82, K83, K84, K85, K86, K87, \ | ||
36 | K88, K89, K90, K91, K92, K93, K94, K95, K96, K97, K98, K99, K100 \ | ||
37 | ) { \ | ||
38 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, K16, K17 , K18}, \ | ||
39 | { K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, K31, K32, KC_NO, K33, K34, K35 , K36}, \ | ||
40 | { K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, KC_NO, K50, K51, K52, K53 , K54}, \ | ||
41 | { K55, K56, K57, K58, K59, K60, K61, K62, K63, K64, K65, K66, KC_NO, K67, KC_NO, K68, K69, K70 , KC_NO}, \ | ||
42 | { K71, K72, K73, K74, K75, K76, K77, K78, K79, K80, K81, KC_NO, K82, KC_NO, K83, K84, K85, K86 , K87}, \ | ||
43 | { K88, K89, KC_NO, K90, K91, KC_NO, K92, KC_NO, K93, KC_NO, K94, K95, KC_NO, K96, K97, K98, K99, K100, KC_NO} \ | ||
44 | } | ||
diff --git a/keyboards/function96/halconf.h b/keyboards/function96/halconf.h new file mode 100644 index 000000000..97696353f --- /dev/null +++ b/keyboards/function96/halconf.h | |||
@@ -0,0 +1,522 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | you may not use this file except in compliance with the License. | ||
5 | You may obtain a copy of the License at | ||
6 | http://www.apache.org/licenses/LICENSE-2.0 | ||
7 | Unless required by applicable law or agreed to in writing, software | ||
8 | distributed under the License is distributed on an "AS IS" BASIS, | ||
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
10 | See the License for the specific language governing permissions and | ||
11 | limitations under the License. | ||
12 | */ | ||
13 | |||
14 | /** | ||
15 | * @file templates/halconf.h | ||
16 | * @brief HAL configuration header. | ||
17 | * @details HAL configuration file, this file allows to enable or disable the | ||
18 | * various device drivers from your application. You may also use | ||
19 | * this file in order to override the device drivers default settings. | ||
20 | * | ||
21 | * @addtogroup HAL_CONF | ||
22 | * @{ | ||
23 | */ | ||
24 | |||
25 | #ifndef HALCONF_H | ||
26 | #define HALCONF_H | ||
27 | |||
28 | #define _CHIBIOS_HAL_CONF_ | ||
29 | #define _CHIBIOS_HAL_CONF_VER_7_0_ | ||
30 | |||
31 | #include "mcuconf.h" | ||
32 | |||
33 | /** | ||
34 | * @brief Enables the PAL subsystem. | ||
35 | */ | ||
36 | #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) | ||
37 | #define HAL_USE_PAL TRUE | ||
38 | #endif | ||
39 | |||
40 | /** | ||
41 | * @brief Enables the ADC subsystem. | ||
42 | */ | ||
43 | #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) | ||
44 | #define HAL_USE_ADC FALSE | ||
45 | #endif | ||
46 | |||
47 | /** | ||
48 | * @brief Enables the CAN subsystem. | ||
49 | */ | ||
50 | #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) | ||
51 | #define HAL_USE_CAN FALSE | ||
52 | #endif | ||
53 | |||
54 | /** | ||
55 | * @brief Enables the cryptographic subsystem. | ||
56 | */ | ||
57 | #if !defined(HAL_USE_CRY) || defined(__DOXYGEN__) | ||
58 | #define HAL_USE_CRY FALSE | ||
59 | #endif | ||
60 | |||
61 | /** | ||
62 | * @brief Enables the DAC subsystem. | ||
63 | */ | ||
64 | #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) | ||
65 | #define HAL_USE_DAC FALSE | ||
66 | #endif | ||
67 | |||
68 | /** | ||
69 | * @brief Enables the GPT subsystem. | ||
70 | */ | ||
71 | #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) | ||
72 | #define HAL_USE_GPT FALSE | ||
73 | #endif | ||
74 | |||
75 | /** | ||
76 | * @brief Enables the I2C subsystem. | ||
77 | */ | ||
78 | #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) | ||
79 | #define HAL_USE_I2C FALSE | ||
80 | #endif | ||
81 | |||
82 | /** | ||
83 | * @brief Enables the I2S subsystem. | ||
84 | */ | ||
85 | #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__) | ||
86 | #define HAL_USE_I2S FALSE | ||
87 | #endif | ||
88 | |||
89 | /** | ||
90 | * @brief Enables the ICU subsystem. | ||
91 | */ | ||
92 | #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__) | ||
93 | #define HAL_USE_ICU FALSE | ||
94 | #endif | ||
95 | |||
96 | /** | ||
97 | * @brief Enables the MAC subsystem. | ||
98 | */ | ||
99 | #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__) | ||
100 | #define HAL_USE_MAC FALSE | ||
101 | #endif | ||
102 | |||
103 | /** | ||
104 | * @brief Enables the MMC_SPI subsystem. | ||
105 | */ | ||
106 | #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__) | ||
107 | #define HAL_USE_MMC_SPI FALSE | ||
108 | #endif | ||
109 | |||
110 | /** | ||
111 | * @brief Enables the PWM subsystem. | ||
112 | */ | ||
113 | #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) | ||
114 | #define HAL_USE_PWM TRUE | ||
115 | #endif | ||
116 | |||
117 | /** | ||
118 | * @brief Enables the RTC subsystem. | ||
119 | */ | ||
120 | #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__) | ||
121 | #define HAL_USE_RTC FALSE | ||
122 | #endif | ||
123 | |||
124 | /** | ||
125 | * @brief Enables the SDC subsystem. | ||
126 | */ | ||
127 | #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__) | ||
128 | #define HAL_USE_SDC FALSE | ||
129 | #endif | ||
130 | |||
131 | /** | ||
132 | * @brief Enables the SERIAL subsystem. | ||
133 | */ | ||
134 | #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) | ||
135 | #define HAL_USE_SERIAL FALSE | ||
136 | #endif | ||
137 | |||
138 | /** | ||
139 | * @brief Enables the SERIAL over USB subsystem. | ||
140 | */ | ||
141 | #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) | ||
142 | #define HAL_USE_SERIAL_USB FALSE | ||
143 | #endif | ||
144 | |||
145 | /** | ||
146 | * @brief Enables the SIO subsystem. | ||
147 | */ | ||
148 | #if !defined(HAL_USE_SIO) || defined(__DOXYGEN__) | ||
149 | #define HAL_USE_SIO FALSE | ||
150 | #endif | ||
151 | |||
152 | /** | ||
153 | * @brief Enables the SPI subsystem. | ||
154 | */ | ||
155 | #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) | ||
156 | #define HAL_USE_SPI FALSE | ||
157 | #endif | ||
158 | |||
159 | /** | ||
160 | * @brief Enables the TRNG subsystem. | ||
161 | */ | ||
162 | #if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__) | ||
163 | #define HAL_USE_TRNG FALSE | ||
164 | #endif | ||
165 | |||
166 | /** | ||
167 | * @brief Enables the UART subsystem. | ||
168 | */ | ||
169 | #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) | ||
170 | #define HAL_USE_UART FALSE | ||
171 | #endif | ||
172 | |||
173 | /** | ||
174 | * @brief Enables the USB subsystem. | ||
175 | */ | ||
176 | #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) | ||
177 | #define HAL_USE_USB TRUE | ||
178 | #endif | ||
179 | |||
180 | /** | ||
181 | * @brief Enables the WDG subsystem. | ||
182 | */ | ||
183 | #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) | ||
184 | #define HAL_USE_WDG FALSE | ||
185 | #endif | ||
186 | |||
187 | /** | ||
188 | * @brief Enables the WSPI subsystem. | ||
189 | */ | ||
190 | #if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) | ||
191 | #define HAL_USE_WSPI FALSE | ||
192 | #endif | ||
193 | |||
194 | /*===========================================================================*/ | ||
195 | /* PAL driver related settings. */ | ||
196 | /*===========================================================================*/ | ||
197 | |||
198 | /** | ||
199 | * @brief Enables synchronous APIs. | ||
200 | * @note Disabling this option saves both code and data space. | ||
201 | */ | ||
202 | #if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
203 | #define PAL_USE_CALLBACKS FALSE | ||
204 | #endif | ||
205 | |||
206 | /** | ||
207 | * @brief Enables synchronous APIs. | ||
208 | * @note Disabling this option saves both code and data space. | ||
209 | */ | ||
210 | #if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__) | ||
211 | #define PAL_USE_WAIT FALSE | ||
212 | #endif | ||
213 | |||
214 | /*===========================================================================*/ | ||
215 | /* ADC driver related settings. */ | ||
216 | /*===========================================================================*/ | ||
217 | |||
218 | /** | ||
219 | * @brief Enables synchronous APIs. | ||
220 | * @note Disabling this option saves both code and data space. | ||
221 | */ | ||
222 | #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) | ||
223 | #define ADC_USE_WAIT TRUE | ||
224 | #endif | ||
225 | |||
226 | /** | ||
227 | * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs. | ||
228 | * @note Disabling this option saves both code and data space. | ||
229 | */ | ||
230 | #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
231 | #define ADC_USE_MUTUAL_EXCLUSION TRUE | ||
232 | #endif | ||
233 | |||
234 | /*===========================================================================*/ | ||
235 | /* CAN driver related settings. */ | ||
236 | /*===========================================================================*/ | ||
237 | |||
238 | /** | ||
239 | * @brief Sleep mode related APIs inclusion switch. | ||
240 | */ | ||
241 | #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) | ||
242 | #define CAN_USE_SLEEP_MODE TRUE | ||
243 | #endif | ||
244 | |||
245 | /** | ||
246 | * @brief Enforces the driver to use direct callbacks rather than OSAL events. | ||
247 | */ | ||
248 | #if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
249 | #define CAN_ENFORCE_USE_CALLBACKS FALSE | ||
250 | #endif | ||
251 | |||
252 | /*===========================================================================*/ | ||
253 | /* CRY driver related settings. */ | ||
254 | /*===========================================================================*/ | ||
255 | |||
256 | /** | ||
257 | * @brief Enables the SW fall-back of the cryptographic driver. | ||
258 | * @details When enabled, this option, activates a fall-back software | ||
259 | * implementation for algorithms not supported by the underlying | ||
260 | * hardware. | ||
261 | * @note Fall-back implementations may not be present for all algorithms. | ||
262 | */ | ||
263 | #if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__) | ||
264 | #define HAL_CRY_USE_FALLBACK FALSE | ||
265 | #endif | ||
266 | |||
267 | /** | ||
268 | * @brief Makes the driver forcibly use the fall-back implementations. | ||
269 | */ | ||
270 | #if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__) | ||
271 | #define HAL_CRY_ENFORCE_FALLBACK FALSE | ||
272 | #endif | ||
273 | |||
274 | /*===========================================================================*/ | ||
275 | /* DAC driver related settings. */ | ||
276 | /*===========================================================================*/ | ||
277 | |||
278 | /** | ||
279 | * @brief Enables synchronous APIs. | ||
280 | * @note Disabling this option saves both code and data space. | ||
281 | */ | ||
282 | #if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__) | ||
283 | #define DAC_USE_WAIT TRUE | ||
284 | #endif | ||
285 | |||
286 | /** | ||
287 | * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs. | ||
288 | * @note Disabling this option saves both code and data space. | ||
289 | */ | ||
290 | #if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
291 | #define DAC_USE_MUTUAL_EXCLUSION TRUE | ||
292 | #endif | ||
293 | |||
294 | /*===========================================================================*/ | ||
295 | /* I2C driver related settings. */ | ||
296 | /*===========================================================================*/ | ||
297 | |||
298 | /** | ||
299 | * @brief Enables the mutual exclusion APIs on the I2C bus. | ||
300 | */ | ||
301 | #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
302 | #define I2C_USE_MUTUAL_EXCLUSION TRUE | ||
303 | #endif | ||
304 | |||
305 | /*===========================================================================*/ | ||
306 | /* MAC driver related settings. */ | ||
307 | /*===========================================================================*/ | ||
308 | |||
309 | /** | ||
310 | * @brief Enables the zero-copy API. | ||
311 | */ | ||
312 | #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) | ||
313 | #define MAC_USE_ZERO_COPY FALSE | ||
314 | #endif | ||
315 | |||
316 | /** | ||
317 | * @brief Enables an event sources for incoming packets. | ||
318 | */ | ||
319 | #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) | ||
320 | #define MAC_USE_EVENTS TRUE | ||
321 | #endif | ||
322 | |||
323 | /*===========================================================================*/ | ||
324 | /* MMC_SPI driver related settings. */ | ||
325 | /*===========================================================================*/ | ||
326 | |||
327 | /** | ||
328 | * @brief Delays insertions. | ||
329 | * @details If enabled this options inserts delays into the MMC waiting | ||
330 | * routines releasing some extra CPU time for the threads with | ||
331 | * lower priority, this may slow down the driver a bit however. | ||
332 | * This option is recommended also if the SPI driver does not | ||
333 | * use a DMA channel and heavily loads the CPU. | ||
334 | */ | ||
335 | #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) | ||
336 | #define MMC_NICE_WAITING TRUE | ||
337 | #endif | ||
338 | |||
339 | /*===========================================================================*/ | ||
340 | /* SDC driver related settings. */ | ||
341 | /*===========================================================================*/ | ||
342 | |||
343 | /** | ||
344 | * @brief Number of initialization attempts before rejecting the card. | ||
345 | * @note Attempts are performed at 10mS intervals. | ||
346 | */ | ||
347 | #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) | ||
348 | #define SDC_INIT_RETRY 100 | ||
349 | #endif | ||
350 | |||
351 | /** | ||
352 | * @brief Include support for MMC cards. | ||
353 | * @note MMC support is not yet implemented so this option must be kept | ||
354 | * at @p FALSE. | ||
355 | */ | ||
356 | #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) | ||
357 | #define SDC_MMC_SUPPORT FALSE | ||
358 | #endif | ||
359 | |||
360 | /** | ||
361 | * @brief Delays insertions. | ||
362 | * @details If enabled this options inserts delays into the MMC waiting | ||
363 | * routines releasing some extra CPU time for the threads with | ||
364 | * lower priority, this may slow down the driver a bit however. | ||
365 | */ | ||
366 | #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) | ||
367 | #define SDC_NICE_WAITING TRUE | ||
368 | #endif | ||
369 | |||
370 | /** | ||
371 | * @brief OCR initialization constant for V20 cards. | ||
372 | */ | ||
373 | #if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__) | ||
374 | #define SDC_INIT_OCR_V20 0x50FF8000U | ||
375 | #endif | ||
376 | |||
377 | /** | ||
378 | * @brief OCR initialization constant for non-V20 cards. | ||
379 | */ | ||
380 | #if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__) | ||
381 | #define SDC_INIT_OCR 0x80100000U | ||
382 | #endif | ||
383 | |||
384 | /*===========================================================================*/ | ||
385 | /* SERIAL driver related settings. */ | ||
386 | /*===========================================================================*/ | ||
387 | |||
388 | /** | ||
389 | * @brief Default bit rate. | ||
390 | * @details Configuration parameter, this is the baud rate selected for the | ||
391 | * default configuration. | ||
392 | */ | ||
393 | #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) | ||
394 | #define SERIAL_DEFAULT_BITRATE 38400 | ||
395 | #endif | ||
396 | |||
397 | /** | ||
398 | * @brief Serial buffers size. | ||
399 | * @details Configuration parameter, you can change the depth of the queue | ||
400 | * buffers depending on the requirements of your application. | ||
401 | * @note The default is 16 bytes for both the transmission and receive | ||
402 | * buffers. | ||
403 | */ | ||
404 | #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
405 | #define SERIAL_BUFFERS_SIZE 16 | ||
406 | #endif | ||
407 | |||
408 | /*===========================================================================*/ | ||
409 | /* SERIAL_USB driver related setting. */ | ||
410 | /*===========================================================================*/ | ||
411 | |||
412 | /** | ||
413 | * @brief Serial over USB buffers size. | ||
414 | * @details Configuration parameter, the buffer size must be a multiple of | ||
415 | * the USB data endpoint maximum packet size. | ||
416 | * @note The default is 256 bytes for both the transmission and receive | ||
417 | * buffers. | ||
418 | */ | ||
419 | #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
420 | #define SERIAL_USB_BUFFERS_SIZE 1 | ||
421 | #endif | ||
422 | |||
423 | /** | ||
424 | * @brief Serial over USB number of buffers. | ||
425 | * @note The default is 2 buffers. | ||
426 | */ | ||
427 | #if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__) | ||
428 | #define SERIAL_USB_BUFFERS_NUMBER 2 | ||
429 | #endif | ||
430 | |||
431 | /*===========================================================================*/ | ||
432 | /* SPI driver related settings. */ | ||
433 | /*===========================================================================*/ | ||
434 | |||
435 | /** | ||
436 | * @brief Enables synchronous APIs. | ||
437 | * @note Disabling this option saves both code and data space. | ||
438 | */ | ||
439 | #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) | ||
440 | #define SPI_USE_WAIT TRUE | ||
441 | #endif | ||
442 | |||
443 | /** | ||
444 | * @brief Enables circular transfers APIs. | ||
445 | * @note Disabling this option saves both code and data space. | ||
446 | */ | ||
447 | #if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__) | ||
448 | #define SPI_USE_CIRCULAR FALSE | ||
449 | #endif | ||
450 | |||
451 | |||
452 | /** | ||
453 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. | ||
454 | * @note Disabling this option saves both code and data space. | ||
455 | */ | ||
456 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
457 | #define SPI_USE_MUTUAL_EXCLUSION TRUE | ||
458 | #endif | ||
459 | |||
460 | /** | ||
461 | * @brief Handling method for SPI CS line. | ||
462 | * @note Disabling this option saves both code and data space. | ||
463 | */ | ||
464 | #if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__) | ||
465 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
466 | #endif | ||
467 | |||
468 | /*===========================================================================*/ | ||
469 | /* UART driver related settings. */ | ||
470 | /*===========================================================================*/ | ||
471 | |||
472 | /** | ||
473 | * @brief Enables synchronous APIs. | ||
474 | * @note Disabling this option saves both code and data space. | ||
475 | */ | ||
476 | #if !defined(UART_USE_WAIT) || defined(__DOXYGEN__) | ||
477 | #define UART_USE_WAIT FALSE | ||
478 | #endif | ||
479 | |||
480 | /** | ||
481 | * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs. | ||
482 | * @note Disabling this option saves both code and data space. | ||
483 | */ | ||
484 | #if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
485 | #define UART_USE_MUTUAL_EXCLUSION FALSE | ||
486 | #endif | ||
487 | |||
488 | /*===========================================================================*/ | ||
489 | /* USB driver related settings. */ | ||
490 | /*===========================================================================*/ | ||
491 | |||
492 | /** | ||
493 | * @brief Enables synchronous APIs. | ||
494 | * @note Disabling this option saves both code and data space. | ||
495 | */ | ||
496 | #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) | ||
497 | #define USB_USE_WAIT TRUE | ||
498 | #endif | ||
499 | |||
500 | /*===========================================================================*/ | ||
501 | /* WSPI driver related settings. */ | ||
502 | /*===========================================================================*/ | ||
503 | |||
504 | /** | ||
505 | * @brief Enables synchronous APIs. | ||
506 | * @note Disabling this option saves both code and data space. | ||
507 | */ | ||
508 | #if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) | ||
509 | #define WSPI_USE_WAIT TRUE | ||
510 | #endif | ||
511 | |||
512 | /** | ||
513 | * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. | ||
514 | * @note Disabling this option saves both code and data space. | ||
515 | */ | ||
516 | #if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
517 | #define WSPI_USE_MUTUAL_EXCLUSION TRUE | ||
518 | #endif | ||
519 | |||
520 | #endif /* HALCONF_H */ | ||
521 | |||
522 | /** @} */ | ||
diff --git a/keyboards/function96/info.json b/keyboards/function96/info.json new file mode 100644 index 000000000..719aa6801 --- /dev/null +++ b/keyboards/function96/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "function96", | ||
3 | "url": "jtmkeebdesign@gmail.com", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 19, | ||
6 | "height": 6, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"Print", "x":13, "y":0}, {"label":"Del", "x":14, "y":0}, {"x":15, "y":0}, {"x":16, "y":0}, {"x":17, "y":0}, {"x":18, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"x":15, "y":1}, {"label":"/", "x":16, "y":1}, {"label":"*", "x":17, "y":1}, {"label":"-", "x":18, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"|", "x":13.5, "y":2, "w":1.5}, {"label":"7", "x":15, "y":2}, {"label":"8", "x":16, "y":2}, {"label":"9", "x":17, "y":2}, {"label":"+", "x":18, "y":2, "h":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"\"", "x":11.75, "y":3}, {"label":"Enter", "x":12.75, "y":3, "w":2.25}, {"label":"4", "x":15, "y":3}, {"label":"5", "x":16, "y":3}, {"label":"6", "x":17, "y":3}, {"label":"Shift", "x":0, "y":4, "w":2.25}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"1", "x":15, "y":4}, {"label":"2", "x":16, "y":4}, {"label":"3", "x":17, "y":4}, {"x":18, "y":4, "h":2}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":2.25}, {"x":6, "y":5, "w":1.25}, {"x":7.25, "y":5, "w":2.75}, {"x":10, "y":5, "w":1.25}, {"x":11.25, "y":5, "w":1.25}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}, {"label":"0", "x":16, "y":5}, {"x":17, "y":5}] | ||
10 | } | ||
11 | } | ||
12 | } | ||
diff --git a/keyboards/function96/keymaps/default/keymap.c b/keyboards/function96/keymaps/default/keymap.c new file mode 100644 index 000000000..fd7990c37 --- /dev/null +++ b/keyboards/function96/keymaps/default/keymap.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /* Copyright 2020 Matt3o | ||
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 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT( | ||
20 | KC_ESC , KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_DEL, KC_MPRV, KC_MNXT, KC_VOLU, KC_VOLD, | ||
21 | KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MPLY, KC_PSLS, KC_PAST, KC_PMNS, | ||
22 | KC_TAB , KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
25 | KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, MO(2), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT( | ||
29 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
30 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
31 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
32 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
33 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ | ||
35 | ), | ||
36 | [2] = LAYOUT( | ||
37 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
38 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
39 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
40 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
41 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, | ||
42 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ | ||
43 | ) | ||
44 | }; | ||
diff --git a/keyboards/function96/keymaps/default/readme.md b/keyboards/function96/keymaps/default/readme.md new file mode 100644 index 000000000..c80df7f7b --- /dev/null +++ b/keyboards/function96/keymaps/default/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # The Default Function96 Layout | ||
2 | |||
3 | There are layer buttons assigned as MO(-). Feel free to modify both layers as you choose. | ||
diff --git a/keyboards/function96/mcuconf.h b/keyboards/function96/mcuconf.h new file mode 100644 index 000000000..7c5cd00c2 --- /dev/null +++ b/keyboards/function96/mcuconf.h | |||
@@ -0,0 +1,168 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | ||
3 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | you may not use this file except in compliance with the License. | ||
5 | You may obtain a copy of the License at | ||
6 | http://www.apache.org/licenses/LICENSE-2.0 | ||
7 | Unless required by applicable law or agreed to in writing, software | ||
8 | distributed under the License is distributed on an "AS IS" BASIS, | ||
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
10 | See the License for the specific language governing permissions and | ||
11 | limitations under the License. | ||
12 | */ | ||
13 | |||
14 | #ifndef _MCUCONF_H_ | ||
15 | #define _MCUCONF_H_ | ||
16 | |||
17 | /* | ||
18 | * STM32F0xx drivers configuration. | ||
19 | * The following settings override the default settings present in | ||
20 | * the various device driver implementation headers. | ||
21 | * Note that the settings for each driver only have effect if the whole | ||
22 | * driver is enabled in halconf.h. | ||
23 | * | ||
24 | * IRQ priorities: | ||
25 | * 3...0 Lowest...Highest. | ||
26 | * | ||
27 | * DMA priorities: | ||
28 | * 0...3 Lowest...Highest. | ||
29 | */ | ||
30 | |||
31 | #define STM32F0xx_MCUCONF | ||
32 | |||
33 | /* | ||
34 | * HAL driver system settings. | ||
35 | */ | ||
36 | #define STM32_NO_INIT FALSE | ||
37 | #define STM32_PVD_ENABLE FALSE | ||
38 | #define STM32_PLS STM32_PLS_LEV0 | ||
39 | #define STM32_HSI_ENABLED TRUE | ||
40 | #define STM32_HSI14_ENABLED TRUE | ||
41 | #define STM32_HSI48_ENABLED FALSE | ||
42 | #define STM32_LSI_ENABLED TRUE | ||
43 | #define STM32_HSE_ENABLED FALSE | ||
44 | #define STM32_LSE_ENABLED FALSE | ||
45 | #define STM32_SW STM32_SW_PLL | ||
46 | #define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2 | ||
47 | #define STM32_PREDIV_VALUE 1 | ||
48 | #define STM32_PLLMUL_VALUE 12 | ||
49 | #define STM32_HPRE STM32_HPRE_DIV1 | ||
50 | #define STM32_PPRE STM32_PPRE_DIV1 | ||
51 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
52 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
53 | #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK | ||
54 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
55 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
56 | #define STM32_USBSW STM32_USBSW_HSI48 | ||
57 | #define STM32_CECSW STM32_CECSW_HSI | ||
58 | #define STM32_I2C1SW STM32_I2C1SW_HSI | ||
59 | #define STM32_USART1SW STM32_USART1SW_PCLK | ||
60 | #define STM32_RTCSEL STM32_RTCSEL_LSI | ||
61 | |||
62 | /* | ||
63 | * ADC driver system settings. | ||
64 | */ | ||
65 | #define STM32_ADC_USE_ADC1 FALSE | ||
66 | #define STM32_ADC_ADC1_DMA_PRIORITY 2 | ||
67 | #define STM32_ADC_IRQ_PRIORITY 2 | ||
68 | #define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2 | ||
69 | |||
70 | /* | ||
71 | * EXT driver system settings. | ||
72 | */ | ||
73 | #define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3 | ||
74 | #define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3 | ||
75 | #define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3 | ||
76 | #define STM32_EXT_EXTI16_IRQ_PRIORITY 3 | ||
77 | #define STM32_EXT_EXTI17_IRQ_PRIORITY 3 | ||
78 | |||
79 | /* | ||
80 | * GPT driver system settings. | ||
81 | */ | ||
82 | #define STM32_GPT_USE_TIM1 FALSE | ||
83 | #define STM32_GPT_USE_TIM2 FALSE | ||
84 | #define STM32_GPT_USE_TIM3 FALSE | ||
85 | #define STM32_GPT_USE_TIM14 FALSE | ||
86 | #define STM32_GPT_TIM1_IRQ_PRIORITY 2 | ||
87 | #define STM32_GPT_TIM2_IRQ_PRIORITY 2 | ||
88 | #define STM32_GPT_TIM3_IRQ_PRIORITY 2 | ||
89 | #define STM32_GPT_TIM14_IRQ_PRIORITY 2 | ||
90 | |||
91 | /* | ||
92 | * I2C driver system settings. | ||
93 | */ | ||
94 | #define STM32_I2C_USE_I2C1 FALSE | ||
95 | #define STM32_I2C_USE_I2C2 FALSE | ||
96 | #define STM32_I2C_BUSY_TIMEOUT 50 | ||
97 | #define STM32_I2C_I2C1_IRQ_PRIORITY 3 | ||
98 | #define STM32_I2C_I2C2_IRQ_PRIORITY 3 | ||
99 | #define STM32_I2C_USE_DMA TRUE | ||
100 | #define STM32_I2C_I2C1_DMA_PRIORITY 1 | ||
101 | #define STM32_I2C_I2C2_DMA_PRIORITY 1 | ||
102 | #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure") | ||
103 | |||
104 | /* | ||
105 | * ICU driver system settings. | ||
106 | */ | ||
107 | #define STM32_ICU_USE_TIM1 FALSE | ||
108 | #define STM32_ICU_USE_TIM2 FALSE | ||
109 | #define STM32_ICU_USE_TIM3 FALSE | ||
110 | #define STM32_ICU_TIM1_IRQ_PRIORITY 3 | ||
111 | #define STM32_ICU_TIM2_IRQ_PRIORITY 3 | ||
112 | #define STM32_ICU_TIM3_IRQ_PRIORITY 3 | ||
113 | |||
114 | /* | ||
115 | * PWM driver system settings. | ||
116 | */ | ||
117 | #define STM32_PWM_USE_ADVANCED FALSE | ||
118 | #define STM32_PWM_USE_TIM1 FALSE | ||
119 | #define STM32_PWM_USE_TIM2 FALSE | ||
120 | #define STM32_PWM_USE_TIM3 TRUE | ||
121 | #define STM32_PWM_TIM1_IRQ_PRIORITY 3 | ||
122 | #define STM32_PWM_TIM2_IRQ_PRIORITY 3 | ||
123 | #define STM32_PWM_TIM3_IRQ_PRIORITY 3 | ||
124 | |||
125 | /* | ||
126 | * SERIAL driver system settings. | ||
127 | */ | ||
128 | #define STM32_SERIAL_USE_USART1 FALSE | ||
129 | #define STM32_SERIAL_USE_USART2 FALSE | ||
130 | #define STM32_SERIAL_USART1_PRIORITY 3 | ||
131 | #define STM32_SERIAL_USART2_PRIORITY 3 | ||
132 | |||
133 | /* | ||
134 | * SPI driver system settings. | ||
135 | */ | ||
136 | #define STM32_SPI_USE_SPI1 FALSE | ||
137 | #define STM32_SPI_USE_SPI2 FALSE | ||
138 | #define STM32_SPI_SPI1_DMA_PRIORITY 1 | ||
139 | #define STM32_SPI_SPI2_DMA_PRIORITY 1 | ||
140 | #define STM32_SPI_SPI1_IRQ_PRIORITY 2 | ||
141 | #define STM32_SPI_SPI2_IRQ_PRIORITY 2 | ||
142 | #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure") | ||
143 | |||
144 | /* | ||
145 | * ST driver system settings. | ||
146 | */ | ||
147 | #define STM32_ST_IRQ_PRIORITY 2 | ||
148 | #define STM32_ST_USE_TIMER 2 | ||
149 | |||
150 | /* | ||
151 | * UART driver system settings. | ||
152 | */ | ||
153 | #define STM32_UART_USE_USART1 FALSE | ||
154 | #define STM32_UART_USE_USART2 FALSE | ||
155 | #define STM32_UART_USART1_IRQ_PRIORITY 3 | ||
156 | #define STM32_UART_USART2_IRQ_PRIORITY 3 | ||
157 | #define STM32_UART_USART1_DMA_PRIORITY 0 | ||
158 | #define STM32_UART_USART2_DMA_PRIORITY 0 | ||
159 | #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") | ||
160 | |||
161 | /* | ||
162 | * USB driver system settings. | ||
163 | */ | ||
164 | #define STM32_USB_USE_USB1 TRUE | ||
165 | #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE | ||
166 | #define STM32_USB_USB1_LP_IRQ_PRIORITY 3 | ||
167 | |||
168 | #endif /* _MCUCONF_H_ */ | ||
diff --git a/keyboards/function96/readme.md b/keyboards/function96/readme.md new file mode 100644 index 000000000..8fde38141 --- /dev/null +++ b/keyboards/function96/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Function96 | ||
2 | |||
3 | This Function96 is a passion project of JTM. It's meant to give the user the maximum usability of the space allocated by the keyboard while also giving the option of using the numpad. | ||
4 | |||
5 | * Keyboard Maintainer: The QMK Community | ||
6 | * Hardware Supported: Function96 | ||
7 | * Hardware Availability: Limited Groupbuy that ended on 8/14/2020, https://www.reddit.com/r/mechmarket/comments/i7wwh4/gb_function96_prototype/ | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make function96:default | ||
12 | |||
13 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/function96/rules.mk b/keyboards/function96/rules.mk new file mode 100644 index 000000000..48ab62762 --- /dev/null +++ b/keyboards/function96/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Build Options | ||
5 | # change yes to no to disable | ||
6 | # | ||
7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
8 | MOUSEKEY_ENABLE = no # Mouse keys | ||
9 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
10 | CONSOLE_ENABLE = no # Console for debug | ||
11 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
12 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
13 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
14 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
15 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
19 | AUDIO_ENABLE = no # Audio output | ||