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
|
* @name RTT configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (32768U)
|
#define RTT_FREQUENCY (32768U)
|
||||||
#define RTT_MAX_VALUE (0xffffffffU)
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -153,10 +153,12 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
* @name RTT configuration
|
* @name RTT configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (32768U)
|
#define RTT_FREQUENCY (32768U)
|
||||||
#define RTT_MAX_VALUE (0xffffffffU)
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ADC Configuration
|
* @name ADC Configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -144,8 +144,9 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
* @name RTT configuration
|
* @name RTT configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
#ifndef RTT_FREQUENCY
|
||||||
#define RTT_FREQUENCY (32768U)
|
#define RTT_FREQUENCY (32768U)
|
||||||
#define RTT_MAX_VALUE (0xffffffffU)
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -73,6 +73,16 @@ typedef enum {
|
|||||||
*/
|
*/
|
||||||
#define DAC_NUMOF (2)
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user