diff options
| author | Sid Carter <sidcarter@users.noreply.github.com> | 2019-12-30 10:29:36 -0500 |
|---|---|---|
| committer | fauxpark <fauxpark@gmail.com> | 2019-12-31 02:29:36 +1100 |
| commit | f6bdb6afba80f451f9866517aafc507f1f15c091 (patch) | |
| tree | 810a28c5531795d9be82b1c9edfa7246a4968ac1 /keyboards/cheshire | |
| parent | 559ef215638e82de75e3e9221baf4909990f4f53 (diff) | |
| download | qmk_firmware-f6bdb6afba80f451f9866517aafc507f1f15c091.tar.gz qmk_firmware-f6bdb6afba80f451f9866517aafc507f1f15c091.zip | |
New PCB - Curiosity - Alice Layout PCB (#7725)
* add new keyboard
* update config to use
* confirm config that works
* fix the keymaps and what not
* default keymap update
* update readme
* update and remove unncessary files
* update IDs and remove unused definitions
* update readme
* add new keyboard
* update config to use
* confirm config that works
* fix the keymaps and what not
* default keymap update
* update readme
* update and remove unncessary files
* update IDs and remove unused definitions
* update readme
* remove unused stuff
* update default keymap and add my own with layer indicator LEDs
* update README
* add crd's layout as part of the default as well
* some specific space fixes
* update readme for flashing
* remove code and use mcu selection instead. yay!
* remove vlk from default and enable velocikeys in madhatter
* remove BL_ from default
* and remove BL_ from madhatter as well
* Update keyboards/cheshire/curiosity/keymaps/crd/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
Co-authored-by: Khader Syed <35927972+chapter63@users.noreply.github.com>
Co-authored-by: fauxpark <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/cheshire')
| -rw-r--r-- | keyboards/cheshire/curiosity/chconf.h | 524 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/config.h | 50 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/curiosity.c | 17 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/curiosity.h | 42 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/halconf.h | 353 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/info.json | 82 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/crd/keymap.c | 51 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/default/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/default/readme.md | 7 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/madhatter/keymap.c | 79 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/madhatter/readme.md | 7 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/keymaps/madhatter/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/mcuconf.h | 171 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/cheshire/curiosity/rules.mk | 17 |
15 files changed, 1474 insertions, 0 deletions
diff --git a/keyboards/cheshire/curiosity/chconf.h b/keyboards/cheshire/curiosity/chconf.h new file mode 100644 index 000000000..99fa8ce39 --- /dev/null +++ b/keyboards/cheshire/curiosity/chconf.h | |||
| @@ -0,0 +1,524 @@ | |||
| 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 | /** | ||
| 18 | * @file 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 | |||
| 33 | /*===========================================================================*/ | ||
| 34 | /** | ||
| 35 | * @name System timers settings | ||
| 36 | * @{ | ||
| 37 | */ | ||
| 38 | /*===========================================================================*/ | ||
| 39 | |||
| 40 | /** | ||
| 41 | * @brief System time counter resolution. | ||
| 42 | * @note Allowed values are 16 or 32 bits. | ||
| 43 | */ | ||
| 44 | #define CH_CFG_ST_RESOLUTION 32 | ||
| 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 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 52 | |||
| 53 | /** | ||
| 54 | * @brief Time delta constant for the tick-less mode. | ||
| 55 | * @note If this value is zero then the system uses the classic | ||
| 56 | * periodic tick. This value represents the minimum number | ||
| 57 | * of ticks that is safe to specify in a timeout directive. | ||
| 58 | * The value one is not valid, timeouts are rounded up to | ||
| 59 | * this value. | ||
| 60 | */ | ||
| 61 | #define CH_CFG_ST_TIMEDELTA 2 | ||
| 62 | |||
| 63 | /** @} */ | ||
| 64 | |||
| 65 | /*===========================================================================*/ | ||
| 66 | /** | ||
| 67 | * @name Kernel parameters and options | ||
| 68 | * @{ | ||
| 69 | */ | ||
| 70 | /*===========================================================================*/ | ||
| 71 | |||
| 72 | /** | ||
| 73 | * @brief Round robin interval. | ||
| 74 | * @details This constant is the number of system ticks allowed for the | ||
| 75 | * threads before preemption occurs. Setting this value to zero | ||
| 76 | * disables the preemption for threads with equal priority and the | ||
| 77 | * round robin becomes cooperative. Note that higher priority | ||
| 78 | * threads can still preempt, the kernel is always preemptive. | ||
| 79 | * @note Disabling the round robin preemption makes the kernel more compact | ||
| 80 | * and generally faster. | ||
| 81 | * @note The round robin preemption is not supported in tickless mode and | ||
| 82 | * must be set to zero in that case. | ||
| 83 | */ | ||
| 84 | #define CH_CFG_TIME_QUANTUM 0 | ||
| 85 | |||
| 86 | /** | ||
| 87 | * @brief Managed RAM size. | ||
| 88 | * @details Size of the RAM area to be managed by the OS. If set to zero | ||
| 89 | * then the whole available RAM is used. The core memory is made | ||
| 90 | * available to the heap allocator and/or can be used directly through | ||
| 91 | * the simplified core memory allocator. | ||
| 92 | * | ||
| 93 | * @note In order to let the OS manage the whole RAM the linker script must | ||
| 94 | * provide the @p __heap_base__ and @p __heap_end__ symbols. | ||
| 95 | * @note Requires @p CH_CFG_USE_MEMCORE. | ||
| 96 | */ | ||
| 97 | #define CH_CFG_MEMCORE_SIZE 0 | ||
| 98 | |||
| 99 | /** | ||
| 100 | * @brief Idle thread automatic spawn suppression. | ||
| 101 | * @details When this option is activated the function @p chSysInit() | ||
| 102 | * does not spawn the idle thread. The application @p main() | ||
| 103 | * function becomes the idle thread and must implement an | ||
| 104 | * infinite loop. | ||
| 105 | */ | ||
| 106 | #define CH_CFG_NO_IDLE_THREAD FALSE | ||
| 107 | |||
| 108 | /* Use __WFI in the idle thread for waiting. Does lower the power | ||
| 109 | * consumption. */ | ||
| 110 | #define CORTEX_ENABLE_WFI_IDLE TRUE | ||
| 111 | |||
| 112 | /** @} */ | ||
| 113 | |||
| 114 | /*===========================================================================*/ | ||
| 115 | /** | ||
| 116 | * @name Performance options | ||
| 117 | * @{ | ||
| 118 | */ | ||
| 119 | /*===========================================================================*/ | ||
| 120 | |||
| 121 | /** | ||
| 122 | * @brief OS optimization. | ||
| 123 | * @details If enabled then time efficient rather than space efficient code | ||
| 124 | * is used when two possible implementations exist. | ||
| 125 | * | ||
| 126 | * @note This is not related to the compiler optimization options. | ||
| 127 | * @note The default is @p TRUE. | ||
| 128 | */ | ||
| 129 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
| 130 | |||
| 131 | /** @} */ | ||
| 132 | |||
| 133 | /*===========================================================================*/ | ||
| 134 | /** | ||
| 135 | * @name Subsystem options | ||
| 136 | * @{ | ||
| 137 | */ | ||
| 138 | /*===========================================================================*/ | ||
| 139 | |||
| 140 | /** | ||
| 141 | * @brief Time Measurement APIs. | ||
| 142 | * @details If enabled then the time measurement APIs are included in | ||
| 143 | * the kernel. | ||
| 144 | * | ||
| 145 | * @note The default is @p TRUE. | ||
| 146 | */ | ||
| 147 | #define CH_CFG_USE_TM FALSE | ||
| 148 | |||
| 149 | /** | ||
| 150 | * @brief Threads registry APIs. | ||
| 151 | * @details If enabled then the registry APIs are included in the kernel. | ||
| 152 | * | ||
| 153 | * @note The default is @p TRUE. | ||
| 154 | */ | ||
| 155 | #define CH_CFG_USE_REGISTRY TRUE | ||
| 156 | |||
| 157 | /** | ||
| 158 | * @brief Threads synchronization APIs. | ||
| 159 | * @details If enabled then the @p chThdWait() function is included in | ||
| 160 | * the kernel. | ||
| 161 | * | ||
| 162 | * @note The default is @p TRUE. | ||
| 163 | */ | ||
| 164 | #define CH_CFG_USE_WAITEXIT TRUE | ||
| 165 | |||
| 166 | /** | ||
| 167 | * @brief Semaphores APIs. | ||
| 168 | * @details If enabled then the Semaphores APIs are included in the kernel. | ||
| 169 | * | ||
| 170 | * @note The default is @p TRUE. | ||
| 171 | */ | ||
| 172 | #define CH_CFG_USE_SEMAPHORES TRUE | ||
| 173 | |||
| 174 | /** | ||
| 175 | * @brief Semaphores queuing mode. | ||
| 176 | * @details If enabled then the threads are enqueued on semaphores by | ||
| 177 | * priority rather than in FIFO order. | ||
| 178 | * | ||
| 179 | * @note The default is @p FALSE. Enable this if you have special | ||
| 180 | * requirements. | ||
| 181 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
| 182 | */ | ||
| 183 | #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE | ||
| 184 | |||
| 185 | /** | ||
| 186 | * @brief Mutexes APIs. | ||
| 187 | * @details If enabled then the mutexes APIs are included in the kernel. | ||
| 188 | * | ||
| 189 | * @note The default is @p TRUE. | ||
| 190 | */ | ||
| 191 | #define CH_CFG_USE_MUTEXES TRUE | ||
| 192 | |||
| 193 | /** | ||
| 194 | * @brief Enables recursive behavior on mutexes. | ||
| 195 | * @note Recursive mutexes are heavier and have an increased | ||
| 196 | * memory footprint. | ||
| 197 | * | ||
| 198 | * @note The default is @p FALSE. | ||
| 199 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
| 200 | */ | ||
| 201 | #define CH_CFG_USE_MUTEXES_RECURSIVE FALSE | ||
| 202 | |||
| 203 | /** | ||
| 204 | * @brief Conditional Variables APIs. | ||
| 205 | * @details If enabled then the conditional variables APIs are included | ||
| 206 | * in the kernel. | ||
| 207 | * | ||
| 208 | * @note The default is @p TRUE. | ||
| 209 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
| 210 | */ | ||
| 211 | #define CH_CFG_USE_CONDVARS TRUE | ||
| 212 | |||
| 213 | /** | ||
| 214 | * @brief Conditional Variables APIs with timeout. | ||
| 215 | * @details If enabled then the conditional variables APIs with timeout | ||
| 216 | * specification are included in the kernel. | ||
| 217 | * | ||
| 218 | * @note The default is @p TRUE. | ||
| 219 | * @note Requires @p CH_CFG_USE_CONDVARS. | ||
| 220 | */ | ||
| 221 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 222 | |||
| 223 | /** | ||
| 224 | * @brief Events Flags APIs. | ||
| 225 | * @details If enabled then the event flags APIs are included in the kernel. | ||
| 226 | * | ||
| 227 | * @note The default is @p TRUE. | ||
| 228 | */ | ||
| 229 | #define CH_CFG_USE_EVENTS TRUE | ||
| 230 | |||
| 231 | /** | ||
| 232 | * @brief Events Flags APIs with timeout. | ||
| 233 | * @details If enabled then the events APIs with timeout specification | ||
| 234 | * are included in the kernel. | ||
| 235 | * | ||
| 236 | * @note The default is @p TRUE. | ||
| 237 | * @note Requires @p CH_CFG_USE_EVENTS. | ||
| 238 | */ | ||
| 239 | #define CH_CFG_USE_EVENTS_TIMEOUT TRUE | ||
| 240 | |||
| 241 | /** | ||
| 242 | * @brief Synchronous Messages APIs. | ||
| 243 | * @details If enabled then the synchronous messages APIs are included | ||
| 244 | * in the kernel. | ||
| 245 | * | ||
| 246 | * @note The default is @p TRUE. | ||
| 247 | */ | ||
| 248 | #define CH_CFG_USE_MESSAGES TRUE | ||
| 249 | |||
| 250 | /** | ||
| 251 | * @brief Synchronous Messages queuing mode. | ||
| 252 | * @details If enabled then messages are served by priority rather than in | ||
| 253 | * FIFO order. | ||
| 254 | * | ||
| 255 | * @note The default is @p FALSE. Enable this if you have special | ||
| 256 | * requirements. | ||
| 257 | * @note Requires @p CH_CFG_USE_MESSAGES. | ||
| 258 | */ | ||
| 259 | #define CH_CFG_USE_MESSAGES_PRIORITY FALSE | ||
| 260 | |||
| 261 | /** | ||
| 262 | * @brief Mailboxes APIs. | ||
| 263 | * @details If enabled then the asynchronous messages (mailboxes) APIs are | ||
| 264 | * included in the kernel. | ||
| 265 | * | ||
| 266 | * @note The default is @p TRUE. | ||
| 267 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
| 268 | */ | ||
| 269 | #define CH_CFG_USE_MAILBOXES TRUE | ||
| 270 | |||
| 271 | /** | ||
| 272 | * @brief Core Memory Manager APIs. | ||
| 273 | * @details If enabled then the core memory manager APIs are included | ||
| 274 | * in the kernel. | ||
| 275 | * | ||
| 276 | * @note The default is @p TRUE. | ||
| 277 | */ | ||
| 278 | #define CH_CFG_USE_MEMCORE FALSE | ||
| 279 | |||
| 280 | /** | ||
| 281 | * @brief Heap Allocator APIs. | ||
| 282 | * @details If enabled then the memory heap allocator APIs are included | ||
| 283 | * in the kernel. | ||
| 284 | * | ||
| 285 | * @note The default is @p TRUE. | ||
| 286 | * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or | ||
| 287 | * @p CH_CFG_USE_SEMAPHORES. | ||
| 288 | * @note Mutexes are recommended. | ||
| 289 | */ | ||
| 290 | #define CH_CFG_USE_HEAP FALSE | ||
| 291 | |||
| 292 | /** | ||
| 293 | * @brief Memory Pools Allocator APIs. | ||
| 294 | * @details If enabled then the memory pools allocator APIs are included | ||
| 295 | * in the kernel. | ||
| 296 | * | ||
| 297 | * @note The default is @p TRUE. | ||
| 298 | */ | ||
| 299 | #define CH_CFG_USE_MEMPOOLS FALSE | ||
| 300 | |||
| 301 | /** | ||
| 302 | * @brief Dynamic Threads APIs. | ||
| 303 | * @details If enabled then the dynamic threads creation APIs are included | ||
| 304 | * in the kernel. | ||
| 305 | * | ||
| 306 | * @note The default is @p TRUE. | ||
| 307 | * @note Requires @p CH_CFG_USE_WAITEXIT. | ||
| 308 | * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. | ||
| 309 | */ | ||
| 310 | #define CH_CFG_USE_DYNAMIC FALSE | ||
| 311 | |||
| 312 | /** @} */ | ||
| 313 | |||
| 314 | /*===========================================================================*/ | ||
| 315 | /** | ||
| 316 | * @name Debug options | ||
| 317 | * @{ | ||
| 318 | */ | ||
| 319 | /*===========================================================================*/ | ||
| 320 | |||
| 321 | /** | ||
| 322 | * @brief Debug option, kernel statistics. | ||
| 323 | * | ||
| 324 | * @note The default is @p FALSE. | ||
| 325 | */ | ||
| 326 | #define CH_DBG_STATISTICS FALSE | ||
| 327 | |||
| 328 | /** | ||
| 329 | * @brief Debug option, system state check. | ||
| 330 | * @details If enabled the correct call protocol for system APIs is checked | ||
| 331 | * at runtime. | ||
| 332 | * | ||
| 333 | * @note The default is @p FALSE. | ||
| 334 | */ | ||
| 335 | #define CH_DBG_SYSTEM_STATE_CHECK FALSE | ||
| 336 | |||
| 337 | /** | ||
| 338 | * @brief Debug option, parameters checks. | ||
| 339 | * @details If enabled then the checks on the API functions input | ||
| 340 | * parameters are activated. | ||
| 341 | * | ||
| 342 | * @note The default is @p FALSE. | ||
| 343 | */ | ||
| 344 | #define CH_DBG_ENABLE_CHECKS FALSE | ||
| 345 | |||
| 346 | /** | ||
| 347 | * @brief Debug option, consistency checks. | ||
| 348 | * @details If enabled then all the assertions in the kernel code are | ||
| 349 | * activated. This includes consistency checks inside the kernel, | ||
| 350 | * runtime anomalies and port-defined checks. | ||
| 351 | * | ||
| 352 | * @note The default is @p FALSE. | ||
| 353 | */ | ||
| 354 | #define CH_DBG_ENABLE_ASSERTS FALSE | ||
| 355 | |||
| 356 | /** | ||
| 357 | * @brief Debug option, trace buffer. | ||
| 358 | * @details If enabled then the trace buffer is activated. | ||
| 359 | * | ||
| 360 | * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. | ||
| 361 | */ | ||
| 362 | #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED | ||
| 363 | |||
| 364 | /** | ||
| 365 | * @brief Trace buffer entries. | ||
| 366 | * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is | ||
| 367 | * different from @p CH_DBG_TRACE_MASK_DISABLED. | ||
| 368 | */ | ||
| 369 | #define CH_DBG_TRACE_BUFFER_SIZE 128 | ||
| 370 | |||
| 371 | /** | ||
| 372 | * @brief Debug option, stack checks. | ||
| 373 | * @details If enabled then a runtime stack check is performed. | ||
| 374 | * | ||
| 375 | * @note The default is @p FALSE. | ||
| 376 | * @note The stack check is performed in a architecture/port dependent way. | ||
| 377 | * It may not be implemented or some ports. | ||
| 378 | * @note The default failure mode is to halt the system with the global | ||
| 379 | * @p panic_msg variable set to @p NULL. | ||
| 380 | */ | ||
| 381 | #define CH_DBG_ENABLE_STACK_CHECK FALSE | ||
| 382 | |||
| 383 | /** | ||
| 384 | * @brief Debug option, stacks initialization. | ||
| 385 | * @details If enabled then the threads working area is filled with a byte | ||
| 386 | * value when a thread is created. This can be useful for the | ||
| 387 | * runtime measurement of the used stack. | ||
| 388 | * | ||
| 389 | * @note The default is @p FALSE. | ||
| 390 | */ | ||
| 391 | #define CH_DBG_FILL_THREADS FALSE | ||
| 392 | |||
| 393 | /** | ||
| 394 | * @brief Debug option, threads profiling. | ||
| 395 | * @details If enabled then a field is added to the @p thread_t structure that | ||
| 396 | * counts the system ticks occurred while executing the thread. | ||
| 397 | * | ||
| 398 | * @note The default is @p FALSE. | ||
| 399 | * @note This debug option is not currently compatible with the | ||
| 400 | * tickless mode. | ||
| 401 | */ | ||
| 402 | #define CH_DBG_THREADS_PROFILING FALSE | ||
| 403 | |||
| 404 | /** @} */ | ||
| 405 | |||
| 406 | /*===========================================================================*/ | ||
| 407 | /** | ||
| 408 | * @name Kernel hooks | ||
| 409 | * @{ | ||
| 410 | */ | ||
| 411 | /*===========================================================================*/ | ||
| 412 | |||
| 413 | /** | ||
| 414 | * @brief Threads descriptor structure extension. | ||
| 415 | * @details User fields added to the end of the @p thread_t structure. | ||
| 416 | */ | ||
| 417 | #define CH_CFG_THREAD_EXTRA_FIELDS \ | ||
| 418 | /* Add threads custom fields here.*/ | ||
| 419 | |||
| 420 | /** | ||
| 421 | * @brief Threads initialization hook. | ||
| 422 | * @details User initialization code added to the @p chThdInit() API. | ||
| 423 | * | ||
| 424 | * @note It is invoked from within @p chThdInit() and implicitly from all | ||
| 425 | * the threads creation APIs. | ||
| 426 | */ | ||
| 427 | #define CH_CFG_THREAD_INIT_HOOK(tp) { \ | ||
| 428 | /* Add threads initialization code here.*/ \ | ||
| 429 | } | ||
| 430 | |||
| 431 | /** | ||
| 432 | * @brief Threads finalization hook. | ||
| 433 | * @details User finalization code added to the @p chThdExit() API. | ||
| 434 | */ | ||
| 435 | #define CH_CFG_THREAD_EXIT_HOOK(tp) { \ | ||
| 436 | /* Add threads finalization code here.*/ \ | ||
| 437 | } | ||
| 438 | |||
| 439 | /** | ||
| 440 | * @brief Context switch hook. | ||
| 441 | * @details This hook is invoked just before switching between threads. | ||
| 442 | */ | ||
| 443 | #define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \ | ||
| 444 | /* Context switch code here.*/ \ | ||
| 445 | } | ||
| 446 | |||
| 447 | /** | ||
| 448 | * @brief ISR enter hook. | ||
| 449 | */ | ||
| 450 | #define CH_CFG_IRQ_PROLOGUE_HOOK() { \ | ||
| 451 | /* IRQ prologue code here.*/ \ | ||
| 452 | } | ||
| 453 | |||
| 454 | /** | ||
| 455 | * @brief ISR exit hook. | ||
| 456 | */ | ||
| 457 | #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ | ||
| 458 | /* IRQ epilogue code here.*/ \ | ||
| 459 | } | ||
| 460 | |||
| 461 | /** | ||
| 462 | * @brief Idle thread enter hook. | ||
| 463 | * @note This hook is invoked within a critical zone, no OS functions | ||
| 464 | * should be invoked from here. | ||
| 465 | * @note This macro can be used to activate a power saving mode. | ||
| 466 | */ | ||
| 467 | #define CH_CFG_IDLE_ENTER_HOOK() { \ | ||
| 468 | /* Idle-enter code here.*/ \ | ||
| 469 | } | ||
| 470 | |||
| 471 | /** | ||
| 472 | * @brief Idle thread leave hook. | ||
| 473 | * @note This hook is invoked within a critical zone, no OS functions | ||
| 474 | * should be invoked from here. | ||
| 475 | * @note This macro can be used to deactivate a power saving mode. | ||
| 476 | */ | ||
| 477 | #define CH_CFG_IDLE_LEAVE_HOOK() { \ | ||
| 478 | /* Idle-leave code here.*/ \ | ||
| 479 | } | ||
| 480 | |||
| 481 | /** | ||
| 482 | * @brief Idle Loop hook. | ||
| 483 | * @details This hook is continuously invoked by the idle thread loop. | ||
| 484 | */ | ||
| 485 | #define CH_CFG_IDLE_LOOP_HOOK() { \ | ||
| 486 | /* Idle loop code here.*/ \ | ||
| 487 | } | ||
| 488 | |||
| 489 | /** | ||
| 490 | * @brief System tick event hook. | ||
| 491 | * @details This hook is invoked in the system tick handler immediately | ||
| 492 | * after processing the virtual timers queue. | ||
| 493 | */ | ||
| 494 | #define CH_CFG_SYSTEM_TICK_HOOK() { \ | ||
| 495 | /* System tick event code here.*/ \ | ||
| 496 | } | ||
| 497 | |||
| 498 | /** | ||
| 499 | * @brief System halt hook. | ||
| 500 | * @details This hook is invoked in case to a system halting error before | ||
| 501 | * the system is halted. | ||
| 502 | */ | ||
| 503 | #define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ | ||
| 504 | /* System halt code here.*/ \ | ||
| 505 | } | ||
| 506 | |||
| 507 | /** | ||
| 508 | * @brief Trace hook. | ||
| 509 | * @details This hook is invoked each time a new record is written in the | ||
| 510 | * trace buffer. | ||
| 511 | */ | ||
| 512 | #define CH_CFG_TRACE_HOOK(tep) { \ | ||
| 513 | /* Trace code here.*/ \ | ||
| 514 | } | ||
| 515 | |||
| 516 | /** @} */ | ||
| 517 | |||
| 518 | /*===========================================================================*/ | ||
| 519 | /* Port-specific settings (override port settings defaulted in chcore.h). */ | ||
| 520 | /*===========================================================================*/ | ||
| 521 | |||
| 522 | #endif /* CHCONF_H */ | ||
| 523 | |||
| 524 | /** @} */ | ||
diff --git a/keyboards/cheshire/curiosity/config.h b/keyboards/cheshire/curiosity/config.h new file mode 100644 index 000000000..7dca470c5 --- /dev/null +++ b/keyboards/cheshire/curiosity/config.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 zvecr<git@zvecr.com> | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xCAFE | ||
| 24 | #define PRODUCT_ID 0x0FAD | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Nightingale Studios/Cheshire Designs | ||
| 27 | #define PRODUCT Curiosity | ||
| 28 | #define DESCRIPTION Curiosity | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 16 | ||
| 33 | |||
| 34 | #define MATRIX_ROW_PINS { B13, B14, A4, A2, A1 } | ||
| 35 | #define MATRIX_COL_PINS { B11, B10, B2, B1, B0, A7, A6, A5, B9, B8, B7, B6, B5, B4, B3, A15 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | #define DIODE_DIRECTION COL2ROW | ||
| 39 | |||
| 40 | #define RGB_DI_PIN B15 | ||
| 41 | #define RGBLED_NUM 14 | ||
| 42 | |||
| 43 | #define RGBLIGHT_ANIMATIONS | ||
| 44 | |||
| 45 | #define DEBOUNCE 5 | ||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/cheshire/curiosity/curiosity.c b/keyboards/cheshire/curiosity/curiosity.c new file mode 100644 index 000000000..e52499b35 --- /dev/null +++ b/keyboards/cheshire/curiosity/curiosity.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #include "curiosity.h" | ||
| 2 | |||
| 3 | void matrix_init_board(void){ | ||
| 4 | setPinOutput(A8); | ||
| 5 | setPinOutput(A9); | ||
| 6 | setPinOutput(A10); | ||
| 7 | } | ||
| 8 | |||
| 9 | bool led_update_kb(led_t led_state) { | ||
| 10 | bool runDefault = led_update_user(led_state); | ||
| 11 | if (runDefault) { | ||
| 12 | writePin(A8, !led_state.num_lock); | ||
| 13 | writePin(A9, !led_state.caps_lock); | ||
| 14 | writePin(A10, !led_state.scroll_lock); | ||
| 15 | } | ||
| 16 | return runDefault; | ||
| 17 | } | ||
diff --git a/keyboards/cheshire/curiosity/curiosity.h b/keyboards/cheshire/curiosity/curiosity.h new file mode 100644 index 000000000..e250eda8f --- /dev/null +++ b/keyboards/cheshire/curiosity/curiosity.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2019 zvecr<git@zvecr.com> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | #define ____ KC_NO | ||
| 20 | |||
| 21 | /* This 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 | #define LAYOUT_default( \ | ||
| 30 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ | ||
| 31 | K100, K101, K102, K103, K104, K105, K106, K108, K109, K110, K111, K112, K113, K114, K115, \ | ||
| 32 | K200, K201, K202, K203, K204, K205, K206, K208, K209, K210, K211, K212, K213, K215, \ | ||
| 33 | K301, K302, K303, K304, K305, K306, K308, K309, K310, K311, K312, K313, K314, K315, \ | ||
| 34 | K401, K403, K405, K406, K409, K411, K414 \ | ||
| 35 | ) \ | ||
| 36 | { \ | ||
| 37 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015}, \ | ||
| 38 | { K100, K101, K102, K103, K104, K105, K106, ____, K108, K109, K110, K111, K112, K113, K114, K115}, \ | ||
| 39 | { K200, K201, K202, K203, K204, K205, K206, ____, K208, K209, K210, K211, K212, K213, ____, K215}, \ | ||
| 40 | { ____, K301, K302, K303, K304, K305, K306, ____, K308, K309, K310, K311, K312, K313, K314, K315}, \ | ||
| 41 | { ____, K401, ____, K403, ____, K405, K406, ____, ____, K409, ____, K411, ____, ____, K414, ____}, \ | ||
| 42 | } | ||
diff --git a/keyboards/cheshire/curiosity/halconf.h b/keyboards/cheshire/curiosity/halconf.h new file mode 100644 index 000000000..8b9724b1a --- /dev/null +++ b/keyboards/cheshire/curiosity/halconf.h | |||
| @@ -0,0 +1,353 @@ | |||
| 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 | /** | ||
| 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 | #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 DAC subsystem. | ||
| 56 | */ | ||
| 57 | #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) | ||
| 58 | #define HAL_USE_DAC FALSE | ||
| 59 | #endif | ||
| 60 | |||
| 61 | /** | ||
| 62 | * @brief Enables the EXT subsystem. | ||
| 63 | */ | ||
| 64 | #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__) | ||
| 65 | #define HAL_USE_EXT 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 FALSE | ||
| 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 SPI subsystem. | ||
| 147 | */ | ||
| 148 | #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) | ||
| 149 | #define HAL_USE_SPI FALSE | ||
| 150 | #endif | ||
| 151 | |||
| 152 | /** | ||
| 153 | * @brief Enables the UART subsystem. | ||
| 154 | */ | ||
| 155 | #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) | ||
| 156 | #define HAL_USE_UART FALSE | ||
| 157 | #endif | ||
| 158 | |||
| 159 | /** | ||
| 160 | * @brief Enables the USB subsystem. | ||
| 161 | */ | ||
| 162 | #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) | ||
| 163 | #define HAL_USE_USB TRUE | ||
| 164 | #endif | ||
| 165 | |||
| 166 | /** | ||
| 167 | * @brief Enables the WDG subsystem. | ||
| 168 | */ | ||
| 169 | #if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) | ||
| 170 | #define HAL_USE_WDG FALSE | ||
| 171 | #endif | ||
| 172 | |||
| 173 | /*===========================================================================*/ | ||
| 174 | /* ADC driver related settings. */ | ||
| 175 | /*===========================================================================*/ | ||
| 176 | |||
| 177 | /** | ||
| 178 | * @brief Enables synchronous APIs. | ||
| 179 | * @note Disabling this option saves both code and data space. | ||
| 180 | */ | ||
| 181 | #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) | ||
| 182 | #define ADC_USE_WAIT TRUE | ||
| 183 | #endif | ||
| 184 | |||
| 185 | /** | ||
| 186 | * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs. | ||
| 187 | * @note Disabling this option saves both code and data space. | ||
| 188 | */ | ||
| 189 | #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 190 | #define ADC_USE_MUTUAL_EXCLUSION TRUE | ||
| 191 | #endif | ||
| 192 | |||
| 193 | /*===========================================================================*/ | ||
| 194 | /* CAN driver related settings. */ | ||
| 195 | /*===========================================================================*/ | ||
| 196 | |||
| 197 | /** | ||
| 198 | * @brief Sleep mode related APIs inclusion switch. | ||
| 199 | */ | ||
| 200 | #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) | ||
| 201 | #define CAN_USE_SLEEP_MODE TRUE | ||
| 202 | #endif | ||
| 203 | |||
| 204 | /*===========================================================================*/ | ||
| 205 | /* I2C driver related settings. */ | ||
| 206 | /*===========================================================================*/ | ||
| 207 | |||
| 208 | /** | ||
| 209 | * @brief Enables the mutual exclusion APIs on the I2C bus. | ||
| 210 | */ | ||
| 211 | #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 212 | #define I2C_USE_MUTUAL_EXCLUSION TRUE | ||
| 213 | #endif | ||
| 214 | |||
| 215 | /*===========================================================================*/ | ||
| 216 | /* MAC driver related settings. */ | ||
| 217 | /*===========================================================================*/ | ||
| 218 | |||
| 219 | /** | ||
| 220 | * @brief Enables an event sources for incoming packets. | ||
| 221 | */ | ||
| 222 | #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) | ||
| 223 | #define MAC_USE_ZERO_COPY FALSE | ||
| 224 | #endif | ||
| 225 | |||
| 226 | /** | ||
| 227 | * @brief Enables an event sources for incoming packets. | ||
| 228 | */ | ||
| 229 | #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) | ||
| 230 | #define MAC_USE_EVENTS TRUE | ||
| 231 | #endif | ||
| 232 | |||
| 233 | /*===========================================================================*/ | ||
| 234 | /* MMC_SPI driver related settings. */ | ||
| 235 | /*===========================================================================*/ | ||
| 236 | |||
| 237 | /** | ||
| 238 | * @brief Delays insertions. | ||
| 239 | * @details If enabled this options inserts delays into the MMC waiting | ||
| 240 | * routines releasing some extra CPU time for the threads with | ||
| 241 | * lower priority, this may slow down the driver a bit however. | ||
| 242 | * This option is recommended also if the SPI driver does not | ||
| 243 | * use a DMA channel and heavily loads the CPU. | ||
| 244 | */ | ||
| 245 | #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) | ||
| 246 | #define MMC_NICE_WAITING TRUE | ||
| 247 | #endif | ||
| 248 | |||
| 249 | /*===========================================================================*/ | ||
| 250 | /* SDC driver related settings. */ | ||
| 251 | /*===========================================================================*/ | ||
| 252 | |||
| 253 | /** | ||
| 254 | * @brief Number of initialization attempts before rejecting the card. | ||
| 255 | * @note Attempts are performed at 10mS intervals. | ||
| 256 | */ | ||
| 257 | #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) | ||
| 258 | #define SDC_INIT_RETRY 100 | ||
| 259 | #endif | ||
| 260 | |||
| 261 | /** | ||
| 262 | * @brief Include support for MMC cards. | ||
| 263 | * @note MMC support is not yet implemented so this option must be kept | ||
| 264 | * at @p FALSE. | ||
| 265 | */ | ||
| 266 | #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) | ||
| 267 | #define SDC_MMC_SUPPORT FALSE | ||
| 268 | #endif | ||
| 269 | |||
| 270 | /** | ||
| 271 | * @brief Delays insertions. | ||
| 272 | * @details If enabled this options inserts delays into the MMC waiting | ||
| 273 | * routines releasing some extra CPU time for the threads with | ||
| 274 | * lower priority, this may slow down the driver a bit however. | ||
| 275 | */ | ||
| 276 | #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) | ||
| 277 | #define SDC_NICE_WAITING TRUE | ||
| 278 | #endif | ||
| 279 | |||
| 280 | /*===========================================================================*/ | ||
| 281 | /* SERIAL driver related settings. */ | ||
| 282 | /*===========================================================================*/ | ||
| 283 | |||
| 284 | /** | ||
| 285 | * @brief Default bit rate. | ||
| 286 | * @details Configuration parameter, this is the baud rate selected for the | ||
| 287 | * default configuration. | ||
| 288 | */ | ||
| 289 | #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) | ||
| 290 | #define SERIAL_DEFAULT_BITRATE 38400 | ||
| 291 | #endif | ||
| 292 | |||
| 293 | /** | ||
| 294 | * @brief Serial buffers size. | ||
| 295 | * @details Configuration parameter, you can change the depth of the queue | ||
| 296 | * buffers depending on the requirements of your application. | ||
| 297 | * @note The default is 64 bytes for both the transmission and receive | ||
| 298 | * buffers. | ||
| 299 | */ | ||
| 300 | #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
| 301 | #define SERIAL_BUFFERS_SIZE 16 | ||
| 302 | #endif | ||
| 303 | |||
| 304 | /*===========================================================================*/ | ||
| 305 | /* SERIAL_USB driver related setting. */ | ||
| 306 | /*===========================================================================*/ | ||
| 307 | |||
| 308 | /** | ||
| 309 | * @brief Serial over USB buffers size. | ||
| 310 | * @details Configuration parameter, the buffer size must be a multiple of | ||
| 311 | * the USB data endpoint maximum packet size. | ||
| 312 | * @note The default is 64 bytes for both the transmission and receive | ||
| 313 | * buffers. | ||
| 314 | */ | ||
| 315 | #if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
| 316 | #define SERIAL_USB_BUFFERS_SIZE 1 | ||
| 317 | #endif | ||
| 318 | |||
| 319 | /*===========================================================================*/ | ||
| 320 | /* SPI driver related settings. */ | ||
| 321 | /*===========================================================================*/ | ||
| 322 | |||
| 323 | /** | ||
| 324 | * @brief Enables synchronous APIs. | ||
| 325 | * @note Disabling this option saves both code and data space. | ||
| 326 | */ | ||
| 327 | #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) | ||
| 328 | #define SPI_USE_WAIT TRUE | ||
| 329 | #endif | ||
| 330 | |||
| 331 | /** | ||
| 332 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. | ||
| 333 | * @note Disabling this option saves both code and data space. | ||
| 334 | */ | ||
| 335 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 336 | #define SPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 337 | #endif | ||
| 338 | |||
| 339 | /*===========================================================================*/ | ||
| 340 | /* USB driver related settings. */ | ||
| 341 | /*===========================================================================*/ | ||
| 342 | |||
| 343 | /** | ||
| 344 | * @brief Enables synchronous APIs. | ||
| 345 | * @note Disabling this option saves both code and data space. | ||
| 346 | */ | ||
| 347 | #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) | ||
| 348 | #define USB_USE_WAIT TRUE | ||
| 349 | #endif | ||
| 350 | |||
| 351 | #endif /* _HALCONF_H_ */ | ||
| 352 | |||
| 353 | /** @} */ | ||
diff --git a/keyboards/cheshire/curiosity/info.json b/keyboards/cheshire/curiosity/info.json new file mode 100644 index 000000000..f98954658 --- /dev/null +++ b/keyboards/cheshire/curiosity/info.json | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Curiosity", | ||
| 3 | "maintainer": "zvecr", | ||
| 4 | "width": 19.75, | ||
| 5 | "height": 5.25, | ||
| 6 | "layouts": { | ||
| 7 | "LAYOUT_default": { | ||
| 8 | "layout": [ | ||
| 9 | {"label":"Esc", "x":0.5, "y":0}, | ||
| 10 | {"label":"`", "x":1.75, "y":0.25}, | ||
| 11 | {"label":"1", "x":2.75, "y":0.25}, | ||
| 12 | {"label":"2", "x":3.75, "y":0}, | ||
| 13 | {"label":"3", "x":4.75, "y":0.25}, | ||
| 14 | {"label":"4", "x":5.75, "y":0.25}, | ||
| 15 | {"label":"5", "x":6.75, "y":0.25}, | ||
| 16 | {"label":"6", "x":7.75, "y":0.25}, | ||
| 17 | {"label":"7", "x":11, "y":0.25}, | ||
| 18 | {"label":"8", "x":12, "y":0.25}, | ||
| 19 | {"label":"9", "x":13, "y":0.25}, | ||
| 20 | {"label":"0", "x":14, "y":0.25}, | ||
| 21 | {"label":"-", "x":15, "y":0}, | ||
| 22 | {"label":"=", "x":16, "y":0.25}, | ||
| 23 | {"label":"Del", "x":17, "y":0.25}, | ||
| 24 | {"label":"Backspace", "x":18, "y":0.25}, | ||
| 25 | |||
| 26 | {"label":"PgUp", "x":0.25, "y":1}, | ||
| 27 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
| 28 | {"label":"Q", "x":3, "y":1.25}, | ||
| 29 | {"label":"W", "x":4.25, "y":1.25}, | ||
| 30 | {"label":"E", "x":5.25, "y":1.25}, | ||
| 31 | {"label":"R", "x":6.25, "y":1.25}, | ||
| 32 | {"label":"T", "x":7.25, "y":1.25}, | ||
| 33 | {"label":"Y", "x":10.5, "y":1.25}, | ||
| 34 | {"label":"U", "x":11.5, "y":1.25}, | ||
| 35 | {"label":"I", "x":12.5, "y":1.25}, | ||
| 36 | {"label":"O", "x":13.5, "y":1.25}, | ||
| 37 | {"label":"P", "x":14.75, "y":1.25}, | ||
| 38 | {"label":"{", "x":15.75, "y":1.25}, | ||
| 39 | {"label":"}", "x":16.75, "y":1.25}, | ||
| 40 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
| 41 | |||
| 42 | {"label":"PgDn", "x":0, "y":2}, | ||
| 43 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
| 44 | {"label":"A", "x":3.25, "y":2.25}, | ||
| 45 | {"label":"S", "x":4.5, "y":2.25}, | ||
| 46 | {"label":"D", "x":5.5, "y":2.25}, | ||
| 47 | {"label":"F", "x":6.5, "y":2.25}, | ||
| 48 | {"label":"G", "x":7.5, "y":2.25}, | ||
| 49 | {"label":"H", "x":10.75, "y":2.25}, | ||
| 50 | {"label":"J", "x":11.75, "y":2.25}, | ||
| 51 | {"label":"K", "x":12.75, "y":2.25}, | ||
| 52 | {"label":"L", "x":13.75, "y":2.25}, | ||
| 53 | {"label":":", "x":15.25, "y":2.25}, | ||
| 54 | {"label":"\"", "x":16.25, "y":2.25}, | ||
| 55 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
| 56 | |||
| 57 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
| 58 | {"label":"Z", "x":3.75, "y":3.25}, | ||
| 59 | {"label":"X", "x":5, "y":3.25}, | ||
| 60 | {"label":"C", "x":6, "y":3.25}, | ||
| 61 | {"label":"V", "x":7, "y":3.25}, | ||
| 62 | {"label":"B", "x":8, "y":3.25}, | ||
| 63 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
| 64 | {"label":"N", "x":11.25, "y":3.25}, | ||
| 65 | {"label":"M", "x":12.25, "y":3.25}, | ||
| 66 | {"label":"<", "x":13.25, "y":3.25}, | ||
| 67 | {"label":">", "x":15, "y":3.25}, | ||
| 68 | {"label":"?", "x":16, "y":3.25}, | ||
| 69 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
| 70 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
| 71 | |||
| 72 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
| 73 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
| 74 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
| 75 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
| 76 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
| 77 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
| 78 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
| 79 | ] | ||
| 80 | } | ||
| 81 | } | ||
| 82 | } | ||
diff --git a/keyboards/cheshire/curiosity/keymaps/crd/keymap.c b/keyboards/cheshire/curiosity/keymaps/crd/keymap.c new file mode 100644 index 000000000..5ccaafec3 --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/crd/keymap.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012,2013 Jun Wako <wakojun@gmail.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | |||
| 20 | enum keyboard_layers { | ||
| 21 | _BL, // Base Layer | ||
| 22 | _FL, // Function Layer | ||
| 23 | _CL // Control Layer | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Custom #defined keycodes (shorter macros for readability) | ||
| 27 | #define KC_CTES CTL_T(KC_ESC) | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | [_BL] = LAYOUT_default( | ||
| 31 | KC_NO, KC_GESC, 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_BSLS, KC_GRV, | ||
| 32 | KC_NO, 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_BSPC, | ||
| 33 | KC_NO, KC_CTES, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 34 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FL), | ||
| 35 | KC_LCTL, KC_LGUI, KC_SPC, MO(_FL), KC_SPC, KC_RALT, MO(_CL) | ||
| 36 | ), | ||
| 37 | [_FL] = LAYOUT_default( | ||
| 38 | KC_PGUP, KC_PWR, 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_INS, KC_DEL, | ||
| 39 | KC_PGDN, KC_CAPS, _______, _______, EEP_RST, RESET, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, _______, _______, | ||
| 40 | KC_ESC, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_PENT, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______ | ||
| 43 | ), | ||
| 44 | [_CL] = LAYOUT_default( | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAI, _______, _______, | ||
| 47 | _______, _______, RGB_VAD, RGB_VAI, RGB_TOG, _______, _______, _______, _______, _______, RGB_MOD, RGB_HUD, RGB_HUI, _______, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_SAD, _______, _______, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______ | ||
| 50 | ) | ||
| 51 | }; | ||
diff --git a/keyboards/cheshire/curiosity/keymaps/default/keymap.c b/keyboards/cheshire/curiosity/keymaps/default/keymap.c new file mode 100644 index 000000000..5b0f176ea --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/default/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Khader Syed | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum my_layers { | ||
| 20 | _QWERTY, | ||
| 21 | _FNMS, | ||
| 22 | _NAVMED | ||
| 23 | }; | ||
| 24 | |||
| 25 | #define FNMS MO(_FNMS) | ||
| 26 | #define NAVMED MO(_NAVMED) | ||
| 27 | #define CAP_CTL CTL_T(KC_CAPS) | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | [_QWERTY] = LAYOUT_default( | ||
| 31 | KC_GESC, 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_BSLS, KC_DEL, | ||
| 32 | KC_PGUP, 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_BSPC, | ||
| 33 | KC_PGDN, CAP_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 34 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, FNMS, | ||
| 35 | KC_LCTL, KC_LALT, KC_LCMD, NAVMED, KC_SPC, KC_RALT, KC_RCTL | ||
| 36 | ), | ||
| 37 | |||
| 38 | [_FNMS] = LAYOUT_default( | ||
| 39 | RGB_TOG, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, | ||
| 40 | RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_U, _______, _______, _______, _______, RESET, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN2, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, | ||
| 43 | AG_TOGG, _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | [_NAVMED] = LAYOUT_default( | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 48 | KC_HOME, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, RESET, | ||
| 49 | KC_END, _______, _______, _______, _______, _______, KC_MPLY, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, EEP_RST, | ||
| 50 | _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______ | ||
| 52 | ) | ||
| 53 | }; | ||
diff --git a/keyboards/cheshire/curiosity/keymaps/default/readme.md b/keyboards/cheshire/curiosity/keymaps/default/readme.md new file mode 100644 index 000000000..c56b76814 --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/default/readme.md | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Curiosity default keymap | ||
| 2 | |||
| 3 | - A layer for all functions and mouse keys | ||
| 4 | - A layer for arrows and media | ||
| 5 | - Arrows on IJKL | ||
| 6 | - Caps and control on caps lock - wonderful | ||
| 7 | |||
diff --git a/keyboards/cheshire/curiosity/keymaps/madhatter/keymap.c b/keyboards/cheshire/curiosity/keymaps/madhatter/keymap.c new file mode 100644 index 000000000..b0649d37a --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/madhatter/keymap.c | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Khader Syed | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum my_layers { | ||
| 20 | _QWERTY, | ||
| 21 | _FNMS, | ||
| 22 | _NAVMED | ||
| 23 | }; | ||
| 24 | |||
| 25 | #define FNMS MO(_FNMS) | ||
| 26 | #define NAVMED MO(_NAVMED) | ||
| 27 | #define CAP_CTL CTL_T(KC_CAPS) | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | [_QWERTY] = LAYOUT_default( | ||
| 31 | KC_GESC, 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_BSLS, KC_DEL, | ||
| 32 | KC_PGUP, 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_BSPC, | ||
| 33 | KC_PGDN, CAP_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 34 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, FNMS, | ||
| 35 | KC_LCTL, KC_LALT, KC_LCMD, NAVMED, KC_SPC, KC_RALT, KC_RCTL | ||
| 36 | ), | ||
| 37 | |||
| 38 | [_FNMS] = LAYOUT_default( | ||
| 39 | RGB_TOG, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, | ||
| 40 | RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_U, _______, _______, _______, _______, RESET, | ||
| 41 | VLK_TOG, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN2, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, | ||
| 43 | AG_TOGG, _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | [_NAVMED] = LAYOUT_default( | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 48 | KC_HOME, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, RESET, | ||
| 49 | KC_END, _______, _______, _______, _______, _______, KC_MPLY, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, EEP_RST, | ||
| 50 | _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______ | ||
| 52 | ) | ||
| 53 | }; | ||
| 54 | |||
| 55 | static uint8_t top = 0; | ||
| 56 | static uint8_t middle = 0; | ||
| 57 | static uint8_t bottom = 1; | ||
| 58 | |||
| 59 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 60 | top = middle = bottom = 0; | ||
| 61 | switch (get_highest_layer(state)) { | ||
| 62 | case _NAVMED: | ||
| 63 | top = 1; | ||
| 64 | break; | ||
| 65 | case _FNMS: | ||
| 66 | middle = 1; | ||
| 67 | break; | ||
| 68 | default: | ||
| 69 | break; | ||
| 70 | } | ||
| 71 | return state; | ||
| 72 | } | ||
| 73 | |||
| 74 | bool led_update_user(led_t usb_led) { | ||
| 75 | writePin(A8, !top); | ||
| 76 | writePin(A9, !middle); | ||
| 77 | writePin(A10, !bottom); | ||
| 78 | return false; | ||
| 79 | } | ||
diff --git a/keyboards/cheshire/curiosity/keymaps/madhatter/readme.md b/keyboards/cheshire/curiosity/keymaps/madhatter/readme.md new file mode 100644 index 000000000..a0e4c42c1 --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/madhatter/readme.md | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Curiosity default keymap | ||
| 2 | |||
| 3 | - A layer for all functions and mouse keys | ||
| 4 | - A layer for arrows and media | ||
| 5 | - Arrows on IJKL | ||
| 6 | - Caps and control on caps lock - wonderful | ||
| 7 | - Layer indicator LEDs | ||
diff --git a/keyboards/cheshire/curiosity/keymaps/madhatter/rules.mk b/keyboards/cheshire/curiosity/keymaps/madhatter/rules.mk new file mode 100644 index 000000000..1b0f198d0 --- /dev/null +++ b/keyboards/cheshire/curiosity/keymaps/madhatter/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VELOCIKEY_ENABLE = yes | |||
diff --git a/keyboards/cheshire/curiosity/mcuconf.h b/keyboards/cheshire/curiosity/mcuconf.h new file mode 100644 index 000000000..faca3defd --- /dev/null +++ b/keyboards/cheshire/curiosity/mcuconf.h | |||
| @@ -0,0 +1,171 @@ | |||
| 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 | /* | ||
| 21 | * STM32F0xx drivers configuration. | ||
| 22 | * The following settings override the default settings present in | ||
| 23 | * the various device driver implementation headers. | ||
| 24 | * Note that the settings for each driver only have effect if the whole | ||
| 25 | * driver is enabled in halconf.h. | ||
| 26 | * | ||
| 27 | * IRQ priorities: | ||
| 28 | * 3...0 Lowest...Highest. | ||
| 29 | * | ||
| 30 | * DMA priorities: | ||
| 31 | * 0...3 Lowest...Highest. | ||
| 32 | */ | ||
| 33 | |||
| 34 | #define STM32F0xx_MCUCONF | ||
| 35 | |||
| 36 | /* | ||
| 37 | * HAL driver system settings. | ||
| 38 | */ | ||
| 39 | #define STM32_NO_INIT FALSE | ||
| 40 | #define STM32_PVD_ENABLE FALSE | ||
| 41 | #define STM32_PLS STM32_PLS_LEV0 | ||
| 42 | #define STM32_HSI_ENABLED TRUE | ||
| 43 | #define STM32_HSI14_ENABLED TRUE | ||
| 44 | #define STM32_HSI48_ENABLED FALSE | ||
| 45 | #define STM32_LSI_ENABLED TRUE | ||
| 46 | #define STM32_HSE_ENABLED FALSE | ||
| 47 | #define STM32_LSE_ENABLED FALSE | ||
| 48 | #define STM32_SW STM32_SW_PLL | ||
| 49 | #define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2 | ||
| 50 | #define STM32_PREDIV_VALUE 1 | ||
| 51 | #define STM32_PLLMUL_VALUE 12 | ||
| 52 | #define STM32_HPRE STM32_HPRE_DIV1 | ||
| 53 | #define STM32_PPRE STM32_PPRE_DIV1 | ||
| 54 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
| 55 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
| 56 | #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK | ||
| 57 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
| 58 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
| 59 | #define STM32_USBSW STM32_USBSW_HSI48 | ||
| 60 | #define STM32_CECSW STM32_CECSW_HSI | ||
| 61 | #define STM32_I2C1SW STM32_I2C1SW_HSI | ||
| 62 | #define STM32_USART1SW STM32_USART1SW_PCLK | ||
| 63 | #define STM32_RTCSEL STM32_RTCSEL_LSI | ||
| 64 | |||
| 65 | /* | ||
| 66 | * ADC driver system settings. | ||
| 67 | */ | ||
| 68 | #define STM32_ADC_USE_ADC1 FALSE | ||
| 69 | #define STM32_ADC_ADC1_DMA_PRIORITY 2 | ||
| 70 | #define STM32_ADC_IRQ_PRIORITY 2 | ||
| 71 | #define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2 | ||
| 72 | |||
| 73 | /* | ||
| 74 | * EXT driver system settings. | ||
| 75 | */ | ||
| 76 | #define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3 | ||
| 77 | #define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3 | ||
| 78 | #define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3 | ||
| 79 | #define STM32_EXT_EXTI16_IRQ_PRIORITY 3 | ||
| 80 | #define STM32_EXT_EXTI17_IRQ_PRIORITY 3 | ||
| 81 | |||
| 82 | /* | ||
| 83 | * GPT driver system settings. | ||
| 84 | */ | ||
| 85 | #define STM32_GPT_USE_TIM1 FALSE | ||
| 86 | #define STM32_GPT_USE_TIM2 FALSE | ||
| 87 | #define STM32_GPT_USE_TIM3 FALSE | ||
| 88 | #define STM32_GPT_USE_TIM14 FALSE | ||
| 89 | #define STM32_GPT_TIM1_IRQ_PRIORITY 2 | ||
| 90 | #define STM32_GPT_TIM2_IRQ_PRIORITY 2 | ||
| 91 | #define STM32_GPT_TIM3_IRQ_PRIORITY 2 | ||
| 92 | #define STM32_GPT_TIM14_IRQ_PRIORITY 2 | ||
| 93 | |||
| 94 | /* | ||
| 95 | * I2C driver system settings. | ||
| 96 | */ | ||
| 97 | #define STM32_I2C_USE_I2C1 FALSE | ||
| 98 | #define STM32_I2C_USE_I2C2 FALSE | ||
| 99 | #define STM32_I2C_BUSY_TIMEOUT 50 | ||
| 100 | #define STM32_I2C_I2C1_IRQ_PRIORITY 3 | ||
| 101 | #define STM32_I2C_I2C2_IRQ_PRIORITY 3 | ||
| 102 | #define STM32_I2C_USE_DMA TRUE | ||
| 103 | #define STM32_I2C_I2C1_DMA_PRIORITY 1 | ||
| 104 | #define STM32_I2C_I2C2_DMA_PRIORITY 1 | ||
| 105 | #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure") | ||
| 106 | |||
| 107 | /* | ||
| 108 | * ICU driver system settings. | ||
| 109 | */ | ||
| 110 | #define STM32_ICU_USE_TIM1 FALSE | ||
| 111 | #define STM32_ICU_USE_TIM2 FALSE | ||
| 112 | #define STM32_ICU_USE_TIM3 FALSE | ||
| 113 | #define STM32_ICU_TIM1_IRQ_PRIORITY 3 | ||
| 114 | #define STM32_ICU_TIM2_IRQ_PRIORITY 3 | ||
| 115 | #define STM32_ICU_TIM3_IRQ_PRIORITY 3 | ||
| 116 | |||
| 117 | /* | ||
| 118 | * PWM driver system settings. | ||
| 119 | */ | ||
| 120 | #define STM32_PWM_USE_ADVANCED FALSE | ||
| 121 | #define STM32_PWM_USE_TIM1 FALSE | ||
| 122 | #define STM32_PWM_USE_TIM2 FALSE | ||
| 123 | #define STM32_PWM_USE_TIM3 FALSE | ||
| 124 | #define STM32_PWM_TIM1_IRQ_PRIORITY 3 | ||
| 125 | #define STM32_PWM_TIM2_IRQ_PRIORITY 3 | ||
| 126 | #define STM32_PWM_TIM3_IRQ_PRIORITY 3 | ||
| 127 | |||
| 128 | /* | ||
| 129 | * SERIAL driver system settings. | ||
| 130 | */ | ||
| 131 | #define STM32_SERIAL_USE_USART1 FALSE | ||
| 132 | #define STM32_SERIAL_USE_USART2 FALSE | ||
| 133 | #define STM32_SERIAL_USART1_PRIORITY 3 | ||
| 134 | #define STM32_SERIAL_USART2_PRIORITY 3 | ||
| 135 | |||
| 136 | /* | ||
| 137 | * SPI driver system settings. | ||
| 138 | */ | ||
| 139 | #define STM32_SPI_USE_SPI1 FALSE | ||
| 140 | #define STM32_SPI_USE_SPI2 FALSE | ||
| 141 | #define STM32_SPI_SPI1_DMA_PRIORITY 1 | ||
| 142 | #define STM32_SPI_SPI2_DMA_PRIORITY 1 | ||
| 143 | #define STM32_SPI_SPI1_IRQ_PRIORITY 2 | ||
| 144 | #define STM32_SPI_SPI2_IRQ_PRIORITY 2 | ||
| 145 | #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure") | ||
| 146 | |||
| 147 | /* | ||
| 148 | * ST driver system settings. | ||
| 149 | */ | ||
| 150 | #define STM32_ST_IRQ_PRIORITY 2 | ||
| 151 | #define STM32_ST_USE_TIMER 2 | ||
| 152 | |||
| 153 | /* | ||
| 154 | * UART driver system settings. | ||
| 155 | */ | ||
| 156 | #define STM32_UART_USE_USART1 FALSE | ||
| 157 | #define STM32_UART_USE_USART2 FALSE | ||
| 158 | #define STM32_UART_USART1_IRQ_PRIORITY 3 | ||
| 159 | #define STM32_UART_USART2_IRQ_PRIORITY 3 | ||
| 160 | #define STM32_UART_USART1_DMA_PRIORITY 0 | ||
| 161 | #define STM32_UART_USART2_DMA_PRIORITY 0 | ||
| 162 | #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") | ||
| 163 | |||
| 164 | /* | ||
| 165 | * USB driver system settings. | ||
| 166 | */ | ||
| 167 | #define STM32_USB_USE_USB1 TRUE | ||
| 168 | #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE | ||
| 169 | #define STM32_USB_USB1_LP_IRQ_PRIORITY 3 | ||
| 170 | |||
| 171 | #endif /* _MCUCONF_H_ */ | ||
diff --git a/keyboards/cheshire/curiosity/readme.md b/keyboards/cheshire/curiosity/readme.md new file mode 100644 index 000000000..dbde94130 --- /dev/null +++ b/keyboards/cheshire/curiosity/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Cheshire Curiosity PCB | ||
| 2 | |||
| 3 | Cheshire Alice Keyboard Replacement PCB | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [sidcarter](https://github.com/sidcarter) | ||
| 6 | * Hardware Supported: Cheshire Curiosity PCB, STM32F072CBT6 | ||
| 7 | * Designed By: Nightingale Studios/PhoenixStarr | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make cheshire/curiosity:default:flash | ||
| 12 | |||
| 13 | If you are flashing this keyboard/pcb for the first time: | ||
| 14 | |||
| 15 | * Set the dip switch on the reverse of the PCB to 1 | ||
| 16 | * Hit the reset button and then do | ||
| 17 | * make cheshire/curiosity:default | ||
| 18 | * After flashing the keyboard successfully, you can reset the dip switch back to 0 | ||
| 19 | |||
| 20 | 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/cheshire/curiosity/rules.mk b/keyboards/cheshire/curiosity/rules.mk new file mode 100644 index 000000000..354465a08 --- /dev/null +++ b/keyboards/cheshire/curiosity/rules.mk | |||
| @@ -0,0 +1,17 @@ | |||
| 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 = yes # 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 = no # USB Nkey Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
