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.
This commit is contained in:
		
							parent
							
								
									7e2ba2784e
								
							
						
					
					
						commit
						4444f3cc55
					
				
					 16 changed files with 3179 additions and 546 deletions
				
			
		| 
						 | 
				
			
			@ -308,7 +308,7 @@
 | 
			
		|||
 * @note    Requires @p CH_CFG_USE_MESSAGES.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
 | 
			
		||||
#define CH_CFG_USE_MESSAGES_PRIORITY        TRUE
 | 
			
		||||
#define CH_CFG_USE_MESSAGES_PRIORITY        FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -331,7 +331,7 @@
 | 
			
		|||
 * @note    The default is @p TRUE.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_USE_MEMCORE)
 | 
			
		||||
#define CH_CFG_USE_MEMCORE                  TRUE
 | 
			
		||||
#define CH_CFG_USE_MEMCORE                  FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -411,7 +411,7 @@
 | 
			
		|||
 * @note    The default is @p FALSE.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_USE_FACTORY)
 | 
			
		||||
#define CH_CFG_USE_FACTORY                  TRUE
 | 
			
		||||
#define CH_CFG_USE_FACTORY                  FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -427,42 +427,42 @@
 | 
			
		|||
 * @brief   Enables the registry of generic objects.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
 | 
			
		||||
#define CH_CFG_FACTORY_OBJECTS_REGISTRY     TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_OBJECTS_REGISTRY     FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables factory for generic buffers.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
 | 
			
		||||
#define CH_CFG_FACTORY_GENERIC_BUFFERS      TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_GENERIC_BUFFERS      FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables factory for semaphores.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_SEMAPHORES)
 | 
			
		||||
#define CH_CFG_FACTORY_SEMAPHORES           TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_SEMAPHORES           FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables factory for mailboxes.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_MAILBOXES)
 | 
			
		||||
#define CH_CFG_FACTORY_MAILBOXES            TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_MAILBOXES            FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables factory for objects FIFOs.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
 | 
			
		||||
#define CH_CFG_FACTORY_OBJ_FIFOS            TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_OBJ_FIFOS            FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables factory for Pipes.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
 | 
			
		||||
#define CH_CFG_FACTORY_PIPES                TRUE
 | 
			
		||||
#define CH_CFG_FACTORY_PIPES                FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
| 
						 | 
				
			
			@ -547,7 +547,7 @@
 | 
			
		|||
 *          @p panic_msg variable set to @p NULL.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(CH_DBG_ENABLE_STACK_CHECK)
 | 
			
		||||
#define CH_DBG_ENABLE_STACK_CHECK           TRUE
 | 
			
		||||
#define CH_DBG_ENABLE_STACK_CHECK           FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,21 +65,21 @@
 | 
			
		|||
 * @brief   Enables the DAC subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_DAC                         TRUE
 | 
			
		||||
#define HAL_USE_DAC                         FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the GPT subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_GPT                         TRUE
 | 
			
		||||
#define HAL_USE_GPT                         FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the I2C subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_I2C                         TRUE
 | 
			
		||||
#define HAL_USE_I2C                         FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -114,7 +114,7 @@
 | 
			
		|||
 * @brief   Enables the PWM subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_PWM                         TRUE
 | 
			
		||||
#define HAL_USE_PWM                         FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -142,7 +142,7 @@
 | 
			
		|||
 * @brief   Enables the SERIAL over USB subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_SERIAL_USB                  TRUE
 | 
			
		||||
#define HAL_USE_SERIAL_USB                  FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -156,7 +156,7 @@
 | 
			
		|||
 * @brief   Enables the SPI subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
 | 
			
		||||
#define HAL_USE_SPI                         TRUE
 | 
			
		||||
#define HAL_USE_SPI                         FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -203,7 +203,7 @@
 | 
			
		|||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
 | 
			
		||||
#define PAL_USE_CALLBACKS                   TRUE
 | 
			
		||||
#define PAL_USE_CALLBACKS                   FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -211,7 +211,7 @@
 | 
			
		|||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
 | 
			
		||||
#define PAL_USE_WAIT                        TRUE
 | 
			
		||||
#define PAL_USE_WAIT                        FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue