mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/saml21: add unified rtt configuration
This commit is contained in:
parent
bcfe4bac0b
commit
f41b43e263
@ -162,8 +162,9 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#ifndef RTT_FREQUENCY
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -153,10 +153,12 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#ifndef RTT_FREQUENCY
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
||||
/**
|
||||
* @name ADC Configuration
|
||||
* @{
|
||||
|
@ -144,8 +144,9 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#ifndef RTT_FREQUENCY
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -73,6 +73,16 @@ typedef enum {
|
||||
*/
|
||||
#define DAC_NUMOF (2)
|
||||
|
||||
/**
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_MAX_VALUE (0xffffffff)
|
||||
#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
|
||||
#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 512U) /* in Hz */
|
||||
#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* in Hz */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user