aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios/common
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-12-04 10:45:39 +1100
committerGitHub <noreply@github.com>2020-12-04 10:45:39 +1100
commit4444f3cc55f246e484c6893f88d891c4c00c2166 (patch)
tree1f868d1744e85b561675e884c9718cac4277c0ca /platforms/chibios/common
parent7e2ba2784e8848f65c8385806fb1a2cdbe13a0cc (diff)
downloadqmk_firmware-4444f3cc55f246e484c6893f88d891c4c00c2166.tar.gz
qmk_firmware-4444f3cc55f246e484c6893f88d891c4c00c2166.zip
Disable almost all ChibiOS subsystems in default configs (#11111)
* Disable almost all ChibiOS subsystems. * Modify ChibiOS config updater script to fixup mcuconf include, use develop as base instead of master. * Add default early-init bootloader to F042/F072. * Back to 100k freq.
Diffstat (limited to 'platforms/chibios/common')
-rw-r--r--platforms/chibios/common/configs/chconf.h20
-rw-r--r--platforms/chibios/common/configs/halconf.h16
2 files changed, 18 insertions, 18 deletions
diff --git a/platforms/chibios/common/configs/chconf.h b/platforms/chibios/common/configs/chconf.h
index aac330370..2fad3f769 100644
--- a/platforms/chibios/common/configs/chconf.h
+++ b/platforms/chibios/common/configs/chconf.h
@@ -308,7 +308,7 @@
308 * @note Requires @p CH_CFG_USE_MESSAGES. 308 * @note Requires @p CH_CFG_USE_MESSAGES.
309 */ 309 */
310#if !defined(CH_CFG_USE_MESSAGES_PRIORITY) 310#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
311#define CH_CFG_USE_MESSAGES_PRIORITY TRUE 311#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
312#endif 312#endif
313 313
314/** 314/**
@@ -331,7 +331,7 @@
331 * @note The default is @p TRUE. 331 * @note The default is @p TRUE.
332 */ 332 */
333#if !defined(CH_CFG_USE_MEMCORE) 333#if !defined(CH_CFG_USE_MEMCORE)
334#define CH_CFG_USE_MEMCORE TRUE 334#define CH_CFG_USE_MEMCORE FALSE
335#endif 335#endif
336 336
337/** 337/**
@@ -411,7 +411,7 @@
411 * @note The default is @p FALSE. 411 * @note The default is @p FALSE.
412 */ 412 */
413#if !defined(CH_CFG_USE_FACTORY) 413#if !defined(CH_CFG_USE_FACTORY)
414#define CH_CFG_USE_FACTORY TRUE 414#define CH_CFG_USE_FACTORY FALSE
415#endif 415#endif
416 416
417/** 417/**
@@ -427,42 +427,42 @@
427 * @brief Enables the registry of generic objects. 427 * @brief Enables the registry of generic objects.
428 */ 428 */
429#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY) 429#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
430#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE 430#define CH_CFG_FACTORY_OBJECTS_REGISTRY FALSE
431#endif 431#endif
432 432
433/** 433/**
434 * @brief Enables factory for generic buffers. 434 * @brief Enables factory for generic buffers.
435 */ 435 */
436#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS) 436#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
437#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE 437#define CH_CFG_FACTORY_GENERIC_BUFFERS FALSE
438#endif 438#endif
439 439
440/** 440/**
441 * @brief Enables factory for semaphores. 441 * @brief Enables factory for semaphores.
442 */ 442 */
443#if !defined(CH_CFG_FACTORY_SEMAPHORES) 443#if !defined(CH_CFG_FACTORY_SEMAPHORES)
444#define CH_CFG_FACTORY_SEMAPHORES TRUE 444#define CH_CFG_FACTORY_SEMAPHORES FALSE
445#endif 445#endif
446 446
447/** 447/**
448 * @brief Enables factory for mailboxes. 448 * @brief Enables factory for mailboxes.
449 */ 449 */
450#if !defined(CH_CFG_FACTORY_MAILBOXES) 450#if !defined(CH_CFG_FACTORY_MAILBOXES)
451#define CH_CFG_FACTORY_MAILBOXES TRUE 451#define CH_CFG_FACTORY_MAILBOXES FALSE
452#endif 452#endif
453 453
454/** 454/**
455 * @brief Enables factory for objects FIFOs. 455 * @brief Enables factory for objects FIFOs.
456 */ 456 */
457#if !defined(CH_CFG_FACTORY_OBJ_FIFOS) 457#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
458#define CH_CFG_FACTORY_OBJ_FIFOS TRUE 458#define CH_CFG_FACTORY_OBJ_FIFOS FALSE
459#endif 459#endif
460 460
461/** 461/**
462 * @brief Enables factory for Pipes. 462 * @brief Enables factory for Pipes.
463 */ 463 */
464#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__) 464#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
465#define CH_CFG_FACTORY_PIPES TRUE 465#define CH_CFG_FACTORY_PIPES FALSE
466#endif 466#endif
467 467
468/** @} */ 468/** @} */
@@ -547,7 +547,7 @@
547 * @p panic_msg variable set to @p NULL. 547 * @p panic_msg variable set to @p NULL.
548 */ 548 */
549#if !defined(CH_DBG_ENABLE_STACK_CHECK) 549#if !defined(CH_DBG_ENABLE_STACK_CHECK)
550#define CH_DBG_ENABLE_STACK_CHECK TRUE 550#define CH_DBG_ENABLE_STACK_CHECK FALSE
551#endif 551#endif
552 552
553/** 553/**
diff --git a/platforms/chibios/common/configs/halconf.h b/platforms/chibios/common/configs/halconf.h
index a9f2cf77b..880e7f97a 100644
--- a/platforms/chibios/common/configs/halconf.h
+++ b/platforms/chibios/common/configs/halconf.h
@@ -65,21 +65,21 @@
65 * @brief Enables the DAC subsystem. 65 * @brief Enables the DAC subsystem.
66 */ 66 */
67#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) 67#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
68#define HAL_USE_DAC TRUE 68#define HAL_USE_DAC FALSE
69#endif 69#endif
70 70
71/** 71/**
72 * @brief Enables the GPT subsystem. 72 * @brief Enables the GPT subsystem.
73 */ 73 */
74#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) 74#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
75#define HAL_USE_GPT TRUE 75#define HAL_USE_GPT FALSE
76#endif 76#endif
77 77
78/** 78/**
79 * @brief Enables the I2C subsystem. 79 * @brief Enables the I2C subsystem.
80 */ 80 */
81#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) 81#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
82#define HAL_USE_I2C TRUE 82#define HAL_USE_I2C FALSE
83#endif 83#endif
84 84
85/** 85/**
@@ -114,7 +114,7 @@
114 * @brief Enables the PWM subsystem. 114 * @brief Enables the PWM subsystem.
115 */ 115 */
116#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) 116#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
117#define HAL_USE_PWM TRUE 117#define HAL_USE_PWM FALSE
118#endif 118#endif
119 119
120/** 120/**
@@ -142,7 +142,7 @@
142 * @brief Enables the SERIAL over USB subsystem. 142 * @brief Enables the SERIAL over USB subsystem.
143 */ 143 */
144#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) 144#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
145#define HAL_USE_SERIAL_USB TRUE 145#define HAL_USE_SERIAL_USB FALSE
146#endif 146#endif
147 147
148/** 148/**
@@ -156,7 +156,7 @@
156 * @brief Enables the SPI subsystem. 156 * @brief Enables the SPI subsystem.
157 */ 157 */
158#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) 158#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
159#define HAL_USE_SPI TRUE 159#define HAL_USE_SPI FALSE
160#endif 160#endif
161 161
162/** 162/**
@@ -203,7 +203,7 @@
203 * @note Disabling this option saves both code and data space. 203 * @note Disabling this option saves both code and data space.
204 */ 204 */
205#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__) 205#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
206#define PAL_USE_CALLBACKS TRUE 206#define PAL_USE_CALLBACKS FALSE
207#endif 207#endif
208 208
209/** 209/**
@@ -211,7 +211,7 @@
211 * @note Disabling this option saves both code and data space. 211 * @note Disabling this option saves both code and data space.
212 */ 212 */
213#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__) 213#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
214#define PAL_USE_WAIT TRUE 214#define PAL_USE_WAIT FALSE
215#endif 215#endif
216 216
217/*===========================================================================*/ 217/*===========================================================================*/