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

cpu/sam3: add unified RTT configuration

This commit is contained in:
Francisco Molina 2021-03-30 14:28:58 +02:00
parent d2fdb7479e
commit 89c0b2a827
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -76,9 +76,14 @@ typedef uint32_t gpio_t;
#define TIMER_CHANNEL_NUMOF (1)
/**
* @brief The RTT width is fixed to 32-bit
* @name RTT configuration
* @{
*/
#define RTT_MAX_VALUE (0xffffffff)
#define RTT_CLOCK_FREQUENCY (CHIP_FREQ_XTAL_32K) /* in Hz */
#define RTT_MIN_FREQUENCY (1) /* in Hz */
#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* in Hz */
/** @} */
/**
* @brief Generate GPIO mode bitfields