Skip to content

Commit

Permalink
Update ChibiOS config files
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Jan 10, 2021
1 parent e91e5fe commit c22575d
Show file tree
Hide file tree
Showing 20 changed files with 731 additions and 248 deletions.
89 changes: 67 additions & 22 deletions keyboards/akegata_denki/device_one/chconf.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -26,7 +29,7 @@
#define CHCONF_H

#define _CHIBIOS_RT_CONF_
#define _CHIBIOS_RT_CONF_VER_6_0_
#define _CHIBIOS_RT_CONF_VER_6_1_

/*===========================================================================*/
/**
Expand Down Expand Up @@ -105,21 +108,6 @@
#define CH_CFG_TIME_QUANTUM 0
#endif

/**
* @brief Managed RAM size.
* @details Size of the RAM area to be managed by the OS. If set to zero
* then the whole available RAM is used. The core memory is made
* available to the heap allocator and/or can be used directly through
* the simplified core memory allocator.
*
* @note In order to let the OS manage the whole RAM the linker script must
* provide the @p __heap_base__ and @p __heap_end__ symbols.
* @note Requires @p CH_CFG_USE_MEMCORE.
*/
#if !defined(CH_CFG_MEMCORE_SIZE)
#define CH_CFG_MEMCORE_SIZE 0
#endif

/**
* @brief Idle thread automatic spawn suppression.
* @details When this option is activated the function @p chSysInit()
Expand Down Expand Up @@ -308,6 +296,28 @@
#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
#endif

/**
* @brief Dynamic Threads APIs.
* @details If enabled then the dynamic threads creation APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
* @note Requires @p CH_CFG_USE_WAITEXIT.
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
*/
#if !defined(CH_CFG_USE_DYNAMIC)
#define CH_CFG_USE_DYNAMIC TRUE
#endif

/** @} */

/*===========================================================================*/
/**
* @name OSLIB options
* @{
*/
/*===========================================================================*/

/**
* @brief Mailboxes APIs.
* @details If enabled then the asynchronous messages (mailboxes) APIs are
Expand All @@ -331,6 +341,21 @@
#define CH_CFG_USE_MEMCORE TRUE
#endif

/**
* @brief Managed RAM size.
* @details Size of the RAM area to be managed by the OS. If set to zero
* then the whole available RAM is used. The core memory is made
* available to the heap allocator and/or can be used directly through
* the simplified core memory allocator.
*
* @note In order to let the OS manage the whole RAM the linker script must
* provide the @p __heap_base__ and @p __heap_end__ symbols.
* @note Requires @p CH_CFG_USE_MEMCORE.
*/
#if !defined(CH_CFG_MEMCORE_SIZE)
#define CH_CFG_MEMCORE_SIZE 0
#endif

/**
* @brief Heap Allocator APIs.
* @details If enabled then the memory heap allocator APIs are included
Expand Down Expand Up @@ -379,16 +404,36 @@
#endif

/**
* @brief Dynamic Threads APIs.
* @details If enabled then the dynamic threads creation APIs are included
* @brief Objects Caches APIs.
* @details If enabled then the objects caches APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
* @note Requires @p CH_CFG_USE_WAITEXIT.
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
*/
#if !defined(CH_CFG_USE_DYNAMIC)
#define CH_CFG_USE_DYNAMIC TRUE
#if !defined(CH_CFG_USE_OBJ_CACHES)
#define CH_CFG_USE_OBJ_CACHES FALSE
#endif

/**
* @brief Delegate threads APIs.
* @details If enabled then the delegate threads APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_DELEGATES)
#define CH_CFG_USE_DELEGATES FALSE
#endif

/**
* @brief Jobs Queues APIs.
* @details If enabled then the jobs queues APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_JOBS)
#define CH_CFG_USE_JOBS FALSE
#endif

/** @} */
Expand Down
12 changes: 9 additions & 3 deletions keyboards/akegata_denki/device_one/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#define HALCONF_H

#define _CHIBIOS_HAL_CONF_
#define _CHIBIOS_HAL_CONF_VER_7_0_
#define _CHIBIOS_HAL_CONF_VER_7_1_

#include "mcuconf.h"
#include <mcuconf.h>

/**
* @brief Enables the PAL subsystem.
Expand Down Expand Up @@ -68,6 +68,13 @@
#define HAL_USE_DAC FALSE
#endif

/**
* @brief Enables the EFlash subsystem.
*/
#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
#define HAL_USE_EFL FALSE
#endif

/**
* @brief Enables the GPT subsystem.
*/
Expand Down Expand Up @@ -451,7 +458,6 @@
#define SPI_USE_CIRCULAR FALSE
#endif


