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

Merge pull request #16257 from fjmolinas/pr_arduino_due_config_freq

boards/arduino-due: allow changing frequency
This commit is contained in:
Marian Buschsieweke 2021-03-30 16:17:43 +02:00 committed by GitHub
commit 8919b2c847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -76,7 +76,9 @@ static const timer_conf_t timer_config[] = {
* @name RTT configuration
* @{
*/
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* 1Hz */
#endif
/** @} */
/**

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