aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTracy Wadleigh <tracy.wadleigh@gmail.com>2020-05-18 01:52:55 -0700
committerGitHub <noreply@github.com>2020-05-18 01:52:55 -0700
commitfca35a354092d3f706d1d628e695572f9f5579d0 (patch)
tree4f32bf0cafe1b6da539d2e006f9ff5ecf2d3ab2d
parent5d01cc45be72381a60ffdfa6d1b84716d3a18470 (diff)
downloadqmk_firmware-fca35a354092d3f706d1d628e695572f9f5579d0.tar.gz
qmk_firmware-fca35a354092d3f706d1d628e695572f9f5579d0.zip
[Keyboard] handwired/twadlee/tp69 (#9013)
Includes info.json for custom layout and a minimal default keymap.
-rw-r--r--keyboards/handwired/twadlee/tp69/chconf.h700
-rw-r--r--keyboards/handwired/twadlee/tp69/config.h253
-rw-r--r--keyboards/handwired/twadlee/tp69/halconf.h524
-rw-r--r--keyboards/handwired/twadlee/tp69/info.json12
-rw-r--r--keyboards/handwired/twadlee/tp69/keymaps/default/keymap.c28
-rw-r--r--keyboards/handwired/twadlee/tp69/keymaps/default/readme.md1
-rw-r--r--keyboards/handwired/twadlee/tp69/mcuconf.h45
-rw-r--r--keyboards/handwired/twadlee/tp69/readme.md18
-rw-r--r--keyboards/handwired/twadlee/tp69/rules.mk28
-rw-r--r--keyboards/handwired/twadlee/tp69/tp69.c18
-rw-r--r--keyboards/handwired/twadlee/tp69/tp69.h48
-rw-r--r--keyboards/handwired/twadlee/tp69/twadlee-tp69-kle.json139
12 files changed, 1814 insertions, 0 deletions
diff --git a/keyboards/handwired/twadlee/tp69/chconf.h b/keyboards/handwired/twadlee/tp69/chconf.h
new file mode 100644
index 000000000..f1640bb19
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/chconf.h
@@ -0,0 +1,700 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 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/**
18 * @file rt/templates/chconf.h
19 * @brief Configuration file template.
20 * @details A copy of this file must be placed in each project directory, it
21 * contains the application specific kernel settings.
22 *
23 * @addtogroup config
24 * @details Kernel related settings and hooks.
25 * @{
26 */
27
28#ifndef CHCONF_H
29# define CHCONF_H
30
31# define _CHIBIOS_RT_CONF_
32# define _CHIBIOS_RT_CONF_VER_6_0_
33
34/*===========================================================================*/
35/**
36 * @name System timers settings
37 * @{
38 */
39/*===========================================================================*/
40
41/**
42 * @brief System time counter resolution.
43 * @note Allowed values are 16 or 32 bits.
44 */
45# if !defined(CH_CFG_ST_RESOLUTION)
46# define CH_CFG_ST_RESOLUTION 32
47# endif
48
49/**
50 * @brief System tick frequency.
51 * @details Frequency of the system timer that drives the system ticks. This
52 * setting also defines the system tick time unit.
53 */
54# if !defined(CH_CFG_ST_FREQUENCY)
55# define CH_CFG_ST_FREQUENCY 1000
56# endif
57
58/**
59 * @brief Time intervals data size.
60 * @note Allowed values are 16, 32 or 64 bits.
61 */
62# if !defined(CH_CFG_INTERVALS_SIZE)
63# define CH_CFG_INTERVALS_SIZE 32
64# endif
65
66/**
67 * @brief Time types data size.
68 * @note Allowed values are 16 or 32 bits.
69 */
70# if !defined(CH_CFG_TIME_TYPES_SIZE)
71# define CH_CFG_TIME_TYPES_SIZE 32
72# endif
73
74/**
75 * @brief Time delta constant for the tick-less mode.
76 * @note If this value is zero then the system uses the classic
77 * periodic tick. This value represents the minimum number
78 * of ticks that is safe to specify in a timeout directive.
79 * The value one is not valid, timeouts are rounded up to
80 * this value.
81 */
82# if !defined(CH_CFG_ST_TIMEDELTA)
83# define CH_CFG_ST_TIMEDELTA 0
84# endif
85
86/** @} */
87
88/*===========================================================================*/
89/**
90 * @name Kernel parameters and options
91 * @{
92 */
93/*===========================================================================*/
94
95/**
96 * @brief Round robin interval.
97 * @details This constant is the number of system ticks allowed for the
98 * threads before preemption occurs. Setting this value to zero
99 * disables the preemption for threads with equal priority and the
100 * round robin becomes cooperative. Note that higher priority
101 * threads can still preempt, the kernel is always preemptive.
102 * @note Disabling the round robin preemption makes the kernel more compact
103 * and generally faster.
104 * @note The round robin preemption is not supported in tickless mode and
105 * must be set to zero in that case.
106 */
107# if !defined(CH_CFG_TIME_QUANTUM)
108# define CH_CFG_TIME_QUANTUM 20
109# endif
110
111/**
112 * @brief Managed RAM size.
113 * @details Size of the RAM area to be managed by the OS. If set to zero
114 * then the whole available RAM is used. The core memory is made
115 * available to the heap allocator and/or can be used directly through
116 * the simplified core memory allocator.
117 *
118 * @note In order to let the OS manage the whole RAM the linker script must
119 * provide the @p __heap_base__ and @p __heap_end__ symbols.
120 * @note Requires @p CH_CFG_USE_MEMCORE.
121 */
122# if !defined(CH_CFG_MEMCORE_SIZE)
123# define CH_CFG_MEMCORE_SIZE 0
124# endif
125
126/**
127 * @brief Idle thread automatic spawn suppression.
128 * @details When this option is activated the function @p chSysInit()
129 * does not spawn the idle thread. The application @p main()
130 * function becomes the idle thread and must implement an
131 * infinite loop.
132 */
133# if !defined(CH_CFG_NO_IDLE_THREAD)
134# define CH_CFG_NO_IDLE_THREAD FALSE
135# endif
136
137/** @} */
138
139/*===========================================================================*/
140/**
141 * @name Performance options
142 * @{
143 */
144/*===========================================================================*/
145
146/**
147 * @brief OS optimization.
148 * @details If enabled then time efficient rather than space efficient code
149 * is used when two possible implementations exist.
150 *
151 * @note This is not related to the compiler optimization options.
152 * @note The default is @p TRUE.
153 */
154# if !defined(CH_CFG_OPTIMIZE_SPEED)
155# define CH_CFG_OPTIMIZE_SPEED TRUE
156# endif
157
158/** @} */
159
160/*===========================================================================*/
161/**
162 * @name Subsystem options
163 * @{
164 */
165/*===========================================================================*/
166
167/**
168 * @brief Time Measurement APIs.
169 * @details If enabled then the time measurement APIs are included in
170 * the kernel.
171 *
172 * @note The default is @p TRUE.
173 */
174# if !defined(CH_CFG_USE_TM)
175# define CH_CFG_USE_TM FALSE
176# endif
177
178/**
179 * @brief Threads registry APIs.
180 * @details If enabled then the registry APIs are included in the kernel.
181 *
182 * @note The default is @p TRUE.
183 */
184# if !defined(CH_CFG_USE_REGISTRY)
185# define CH_CFG_USE_REGISTRY TRUE
186# endif
187
188/**
189 * @brief Threads synchronization APIs.
190 * @details If enabled then the @p chThdWait() function is included in
191 * the kernel.
192 *
193 * @note The default is @p TRUE.
194 */
195# if !defined(CH_CFG_USE_WAITEXIT)
196# define CH_CFG_USE_WAITEXIT TRUE
197# endif
198
199/**
200 * @brief Semaphores APIs.
201 * @details If enabled then the Semaphores APIs are included in the kernel.
202 *
203 * @note The default is @p TRUE.
204 */
205# if !defined(CH_CFG_USE_SEMAPHORES)
206# define CH_CFG_USE_SEMAPHORES TRUE
207# endif
208
209/**
210 * @brief Semaphores queuing mode.
211 * @details If enabled then the threads are enqueued on semaphores by
212 * priority rather than in FIFO order.
213 *
214 * @note The default is @p FALSE. Enable this if you have special
215 * requirements.
216 * @note Requires @p CH_CFG_USE_SEMAPHORES.
217 */
218# if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
219# define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
220# endif
221
222/**
223 * @brief Mutexes APIs.
224 * @details If enabled then the mutexes APIs are included in the kernel.
225 *
226 * @note The default is @p TRUE.
227 */
228# if !defined(CH_CFG_USE_MUTEXES)
229# define CH_CFG_USE_MUTEXES TRUE
230# endif
231
232/**
233 * @brief Enables recursive behavior on mutexes.
234 * @note Recursive mutexes are heavier and have an increased
235 * memory footprint.
236 *
237 * @note The default is @p FALSE.
238 * @note Requires @p CH_CFG_USE_MUTEXES.
239 */
240# if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
241# define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
242# endif
243
244/**
245 * @brief Conditional Variables APIs.
246 * @details If enabled then the conditional variables APIs are included
247 * in the kernel.
248 *
249 * @note The default is @p TRUE.
250 * @note Requires @p CH_CFG_USE_MUTEXES.
251 */
252# if !defined(CH_CFG_USE_CONDVARS)
253# define CH_CFG_USE_CONDVARS TRUE
254# endif
255
256/**
257 * @brief Conditional Variables APIs with timeout.
258 * @details If enabled then the conditional variables APIs with timeout
259 * specification are included in the kernel.
260 *
261 * @note The default is @p TRUE.
262 * @note Requires @p CH_CFG_USE_CONDVARS.
263 */
264# if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
265# define CH_CFG_USE_CONDVARS_TIMEOUT TRUE
266# endif
267
268/**
269 * @brief Events Flags APIs.
270 * @details If enabled then the event flags APIs are included in the kernel.
271 *
272 * @note The default is @p TRUE.
273 */
274# if !defined(CH_CFG_USE_EVENTS)
275# define CH_CFG_USE_EVENTS TRUE
276# endif
277
278/**
279 * @brief Events Flags APIs with timeout.
280 * @details If enabled then the events APIs with timeout specification
281 * are included in the kernel.
282 *
283 * @note The default is @p TRUE.
284 * @note Requires @p CH_CFG_USE_EVENTS.
285 */
286# if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
287# define CH_CFG_USE_EVENTS_TIMEOUT TRUE
288# endif
289
290/**
291 * @brief Synchronous Messages APIs.
292 * @details If enabled then the synchronous messages APIs are included
293 * in the kernel.
294 *
295 * @note The default is @p TRUE.
296 */
297# if !defined(CH_CFG_USE_MESSAGES)
298# define CH_CFG_USE_MESSAGES TRUE
299# endif
300
301/**
302 * @brief Synchronous Messages queuing mode.
303 * @details If enabled then messages are served by priority rather than in
304 * FIFO order.
305 *
306 * @note The default is @p FALSE. Enable this if you have special
307 * requirements.
308 * @note Requires @p CH_CFG_USE_MESSAGES.
309 */
310# if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
311# define CH_CFG_USE_MESSAGES_PRIORITY FALSE
312# endif
313
314/**
315 * @brief Mailboxes APIs.
316 * @details If enabled then the asynchronous messages (mailboxes) APIs are
317 * included in the kernel.
318 *
319 * @note The default is @p TRUE.
320 * @note Requires @p CH_CFG_USE_SEMAPHORES.
321 */
322# if !defined(CH_CFG_USE_MAILBOXES)
323# define CH_CFG_USE_MAILBOXES TRUE
324# endif
325
326/**
327 * @brief Core Memory Manager APIs.
328 * @details If enabled then the core memory manager APIs are included
329 * in the kernel.
330 *
331 * @note The default is @p TRUE.
332 */
333# if !defined(CH_CFG_USE_MEMCORE)
334# define CH_CFG_USE_MEMCORE TRUE
335# endif
336
337/**
338 * @brief Heap Allocator APIs.
339 * @details If enabled then the memory heap allocator APIs are included
340 * in the kernel.
341 *
342 * @note The default is @p TRUE.
343 * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
344 * @p CH_CFG_USE_SEMAPHORES.
345 * @note Mutexes are recommended.
346 */
347# if !defined(CH_CFG_USE_HEAP)
348# define CH_CFG_USE_HEAP TRUE
349# endif
350
351/**
352 * @brief Memory Pools Allocator APIs.
353 * @details If enabled then the memory pools allocator APIs are included
354 * in the kernel.
355 *
356 * @note The default is @p TRUE.
357 */
358# if !defined(CH_CFG_USE_MEMPOOLS)
359# define CH_CFG_USE_MEMPOOLS TRUE
360# endif
361
362/**
363 * @brief Objects FIFOs APIs.
364 * @details If enabled then the objects FIFOs APIs are included
365 * in the kernel.
366 *
367 * @note The default is @p TRUE.
368 */
369# if !defined(CH_CFG_USE_OBJ_FIFOS)
370# define CH_CFG_USE_OBJ_FIFOS TRUE
371# endif
372
373/**
374 * @brief Pipes APIs.
375 * @details If enabled then the pipes APIs are included
376 * in the kernel.
377 *
378 * @note The default is @p TRUE.
379 */
380# if !defined(CH_CFG_USE_PIPES)
381# define CH_CFG_USE_PIPES TRUE
382# endif
383
384/**
385 * @brief Dynamic Threads APIs.
386 * @details If enabled then the dynamic threads creation APIs are included
387 * in the kernel.
388 *
389 * @note The default is @p TRUE.
390 * @note Requires @p CH_CFG_USE_WAITEXIT.
391 * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
392 */
393# if !defined(CH_CFG_USE_DYNAMIC)
394# define CH_CFG_USE_DYNAMIC TRUE
395# endif
396
397/** @} */
398
399/*===========================================================================*/
400/**
401 * @name Objects factory options
402 * @{
403 */
404/*===========================================================================*/
405
406/**
407 * @brief Objects Factory APIs.
408 * @details If enabled then the objects factory APIs are included in the
409 * kernel.
410 *
411 * @note The default is @p FALSE.
412 */
413# if !defined(CH_CFG_USE_FACTORY)
414# define CH_CFG_USE_FACTORY TRUE
415# endif
416
417/**
418 * @brief Maximum length for object names.
419 * @details If the specified length is zero then the name is stored by
420 * pointer but this could have unintended side effects.
421 */
422# if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
423# define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
424# endif
425
426/**
427 * @brief Enables the registry of generic objects.
428 */
429# if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
430# define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE
431# endif
432
433/**
434 * @brief Enables factory for generic buffers.
435 */
436# if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
437# define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE
438# endif
439
440/**
441 * @brief Enables factory for semaphores.
442 */
443# if !defined(CH_CFG_FACTORY_SEMAPHORES)
444# define CH_CFG_FACTORY_SEMAPHORES TRUE
445# endif
446
447/**
448 * @brief Enables factory for mailboxes.
449 */
450# if !defined(CH_CFG_FACTORY_MAILBOXES)
451# define CH_CFG_FACTORY_MAILBOXES TRUE
452# endif
453
454/**
455 * @brief Enables factory for objects FIFOs.
456 */
457# if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
458# define CH_CFG_FACTORY_OBJ_FIFOS TRUE
459# endif
460
461/**
462 * @brief Enables factory for Pipes.
463 */
464# if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
465# define CH_CFG_FACTORY_PIPES TRUE
466# endif
467
468/** @} */
469
470/*===========================================================================*/
471/**
472 * @name Debug options
473 * @{
474 */
475/*===========================================================================*/
476
477/**
478 * @brief Debug option, kernel statistics.
479 *
480 * @note The default is @p FALSE.
481 */
482# if !defined(CH_DBG_STATISTICS)
483# define CH_DBG_STATISTICS FALSE
484# endif
485
486/**
487 * @brief Debug option, system state check.
488 * @details If enabled the correct call protocol for system APIs is checked
489 * at runtime.
490 *
491 * @note The default is @p FALSE.
492 */
493# if !defined(CH_DBG_SYSTEM_STATE_CHECK)
494# define CH_DBG_SYSTEM_STATE_CHECK TRUE
495# endif
496
497/**
498 * @brief Debug option, parameters checks.
499 * @details If enabled then the checks on the API functions input
500 * parameters are activated.
501 *
502 * @note The default is @p FALSE.
503 */
504# if !defined(CH_DBG_ENABLE_CHECKS)
505# define CH_DBG_ENABLE_CHECKS TRUE
506# endif
507
508/**
509 * @brief Debug option, consistency checks.
510 * @details If enabled then all the assertions in the kernel code are
511 * activated. This includes consistency checks inside the kernel,
512 * runtime anomalies and port-defined checks.
513 *
514 * @note The default is @p FALSE.
515 */
516# if !defined(CH_DBG_ENABLE_ASSERTS)
517# define CH_DBG_ENABLE_ASSERTS TRUE
518# endif
519
520/**
521 * @brief Debug option, trace buffer.
522 * @details If enabled then the trace buffer is activated.
523 *
524 * @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
525 */
526# if !defined(CH_DBG_TRACE_MASK)
527# define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
528# endif
529
530/**
531 * @brief Trace buffer entries.
532 * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is
533 * different from @p CH_DBG_TRACE_MASK_DISABLED.
534 */
535# if !defined(CH_DBG_TRACE_BUFFER_SIZE)
536# define CH_DBG_TRACE_BUFFER_SIZE 128
537# endif
538
539/**
540 * @brief Debug option, stack checks.
541 * @details If enabled then a runtime stack check is performed.
542 *
543 * @note The default is @p FALSE.
544 * @note The stack check is performed in a architecture/port dependent way.
545 * It may not be implemented or some ports.
546 * @note The default failure mode is to halt the system with the global
547 * @p panic_msg variable set to @p NULL.
548 */
549# if !defined(CH_DBG_ENABLE_STACK_CHECK)
550# define CH_DBG_ENABLE_STACK_CHECK TRUE
551# endif
552
553/**
554 * @brief Debug option, stacks initialization.
555 * @details If enabled then the threads working area is filled with a byte
556 * value when a thread is created. This can be useful for the
557 * runtime measurement of the used stack.
558 *
559 * @note The default is @p FALSE.
560 */
561# if !defined(CH_DBG_FILL_THREADS)
562# define CH_DBG_FILL_THREADS TRUE
563# endif
564
565/**
566 * @brief Debug option, threads profiling.
567 * @details If enabled then a field is added to the @p thread_t structure that
568 * counts the system ticks occurred while executing the thread.
569 *
570 * @note The default is @p FALSE.
571 * @note This debug option is not currently compatible with the
572 * tickless mode.
573 */
574# if !defined(CH_DBG_THREADS_PROFILING)
575# define CH_DBG_THREADS_PROFILING FALSE
576# endif
577
578/** @} */
579
580/*===========================================================================*/
581/**
582 * @name Kernel hooks
583 * @{
584 */
585/*===========================================================================*/
586
587/**
588 * @brief System structure extension.
589 * @details User fields added to the end of the @p ch_system_t structure.
590 */
591# define CH_CFG_SYSTEM_EXTRA_FIELDS /* Add threads custom fields here.*/
592
593/**
594 * @brief System initialization hook.
595 * @details User initialization code added to the @p chSysInit() function
596 * just before interrupts are enabled globally.
597 */
598# define CH_CFG_SYSTEM_INIT_HOOK() \
599 { /* Add threads initialization code here.*/ }
600
601/**
602 * @brief Threads descriptor structure extension.
603 * @details User fields added to the end of the @p thread_t structure.
604 */
605# define CH_CFG_THREAD_EXTRA_FIELDS /* 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 * @brief Threads finalization hook.
619 * @details User finalization code added to the @p chThdExit() API.
620 */
621# define CH_CFG_THREAD_EXIT_HOOK(tp) \
622 { /* Add threads finalization code here.*/ }
623
624/**
625 * @brief Context switch hook.
626 * @details This hook is invoked just before switching between threads.
627 */
628# define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) \
629 { /* Context switch code here.*/ }
630
631/**
632 * @brief ISR enter hook.
633 */
634# define CH_CFG_IRQ_PROLOGUE_HOOK() \
635 { /* IRQ prologue code here.*/ }
636
637/**
638 * @brief ISR exit hook.
639 */
640# define CH_CFG_IRQ_EPILOGUE_HOOK() \
641 { /* IRQ epilogue code here.*/ }
642
643/**
644 * @brief Idle thread enter hook.
645 * @note This hook is invoked within a critical zone, no OS functions
646 * should be invoked from here.
647 * @note This macro can be used to activate a power saving mode.
648 */
649# define CH_CFG_IDLE_ENTER_HOOK() \
650 { /* Idle-enter code here.*/ }
651
652/**
653 * @brief Idle thread leave hook.
654 * @note This hook is invoked within a critical zone, no OS functions
655 * should be invoked from here.
656 * @note This macro can be used to deactivate a power saving mode.
657 */
658# define CH_CFG_IDLE_LEAVE_HOOK() \
659 { /* Idle-leave code here.*/ }
660
661/**
662 * @brief Idle Loop hook.
663 * @details This hook is continuously invoked by the idle thread loop.
664 */
665# define CH_CFG_IDLE_LOOP_HOOK() \
666 { /* Idle loop code here.*/ }
667
668/**
669 * @brief System tick event hook.
670 * @details This hook is invoked in the system tick handler immediately
671 * after processing the virtual timers queue.
672 */
673# define CH_CFG_SYSTEM_TICK_HOOK() \
674 { /* System tick event code here.*/ }
675
676/**
677 * @brief System halt hook.
678 * @details This hook is invoked in case to a system halting error before
679 * the system is halted.
680 */
681# define CH_CFG_SYSTEM_HALT_HOOK(reason) \
682 { /* System halt code here.*/ }
683
684/**
685 * @brief Trace hook.
686 * @details This hook is invoked each time a new record is written in the
687 * trace buffer.
688 */
689# define CH_CFG_TRACE_HOOK(tep) \
690 { /* Trace code here.*/ }
691
692/** @} */
693
694/*===========================================================================*/
695/* Port-specific settings (override port settings defaulted in chcore.h). */
696/*===========================================================================*/
697
698#endif /* CHCONF_H */
699
700/** @} */
diff --git a/keyboards/handwired/twadlee/tp69/config.h b/keyboards/handwired/twadlee/tp69/config.h
new file mode 100644
index 000000000..4da7d2560
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/config.h
@@ -0,0 +1,253 @@
1/*
2Copyright 2020 Tracy Wadleigh
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#pragma once
19
20//#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xBEEF
24#define PRODUCT_ID 0xCACA
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Tracy Wadleigh
27#define PRODUCT tp69
28#define DESCRIPTION A custom 69-key 65% keyboard with a trackpoint under keycap
29
30/* key matrix size */
31#define MATRIX_ROWS 10
32#define MATRIX_COLS 8
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/* 19 17 16 15 14 2 8 6 7 9 */
44#define MATRIX_ROW_PINS { B2, B1, B0, C0, D1, D0, D3, D4, D2, C3 }
45/* 20 21 18 0 1 3 4 5 */
46#define MATRIX_COL_PINS { D5, D6, A4, B16, B17, A1, A2, D7 }
47#define UNUSED_PINS
48
49/* for trackpoint: C1 (22) C2 (23) */
50
51/* COL2ROW, ROW2COL*/
52#define DIODE_DIRECTION COL2ROW
53
54/*
55 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
56 */
57#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
58
59// #define BACKLIGHT_PIN B7
60// #define BACKLIGHT_BREATHING
61// #define BACKLIGHT_LEVELS 3
62
63// #define RGB_DI_PIN E2
64// #ifdef RGB_DI_PIN
65// #define RGBLED_NUM 16
66// #define RGBLIGHT_HUE_STEP 8
67// #define RGBLIGHT_SAT_STEP 8
68// #define RGBLIGHT_VAL_STEP 8
69// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
70// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
71// /*== all animations enable ==*/
72// #define RGBLIGHT_ANIMATIONS
73// /*== or choose animations ==*/
74// #define RGBLIGHT_EFFECT_BREATHING
75// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
76// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
77// #define RGBLIGHT_EFFECT_SNAKE
78// #define RGBLIGHT_EFFECT_KNIGHT
79// #define RGBLIGHT_EFFECT_CHRISTMAS
80// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
81// #define RGBLIGHT_EFFECT_RGB_TEST
82// #define RGBLIGHT_EFFECT_ALTERNATING
83// /*== customize breathing effect ==*/
84// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
85// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
86// /*==== use exp() and sin() ====*/
87// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
88// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
89// #endif
90
91/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
92#define DEBOUNCE 5
93
94/* define if matrix has ghost (lacks anti-ghosting diodes) */
95//#define MATRIX_HAS_GHOST
96
97/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
98#define LOCKING_SUPPORT_ENABLE
99/* Locking resynchronize hack */
100#define LOCKING_RESYNC_ENABLE
101
102/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
103 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
104 */
105// #define GRAVE_ESC_CTRL_OVERRIDE
106
107/*
108 * Force NKRO
109 *
110 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
111 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
112 * makefile for this to work.)
113 *
114 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
115 * until the next keyboard reset.
116 *
117 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
118 * fully operational during normal computer usage.
119 *
120 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
121 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
122 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
123 * power-up.
124 *
125 */
126//#define FORCE_NKRO
127
128/*
129 * Magic Key Options
130 *
131 * Magic keys are hotkey commands that allow control over firmware functions of
132 * the keyboard. They are best used in combination with the HID Listen program,
133 * found here: https://www.pjrc.com/teensy/hid_listen.html
134 *
135 * The options below allow the magic key functionality to be changed. This is
136 * useful if your keyboard/keypad is missing keys and you want magic key support.
137 *
138 */
139
140/* key combination for magic key command */
141/* defined by default; to change, uncomment and set to the combination you want */
142// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
143
144/* control how magic key switches layers */
145//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
146//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
147//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
148
149/* override magic key keymap */
150//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
151//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
152//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
153//#define MAGIC_KEY_HELP H
154//#define MAGIC_KEY_HELP_ALT SLASH
155//#define MAGIC_KEY_DEBUG D
156//#define MAGIC_KEY_DEBUG_MATRIX X
157//#define MAGIC_KEY_DEBUG_KBD K
158//#define MAGIC_KEY_DEBUG_MOUSE M
159//#define MAGIC_KEY_VERSION V
160//#define MAGIC_KEY_STATUS S
161//#define MAGIC_KEY_CONSOLE C
162//#define MAGIC_KEY_LAYER0 0
163//#define MAGIC_KEY_LAYER0_ALT GRAVE
164//#define MAGIC_KEY_LAYER1 1
165//#define MAGIC_KEY_LAYER2 2
166//#define MAGIC_KEY_LAYER3 3
167//#define MAGIC_KEY_LAYER4 4
168//#define MAGIC_KEY_LAYER5 5
169//#define MAGIC_KEY_LAYER6 6
170//#define MAGIC_KEY_LAYER7 7
171//#define MAGIC_KEY_LAYER8 8
172//#define MAGIC_KEY_LAYER9 9
173//#define MAGIC_KEY_BOOTLOADER B
174//#define MAGIC_KEY_BOOTLOADER_ALT ESC
175//#define MAGIC_KEY_LOCK CAPS
176//#define MAGIC_KEY_EEPROM E
177//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
178//#define MAGIC_KEY_NKRO N
179//#define MAGIC_KEY_SLEEP_LED Z
180
181/*
182 * Feature disable options
183 * These options are also useful to firmware size reduction.
184 */
185
186/* disable debug print */
187//#define NO_DEBUG
188
189/* disable print */
190//#define NO_PRINT
191
192/* disable action features */
193//#define NO_ACTION_LAYER
194//#define NO_ACTION_TAPPING
195//#define NO_ACTION_ONESHOT
196
197/* disable these deprecated features by default */
198#define NO_ACTION_MACRO
199#define NO_ACTION_FUNCTION
200/*
201 * MIDI options
202 */
203
204/* Prevent use of disabled MIDI features in the keymap */
205//#define MIDI_ENABLE_STRICT 1
206
207/* enable basic MIDI features:
208 - MIDI notes can be sent when in Music mode is on
209*/
210//#define MIDI_BASIC
211
212/* enable advanced MIDI features:
213 - MIDI notes can be added to the keymap
214 - Octave shift and transpose
215 - Virtual sustain, portamento, and modulation wheel
216 - etc.
217*/
218//#define MIDI_ADVANCED
219
220/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
221//#define MIDI_TONE_KEYCODE_OCTAVES 1
222
223/*
224 * HD44780 LCD Display Configuration
225 */
226/*
227#define LCD_LINES 2 //< number of visible lines of the display
228#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
229
230#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
231
232#if LCD_IO_MODE
233#define LCD_PORT PORTB //< port for the LCD lines
234#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
235#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
236#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
237#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
238#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
239#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
240#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
241#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
242#define LCD_RS_PORT LCD_PORT //< port for RS line
243#define LCD_RS_PIN 3 //< pin for RS line
244#define LCD_RW_PORT LCD_PORT //< port for RW line
245#define LCD_RW_PIN 2 //< pin for RW line
246#define LCD_E_PORT LCD_PORT //< port for Enable line
247#define LCD_E_PIN 1 //< pin for Enable line
248#endif
249*/
250
251/* Bootmagic Lite key configuration */
252// #define BOOTMAGIC_LITE_ROW 0
253// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/handwired/twadlee/tp69/halconf.h b/keyboards/handwired/twadlee/tp69/halconf.h
new file mode 100644
index 000000000..908c75542
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/halconf.h
@@ -0,0 +1,524 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 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/**
18 * @file templates/halconf.h
19 * @brief HAL configuration header.
20 * @details HAL configuration file, this file allows to enable or disable the
21 * various device drivers from your application. You may also use
22 * this file in order to override the device drivers default settings.
23 *
24 * @addtogroup HAL_CONF
25 * @{
26 */
27
28#ifndef HALCONF_H
29# define HALCONF_H
30
31# define _CHIBIOS_HAL_CONF_
32# define _CHIBIOS_HAL_CONF_VER_7_0_
33
34# include "mcuconf.h"
35
36/**
37 * @brief Enables the PAL subsystem.
38 */
39# if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
40# define HAL_USE_PAL TRUE
41# endif
42
43/**
44 * @brief Enables the ADC subsystem.
45 */
46# if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
47# define HAL_USE_ADC FALSE
48# endif
49
50/**
51 * @brief Enables the CAN subsystem.
52 */
53# if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
54# define HAL_USE_CAN FALSE
55# endif
56
57/**
58 * @brief Enables the cryptographic subsystem.
59 */
60# if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
61# define HAL_USE_CRY FALSE
62# endif
63
64/**
65 * @brief Enables the DAC subsystem.
66 */
67# if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
68# define HAL_USE_DAC FALSE
69# endif
70
71/**
72 * @brief Enables the GPT subsystem.
73 */
74# if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
75# define HAL_USE_GPT FALSE
76# endif
77
78/**
79 * @brief Enables the I2C subsystem.
80 */
81# if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
82# define HAL_USE_I2C FALSE
83# endif
84
85/**
86 * @brief Enables the I2S subsystem.
87 */
88# if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
89# define HAL_USE_I2S FALSE
90# endif
91
92/**
93 * @brief Enables the ICU subsystem.
94 */
95# if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
96# define HAL_USE_ICU FALSE
97# endif
98
99/**
100 * @brief Enables the MAC subsystem.
101 */
102# if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
103# define HAL_USE_MAC FALSE
104# endif
105
106/**
107 * @brief Enables the MMC_SPI subsystem.
108 */
109# if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
110# define HAL_USE_MMC_SPI FALSE
111# endif
112
113/**
114 * @brief Enables the PWM subsystem.
115 */
116# if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
117# define HAL_USE_PWM FALSE
118# endif
119
120/**
121 * @brief Enables the RTC subsystem.
122 */
123# if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
124# define HAL_USE_RTC FALSE
125# endif
126
127/**
128 * @brief Enables the SDC subsystem.
129 */
130# if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
131# define HAL_USE_SDC FALSE
132# endif
133
134/**
135 * @brief Enables the SERIAL subsystem.
136 */
137# if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
138# define HAL_USE_SERIAL FALSE
139# endif
140
141/**
142 * @brief Enables the SERIAL over USB subsystem.
143 */
144# if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
145# define HAL_USE_SERIAL_USB FALSE
146# endif
147
148/**
149 * @brief Enables the SIO subsystem.
150 */
151# if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
152# define HAL_USE_SIO FALSE
153# endif
154
155/**
156 * @brief Enables the SPI subsystem.
157 */
158# if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
159# define HAL_USE_SPI FALSE
160# endif
161
162/**
163 * @brief Enables the TRNG subsystem.
164 */
165# if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
166# define HAL_USE_TRNG FALSE
167# endif
168
169/**
170 * @brief Enables the UART subsystem.
171 */
172# if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
173# define HAL_USE_UART FALSE
174# endif
175
176/**
177 * @brief Enables the USB subsystem.
178 */
179# if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
180# define HAL_USE_USB TRUE
181# endif
182
183/**
184 * @brief Enables the WDG subsystem.
185 */
186# if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
187# define HAL_USE_WDG FALSE
188# endif
189
190/**
191 * @brief Enables the WSPI subsystem.
192 */
193# if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
194# define HAL_USE_WSPI FALSE
195# endif
196
197/*===========================================================================*/
198/* PAL driver related settings. */
199/*===========================================================================*/
200
201/**
202 * @brief Enables synchronous APIs.
203 * @note Disabling this option saves both code and data space.
204 */
205# if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
206# define PAL_USE_CALLBACKS FALSE
207# endif
208
209/**
210 * @brief Enables synchronous APIs.
211 * @note Disabling this option saves both code and data space.
212 */
213# if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
214# define PAL_USE_WAIT FALSE
215# endif
216
217/*===========================================================================*/
218/* ADC driver related settings. */
219/*===========================================================================*/
220
221/**
222 * @brief Enables synchronous APIs.
223 * @note Disabling this option saves both code and data space.
224 */
225# if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
226# define ADC_USE_WAIT TRUE
227# endif
228
229/**
230 * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
231 * @note Disabling this option saves both code and data space.
232 */
233# if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
234# define ADC_USE_MUTUAL_EXCLUSION TRUE
235# endif
236
237/*===========================================================================*/
238/* CAN driver related settings. */
239/*===========================================================================*/
240
241/**
242 * @brief Sleep mode related APIs inclusion switch.
243 */
244# if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
245# define CAN_USE_SLEEP_MODE TRUE
246# endif
247
248/**
249 * @brief Enforces the driver to use direct callbacks rather than OSAL events.
250 */
251# if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
252# define CAN_ENFORCE_USE_CALLBACKS FALSE
253# endif
254
255/*===========================================================================*/
256/* CRY driver related settings. */
257/*===========================================================================*/
258
259/**
260 * @brief Enables the SW fall-back of the cryptographic driver.
261 * @details When enabled, this option, activates a fall-back software
262 * implementation for algorithms not supported by the underlying
263 * hardware.
264 * @note Fall-back implementations may not be present for all algorithms.
265 */
266# if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
267# define HAL_CRY_USE_FALLBACK FALSE
268# endif
269
270/**
271 * @brief Makes the driver forcibly use the fall-back implementations.
272 */
273# if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
274# define HAL_CRY_ENFORCE_FALLBACK FALSE
275# endif
276
277/*===========================================================================*/
278/* DAC driver related settings. */
279/*===========================================================================*/
280
281/**
282 * @brief Enables synchronous APIs.
283 * @note Disabling this option saves both code and data space.
284 */
285# if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
286# define DAC_USE_WAIT TRUE
287# endif
288
289/**
290 * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
291 * @note Disabling this option saves both code and data space.
292 */
293# if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
294# define DAC_USE_MUTUAL_EXCLUSION TRUE
295# endif
296
297/*===========================================================================*/
298/* I2C driver related settings. */
299/*===========================================================================*/
300
301/**
302 * @brief Enables the mutual exclusion APIs on the I2C bus.
303 */
304# if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
305# define I2C_USE_MUTUAL_EXCLUSION TRUE
306# endif
307
308/*===========================================================================*/
309/* MAC driver related settings. */
310/*===========================================================================*/
311
312/**
313 * @brief Enables the zero-copy API.
314 */
315# if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
316# define MAC_USE_ZERO_COPY FALSE
317# endif
318
319/**
320 * @brief Enables an event sources for incoming packets.
321 */
322# if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
323# define MAC_USE_EVENTS TRUE
324# endif
325
326/*===========================================================================*/
327/* MMC_SPI driver related settings. */
328/*===========================================================================*/
329
330/**
331 * @brief Delays insertions.
332 * @details If enabled this options inserts delays into the MMC waiting
333 * routines releasing some extra CPU time for the threads with
334 * lower priority, this may slow down the driver a bit however.
335 * This option is recommended also if the SPI driver does not
336 * use a DMA channel and heavily loads the CPU.
337 */
338# if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
339# define MMC_NICE_WAITING TRUE
340# endif
341
342/*===========================================================================*/
343/* SDC driver related settings. */
344/*===========================================================================*/
345
346/**
347 * @brief Number of initialization attempts before rejecting the card.
348 * @note Attempts are performed at 10mS intervals.
349 */
350# if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
351# define SDC_INIT_RETRY 100
352# endif
353
354/**
355 * @brief Include support for MMC cards.
356 * @note MMC support is not yet implemented so this option must be kept
357 * at @p FALSE.
358 */
359# if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
360# define SDC_MMC_SUPPORT FALSE
361# endif
362
363/**
364 * @brief Delays insertions.
365 * @details If enabled this options inserts delays into the MMC waiting
366 * routines releasing some extra CPU time for the threads with
367 * lower priority, this may slow down the driver a bit however.
368 */
369# if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
370# define SDC_NICE_WAITING TRUE
371# endif
372
373/**
374 * @brief OCR initialization constant for V20 cards.
375 */
376# if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
377# define SDC_INIT_OCR_V20 0x50FF8000U
378# endif
379
380/**
381 * @brief OCR initialization constant for non-V20 cards.
382 */
383# if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
384# define SDC_INIT_OCR 0x80100000U
385# endif
386
387/*===========================================================================*/
388/* SERIAL driver related settings. */
389/*===========================================================================*/
390
391/**
392 * @brief Default bit rate.
393 * @details Configuration parameter, this is the baud rate selected for the
394 * default configuration.
395 */
396# if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
397# define SERIAL_DEFAULT_BITRATE 38400
398# endif
399
400/**
401 * @brief Serial buffers size.
402 * @details Configuration parameter, you can change the depth of the queue
403 * buffers depending on the requirements of your application.
404 * @note The default is 16 bytes for both the transmission and receive
405 * buffers.
406 */
407# if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
408# define SERIAL_BUFFERS_SIZE 16
409# endif
410
411/*===========================================================================*/
412/* SERIAL_USB driver related setting. */
413/*===========================================================================*/
414
415/**
416 * @brief Serial over USB buffers size.
417 * @details Configuration parameter, the buffer size must be a multiple of
418 * the USB data endpoint maximum packet size.
419 * @note The default is 256 bytes for both the transmission and receive
420 * buffers.
421 */
422# if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
423# define SERIAL_USB_BUFFERS_SIZE 1
424# endif
425
426/**
427 * @brief Serial over USB number of buffers.
428 * @note The default is 2 buffers.
429 */
430# if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
431# define SERIAL_USB_BUFFERS_NUMBER 2
432# endif
433
434/*===========================================================================*/
435/* SPI driver related settings. */
436/*===========================================================================*/
437
438/**
439 * @brief Enables synchronous APIs.
440 * @note Disabling this option saves both code and data space.
441 */
442# if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
443# define SPI_USE_WAIT TRUE
444# endif
445
446/**
447 * @brief Enables circular transfers APIs.
448 * @note Disabling this option saves both code and data space.
449 */
450# if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
451# define SPI_USE_CIRCULAR FALSE
452# endif
453
454/**
455 * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
456 * @note Disabling this option saves both code and data space.
457 */
458# if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
459# define SPI_USE_MUTUAL_EXCLUSION TRUE
460# endif
461
462/**
463 * @brief Handling method for SPI CS line.
464 * @note Disabling this option saves both code and data space.
465 */
466# if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
467# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
468# endif
469
470/*===========================================================================*/
471/* UART driver related settings. */
472/*===========================================================================*/
473
474/**
475 * @brief Enables synchronous APIs.
476 * @note Disabling this option saves both code and data space.
477 */
478# if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
479# define UART_USE_WAIT FALSE
480# endif
481
482/**
483 * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
484 * @note Disabling this option saves both code and data space.
485 */
486# if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
487# define UART_USE_MUTUAL_EXCLUSION FALSE
488# endif
489
490/*===========================================================================*/
491/* USB driver related settings. */
492/*===========================================================================*/
493
494/**
495 * @brief Enables synchronous APIs.
496 * @note Disabling this option saves both code and data space.
497 */
498# if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
499# define USB_USE_WAIT TRUE
500# endif
501
502/*===========================================================================*/
503/* WSPI driver related settings. */
504/*===========================================================================*/
505
506/**
507 * @brief Enables synchronous APIs.
508 * @note Disabling this option saves both code and data space.
509 */
510# if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
511# define WSPI_USE_WAIT TRUE
512# endif
513
514/**
515 * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
516 * @note Disabling this option saves both code and data space.
517 */
518# if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
519# define WSPI_USE_MUTUAL_EXCLUSION TRUE
520# endif
521
522#endif /* HALCONF_H */
523
524/** @} */
diff --git a/keyboards/handwired/twadlee/tp69/info.json b/keyboards/handwired/twadlee/tp69/info.json
new file mode 100644
index 000000000..89eecb7d1
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "Twadlee TP69",
3 "url": "https://github.com/twadleigh/qmk_firmware",
4 "maintainer": "qmk",
5 "width": 16,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1}, {"x":14.5, "y":1, "w":1.5}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2}, {"x":13.75, "y":2, "w":2.25}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3}, {"x":13.25, "y":3, "w":2.75}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":2}, {"x":5.75, "y":4}, {"x":6.75, "y":4}, {"x":7.75, "y":4}, {"x":8.75, "y":4, "w":2.25}, {"x":11, "y":4, "w":1.25}, {"x":12.25, "y":4, "w":1.25}, {"x":13.5, "y":4, "w":1.25}, {"x":14.75, "y":4, "w":1.25}]
10 }
11 }
12}
diff --git a/keyboards/handwired/twadlee/tp69/keymaps/default/keymap.c b/keyboards/handwired/twadlee/tp69/keymaps/default/keymap.c
new file mode 100644
index 000000000..f250c3fc6
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
1/* Copyright 2020 Tracy Wadleigh
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// Defines names for use in layer keycodes and the keymap
19enum layer_names { _BASE };
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [_BASE] = LAYOUT(
22 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_LGUI, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_PGUP, KC_PGDN,
23 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LALT, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
24 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
25 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCTL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_BSPC, KC_MS_BTN1, KC_MS_BTN3, KC_MS_BTN2, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
27 )
28};
diff --git a/keyboards/handwired/twadlee/tp69/keymaps/default/readme.md b/keyboards/handwired/twadlee/tp69/keymaps/default/readme.md
new file mode 100644
index 000000000..453673a6e
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for tp69
diff --git a/keyboards/handwired/twadlee/tp69/mcuconf.h b/keyboards/handwired/twadlee/tp69/mcuconf.h
new file mode 100644
index 000000000..dc4d00bf1
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/mcuconf.h
@@ -0,0 +1,45 @@
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 KL2x_MCUCONF
21
22/*
23 * HAL driver system settings.
24 */
25/* PEE mode - 48MHz system clock driven by (16 MHz) external crystal. */
26#define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE
27#define KINETIS_PLLCLK_FREQUENCY 96000000UL
28#define KINETIS_SYSCLK_FREQUENCY 48000000UL
29
30/*
31 * SERIAL driver system settings.
32 */
33#define KINETIS_SERIAL_USE_UART0 TRUE
34
35/*
36 * USB driver settings
37 */
38#define KINETIS_USB_USE_USB0 TRUE
39
40/* Need to redefine this, since the default (configured for K20x) might not apply
41 * 2 for Teensy LC
42 * 5 for Teensy 3.x */
43#define KINETIS_USB_USB0_IRQ_PRIORITY 2
44
45#endif /* _MCUCONF_H_ */
diff --git a/keyboards/handwired/twadlee/tp69/readme.md b/keyboards/handwired/twadlee/tp69/readme.md
new file mode 100644
index 000000000..201991cfe
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/readme.md
@@ -0,0 +1,18 @@
1# Twadlee TP69
2
3![tp69](https://i.imgur.com/sC1qmJS.png)
4
5A 69-key keyboard having a Trackpoint unit under an additional 70th keycap.
6
7The layout is similar to a conventional 60% keyboard, but with additional 1u keys down a central split. The spacebar is also split, with the intervening space occupied by three mouse buttons and the left half replaced by a relocated `BACKSPACE` key. The right half of the spacebar is 2.25u. The space vacated by the `BACKSPACE` key is split into two additional 1u keys. The additional keycap on the home row does not cover a switch but a Trackpoint pointing device. All told, the 61 keycaps of the conventional 60% layout are augmented by an additional 9 1u keycaps, and a 2.25u keycap to replace the conventional 6.25u spacebar.
8
9Given the unconventional layout, only non-sculpted keycap profiles are practical. I use DSAs.
10
11* Keyboard Maintainer: [Tracy Wadleigh](https://github.com/twadleigh)
12* Hardware Supported: Teensy LC controller
13
14Make example for this keyboard (after setting up your build environment):
15
16 make handwired/twadlee/tp69:default
17
18See 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/handwired/twadlee/tp69/rules.mk b/keyboards/handwired/twadlee/tp69/rules.mk
new file mode 100644
index 000000000..967060802
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/rules.mk
@@ -0,0 +1,28 @@
1# MCU name
2MCU = MKL26Z64
3
4# Build Options
5# change yes to no to disable
6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
8MOUSEKEY_ENABLE = yes # Mouse keys
9EXTRAKEY_ENABLE = yes # Audio control and System control
10CONSOLE_ENABLE = yes # Console for debug
11COMMAND_ENABLE = yes # Commands for debug and configuration
12# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
13SLEEP_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
15NKRO_ENABLE = no # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18MIDI_ENABLE = no # MIDI support
19BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
20AUDIO_ENABLE = no # Audio output on port C6
21FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
22HD44780_ENABLE = no # Enable support for HD44780 based LCDs
23PS2_MOUSE_ENABLE = no
24
25USE_CHIBIOS_CONTRIB = yes
26
27# Enter lower-power sleep mode when on the ChibiOS idle thread
28OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/twadlee/tp69/tp69.c b/keyboards/handwired/twadlee/tp69/tp69.c
new file mode 100644
index 000000000..f4454c3bd
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/tp69.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Tracy Wadleigh
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
18#include "tp69.h"
diff --git a/keyboards/handwired/twadlee/tp69/tp69.h b/keyboards/handwired/twadlee/tp69/tp69.h
new file mode 100644
index 000000000..31c03eb70
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/tp69.h
@@ -0,0 +1,48 @@
1/* Copyright 2020 Tracy Wadleigh
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, k50, k51, k52, k53, k54, k55, k56, k57, \
32 k10, k11, k13, k14, k15, k16, k17, k60, k61, k62, k63, k64, k65, k66, k67, \
33 k20, k21, k23, k24, k25, k27, /**/ k70, k71, k72, k73, k74, k75, k77, \
34 k30, k32, k33, k34, k35, k36, k37, k81, k82, k83, k84, k85, k86, \
35 k40, k41, k43, k44, k46, k47, k91, k92, k94, k95, k96, k97 \
36) \
37{ \
38 { k00, k01, k02, k03, k04, k05, k06, k07}, \
39 { k10, k11, KC_NO, k13, k14, k15, k16, k17}, \
40 { k20, k21, KC_NO, k23, k24, k25, KC_NO, k27}, \
41 { k30, KC_NO, k32, k33, k34, k35, k36, k37}, \
42 { k40, k41, KC_NO, k43, k44, KC_NO, k46, k47}, \
43 { k50, k51, k52, k53, k54, k55, k56, k57}, \
44 { k60, k61, k62, k63, k64, k65, k66, k67}, \
45 { k70, k71, k72, k73, k74, k75, KC_NO, k77}, \
46 {KC_NO, k81, k82, k83, k84, k85, k86, KC_NO}, \
47 {KC_NO, k91, k92, KC_NO, k94, k95, k96, k97} \
48}
diff --git a/keyboards/handwired/twadlee/tp69/twadlee-tp69-kle.json b/keyboards/handwired/twadlee/tp69/twadlee-tp69-kle.json
new file mode 100644
index 000000000..b54508bf4
--- /dev/null
+++ b/keyboards/handwired/twadlee/tp69/twadlee-tp69-kle.json
@@ -0,0 +1,139 @@
1[
2 {
3 "backcolor": "",
4 "name": "65% keyboard with pointing device under keycap",
5 "author": "Tracy Wadleigh",
6 "plate": false
7 },
8 [
9 {
10 "a": 7,
11 "f": 5
12 },
13 "",
14 "",
15 "",
16 "",
17 "",
18 "",
19 "",
20 "",
21 "",
22 "",
23 "",
24 "",
25 "",
26 "",
27 "",
28 ""
29 ],
30 [
31 {
32 "w": 1.5
33 },
34 "",
35 "",
36 "",
37 "",
38 "",
39 "",
40 "",
41 "",
42 "",
43 "",
44 "",
45 "",
46 "",
47 "",
48 {
49 "w": 1.5
50 },
51 ""
52 ],
53 [
54 {
55 "w": 1.75
56 },
57 "",
58 "",
59 "",
60 "",
61 "",
62 "",
63 {
64 "x": 1
65 },
66 "",
67 "",
68 "",
69 "",
70 "",
71 "",
72 {
73 "w": 2.25
74 },
75 ""
76 ],
77 [
78 {
79 "w": 2.25
80 },
81 "",
82 "",
83 "",
84 "",
85 "",
86 "",
87 "",
88 "",
89 "",
90 "",
91 "",
92 "",
93 {
94 "w": 2.75
95 },
96 ""
97 ],
98 [
99 {
100 "w": 1.25
101 },
102 "",
103 {
104 "w": 1.25
105 },
106 "",
107 {
108 "w": 1.25
109 },
110 "",
111 {
112 "w": 2
113 },
114 "",
115 "",
116 "",
117 "",
118 {
119 "w": 2.25
120 },
121 "",
122 {
123 "w": 1.25
124 },
125 "",
126 {
127 "w": 1.25
128 },
129 "",
130 {
131 "w": 1.25
132 },
133 "",
134 {
135 "w": 1.25
136 },
137 ""
138 ]
139] \ No newline at end of file