1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/*efm32*: do not force RTT_FREQUENCY

while keeping a sane (rtt shared with rtc (counter)) default
this commit adds the ability to define RTT_FREQUENCY
to some thing different than 1 Hz
This commit is contained in:
Karl Fessel 2021-04-19 12:36:04 +02:00
parent 4ff30a31e5
commit c41342dc5b
11 changed files with 33 additions and 22 deletions

View File

@ -106,8 +106,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -84,8 +84,9 @@ static const adc_chan_conf_t adc_channel_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -82,8 +82,9 @@ static const adc_chan_conf_t adc_channel_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -101,8 +101,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -113,8 +113,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -104,8 +104,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -113,8 +113,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -154,8 +154,9 @@ static const pwm_conf_t pwm_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -100,8 +100,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -159,8 +159,9 @@ static const pwm_conf_t pwm_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**

View File

@ -159,8 +159,9 @@ static const pwm_conf_t pwm_config[] = {
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xFFFFFF)
#define RTT_FREQUENCY (1U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */
#endif
/** @} */
/**