Skip to content
Snippets Groups Projects
Commit 1dedfc60 authored by Thomas Eichinger's avatar Thomas Eichinger
Browse files

Merge pull request #920 from haukepetersen/fcpu_to_board

core/cpu/board: moved F_CPU define to board
parents 48d2ad28 7545eff7
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
#include <stdint.h>
#include "bitarithm.h"
#define F_CPU (96000000)
#define PIN_LED1 (BIT18)
#define PIN_LED2 (BIT20)
#define PIN_LED3 (BIT21)
......
......@@ -25,6 +25,10 @@
#include <stdint.h>
/* TODO: choose better value? */
#define F_CPU 1000000
void _native_LED_GREEN_OFF(void);
#define LED_GREEN_OFF (_native_LED_GREEN_OFF())
void _native_LED_GREEN_ON(void);
......
......@@ -23,6 +23,8 @@
#include <stdint.h>
#define F_CPU (24000000) ///< CPU target speed in Hz
#define CTUNE 0xb
#define IBIAS 0x1f
#define FTUNE 0x7
......
......@@ -29,6 +29,7 @@
#include "lifo.h"
#include "mutex.h"
#include "irq.h"
#include "board.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
......
......@@ -5,8 +5,6 @@
* @name Kernel configuration
* @{
*/
#define F_CPU 96000000
#define KERNEL_CONF_STACKSIZE_PRINTF (4096)
#ifndef KERNEL_CONF_STACKSIZE_DEFAULT
#define KERNEL_CONF_STACKSIZE_DEFAULT 1500
......
......@@ -203,8 +203,6 @@ static volatile struct CRM_struct * const CRM = (void*) (CRM_BASE);
/*-----------------------------------------------------------------*/
/* TIMERS */
#define F_CPU (24000000) ///< CPU target speed in Hz
/* Timer registers are all 16-bit wide with 16-bit access only */
#define TMR_OFFSET (0x20)
#define TMR_BASE (0x80007000)
......
......@@ -36,10 +36,6 @@ See the file LICENSE in the top level directory for more details.
#define WORDSIZE 16
/* CPU speed, to be defined in board.h */
//#define F_CPU (2457600ul)
//#define F_RC_OSCILLATOR (32768) ///< Frequency of internal RC oscillator
extern volatile int __inISR;
extern char __isr_stack[MSP430_ISR_STACK_SIZE];
......
......@@ -22,11 +22,6 @@
#ifndef _CPU_H
#define _CPU_H
#include "cpu-conf.h"
/* TODO: choose better value? */
#define F_CPU 1000000
/* TODO: remove once these have been removed from RIOT: */
void dINT(void);
void eINT(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment