source: trunk/firmware/openos/drivers/gina/board.c @ 1299

Revision 1299, 1.0 KB checked in by thomas, 20 months ago (diff)

renamed timers into opentimers

Line 
1/**
2\brief GINA's board service package
3
4\author Thomas Watteyne <watteyne@eecs.berkeley.edu>, August 2010
5*/
6
7#include "board.h"
8#include "leds.h"
9#include "msp430x26x.h"
10#include "opentimers.h"
11#include "ieee154etimer.h"
12#include "openserial.h"
13#include "radio.h"
14#include "i2c.h"
15
16//=========================== variables =======================================
17
18//=========================== prototypes ======================================
19
20//=========================== public ==========================================
21
22void board_init() {
23   // disable watchdog timer
24   WDTCTL  = WDTPW + WDTHOLD;
25   
26   // clock MSP at 16MHz
27   BCSCTL1 = CALBC1_16MHZ;
28   DCOCTL  = CALDCO_16MHZ;
29   
30   // low-level drivers
31   leds_init();
32   i2c_init();
33   opentimers_init();
34   ieee154etimer_init();
35   openserial_init();
36   
37   // high-level drivers
38   radio_init();
39   
40   // set 'general interrupt enable' bit
41   __bis_SR_register(GIE);
42}
43
44//=========================== private =========================================
Note: See TracBrowser for help on using the repository browser.