uracoli-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [uracoli-devel] Baud rates


From: Axel Wachtler
Subject: Re: [uracoli-devel] Baud rates
Date: Wed, 16 May 2012 07:05:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15

Hallo,

On 15.05.2012 21:13, Joerg Wunsch wrote:
As Daniel Thiele wrote:

Probably the internal RC oscillator is calibrated on startup, using
CLKM of the transceiver as reference frequency.

The major point here is to calibrate the RC oscillator not to
8 MHz but to 7.37 MHz (a "baudrate friendly" frequency).

Looks if we have a motivation for an OSCCAL routine. Here is an initial
idea, maybe we use an inline function in board*.h files that is wrapped
by a macro.

board_xxx.h
=======================================
static inline void calibrate_rc_osc(void)
{
 /* some code that depends on F_CPU */
}

#define CALIBRATE_RC_OSC() calibrate_rc_osc()
=======================================

board.h
=======================================
#ifndef CALIBRATE_RC_OSC
 #define CALIBRATE_RC_OSC()
#endif
=======================================

Axel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]