/**
* @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
* @note Disabling this option saves both code and data space.
Expand Down
86 changes: 64 additions & 22 deletions keyboards/cannonkeys/sagittarius/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define CHCONF_H

#define _CHIBIOS_RT_CONF_
#define _CHIBIOS_RT_CONF_VER_6_0_
#define _CHIBIOS_RT_CONF_VER_6_1_

/*===========================================================================*/
/**
Expand Down Expand Up @@ -108,21 +108,6 @@
#define CH_CFG_TIME_QUANTUM 0
#endif

/**
* @brief Managed RAM size.
* @details Size of the RAM area to be managed by the OS. If set to zero
* then the whole available RAM is used. The core memory is made
* available to the heap allocator and/or can be used directly through
* the simplified core memory allocator.
*
* @note In order to let the OS manage the whole RAM the linker script must
* provide the @p __heap_base__ and @p __heap_end__ symbols.
* @note Requires @p CH_CFG_USE_MEMCORE.
*/
#if !defined(CH_CFG_MEMCORE_SIZE)
#define CH_CFG_MEMCORE_SIZE 0
#endif

/**
* @brief Idle thread automatic spawn suppression.
* @details When this option is activated the function @p chSysInit()
Expand Down Expand Up @@ -311,6 +296,28 @@
#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
#endif

/**
* @brief Dynamic Threads APIs.
* @details If enabled then the dynamic threads creation APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
* @note Requires @p CH_CFG_USE_WAITEXIT.
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
*/
#if !defined(CH_CFG_USE_DYNAMIC)
#define CH_CFG_USE_DYNAMIC FALSE
#endif

/** @} */

/*===========================================================================*/
/**
* @name OSLIB options
* @{
*/
/*===========================================================================*/

/**
* @brief Mailboxes APIs.
* @details If enabled then the asynchronous messages (mailboxes) APIs are
Expand All @@ -334,6 +341,21 @@
#define CH_CFG_USE_MEMCORE TRUE
#endif

/**
* @brief Managed RAM size.
* @details Size of the RAM area to be managed by the OS. If set to zero
* then the whole available RAM is used. The core memory is made
* available to the heap allocator and/or can be used directly through
* the simplified core memory allocator.
*
* @note In order to let the OS manage the whole RAM the linker script must
* provide the @p __heap_base__ and @p __heap_end__ symbols.
* @note Requires @p CH_CFG_USE_MEMCORE.
*/
#if !defined(CH_CFG_MEMCORE_SIZE)
#define CH_CFG_MEMCORE_SIZE 0
#endif

/**
* @brief Heap Allocator APIs.
* @details If enabled then the memory heap allocator APIs are included
Expand Down Expand Up @@ -382,16 +404,36 @@
#endif

/**
* @brief Dynamic Threads APIs.
* @details If enabled then the dynamic threads creation APIs are included
* @brief Objects Caches APIs.
* @details If enabled then the objects caches APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
* @note Requires @p CH_CFG_USE_WAITEXIT.
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
*/
#if !defined(CH_CFG_USE_DYNAMIC)
#define CH_CFG_USE_DYNAMIC FALSE
#if !defined(CH_CFG_USE_OBJ_CACHES)
#define CH_CFG_USE_OBJ_CACHES FALSE
#endif

/**
* @brief Delegate threads APIs.
* @details If enabled then the delegate threads APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_DELEGATES)
#define CH_CFG_USE_DELEGATES FALSE
#endif

/**
* @brief Jobs Queues APIs.
* @details If enabled then the jobs queues APIs are included
* in the kernel.
*
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_JOBS)
#define CH_CFG_USE_JOBS FALSE
#endif

/** @} */
Expand Down
12 changes: 9 additions & 3 deletions keyboards/cannonkeys/sagittarius/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#define HALCONF_H

#define _CHIBIOS_HAL_CONF_
#define _CHIBIOS_HAL_CONF_VER_7_0_
#define _CHIBIOS_HAL_CONF_VER_7_1_

#include "mcuconf.h"
#include <mcuconf.h>

/**
* @brief Enables the PAL subsystem.
Expand Down Expand Up @@ -68,6 +68,13 @@
#define HAL_USE_DAC FALSE
#endif

/**
* @brief Enables the EFlash subsystem.
*/
#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
#define HAL_USE_EFL FALSE
#endif

/**
* @brief Enables the GPT subsystem.
*/
Expand Down Expand Up @@ -451,7 +458,6 @@
#define SPI_USE_CIRCULAR FALSE
#endif


/**
* @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
* @note Disabling this option saves both code and data space.
Expand Down
Loading

0 comments on commit c22575d

Please sign in to comment.