make xtal trimming part of the lowlevel init routines.

This commit is contained in:
Mariano Alvira 2010-03-16 10:40:25 -04:00
parent 092a182a5d
commit 334c316c0a
3 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
#ifndef LOWLEVEL_H
#define LOWLEVEL_H
#define trim_xtal() pack_XTAL_CNTL(CTUNE_4PF, CTUNE, FTUNE, IBIAS);
void default_vreg_init(void);
void uart1_init(uint16_t inc, uint16_t mod, uint8_t samp);
#endif

View File

@ -23,7 +23,7 @@ void main(void) {
*GPIO_DATA_SEL0 = ( 1 << LED );
/* trim the reference osc. to 24MHz */
pack_XTAL_CNTL(CTUNE_4PF, CTUNE, FTUNE, IBIAS);
trim_xtal();
uart_init(INC, MOD, SAMP);

View File

@ -33,7 +33,7 @@ void main(void) {
volatile packet_t *p;
/* trim the reference osc. to 24MHz */
pack_XTAL_CNTL(CTUNE_4PF, CTUNE, FTUNE, IBIAS);
trim_xtal();
uart_init(INC, MOD, SAMP);