mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16607 from maribu/boards/pic32-wifire
boards/{pic32-wifire,6lowpan-clicker}: Add CLOCK_CORECLOCK
This commit is contained in:
commit
b911dc6d59
@ -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
|
||||
|
@ -21,17 +21,25 @@
|
||||
#define PERIPH_CONF_H
|
||||
|
||||
#include "cpu.h"
|
||||
#include "macros/units.h"
|
||||
#include "periph_cpu.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
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)
|
||||
*/
|
||||
#define PERIPHERAL_CLOCK (100000000) /* Hz */
|
||||
#define PERIPHERAL_CLOCK MHZ(100)
|
||||
|
||||
#define CLOCK_CORECLOCK MHZ(200)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Timer definitions
|
||||
|
Loading…
Reference in New Issue
Block a user