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

cpu/saml1x: add unified rtt configuration

This commit is contained in:
Francisco Molina 2020-06-17 12:36:42 +02:00
parent eefb3fa555
commit bcfe4bac0b
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 12 additions and 1 deletions

View File

@ -145,8 +145,9 @@ static const i2c_conf_t i2c_config[] = {
* @name RTT configuration
* @{
*/
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (32768U)
#define RTT_MAX_VALUE (0xffffffffU)
#endif
/** @} */
/**

View File

@ -72,6 +72,16 @@ typedef enum {
*/
#define DAC_NUMOF (1)
/**
* @name Real time counter configuration
* @{
*/
#define RTT_MAX_VALUE (0xffffffff)
#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 1024U) /* in Hz */
#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* in Hz */
/** @} */
#ifdef __cplusplus
}
#endif