esp-open-rtos/core/include/esp/clocks.h
Angus Gratton 1b0124cf05 Timer FRC1 & FRC2 registers
Mostly determined from reverse engineering and poking around.

Includes first "experiments" program with random bits and pieces for
poking at registers, may be useful to keep in source control but not
useful for writing actual programs.
2015-06-12 17:05:54 +10:00

26 lines
694 B
C

/* esp/clocks.h
*
* ESP8266 internal clock values
*
* At the moment there's not a lot known about varying clock speeds
* apart from doubling the CPU clock. It may be possible to set clock
* domains differently somehow.
*
* Part of esp-open-rtos
* Copyright (C) 2015 Superhouse Automation Pty Ltd
* BSD Licensed as described in the file LICENSE
*/
#ifndef _ESP_CLOCKS_H
#define _ESP_CLOCKS_H
/* CPU clock, can be overclocked to 160MHz via a dport register setting */
#define CPU_CLK_FREQ 80*1000000
/* Main peripheral clock
This is also the master frequency for the UART and the TIMER module
(before divisors applied to either.)
*/
#define APB_CLK_FREQ CPU_CLK_FREQ
#endif