mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
make xtal trimming part of the lowlevel init routines.
This commit is contained in:
parent
092a182a5d
commit
334c316c0a
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user