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

boards/6lowpan-clicker: Add CLOCK_CORECLOCK

Also sneak in use of MHZ() macro, so that reviews don't need to count
zeros.
This commit is contained in:
Marian Buschsieweke 2021-07-04 17:59:21 +02:00
parent d04c493ceb
commit 5a8e36769f
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -22,6 +22,7 @@
#define PERIPH_CONF_H
#include "cpu.h"
#include "macros/units.h"
#include "periph_cpu.h"
#ifdef __cplusplus
@ -29,12 +30,19 @@ extern "C" {
#endif
/**
* @name Clock configurations
* @{
*/
/**
* @brief The peripheral clock is required for the UART Baud rate calculation
* It is configured by the 'config' registers (see pic32_config_settings.c)
* Note 120MHz is the max F for this device.
*/
#define PERIPHERAL_CLOCK (96000000) /* Hz */
#define PERIPHERAL_CLOCK MHZ(96)
#define CLOCK_CORECLOCK MHZ(120)
/** @} */
/**
* @name Timer definitions