Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5c81101ea2df29419c93661d554e9e265bc48645 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Thomas Schuetz (initial contribution)
 *
 *******************************************************************************/

#include "msp430g2553.h"
#include "platform/etTimer.h"


/* forward declarations */


/* implemenatation for eTrice interfaces*/

void etUserEntry(void){
	  //Use WDT as interrupt timer
	  WDTCTL = WDTPW + 0x16;

	  DCOCTL =  CALDCO_16MHZ;
	  BCSCTL1 = CALBC1_16MHZ;
	  BCSCTL2 = 0x00;
	  BCSCTL3 = 0x0C;

	  P1DIR = 0x01;

	  IE1 |= 1;

	  etTimer_init();

	  _enable_interrupt();


}

void etUserPreRun(void){
	_enable_interrupt();
}

void etUserPostRun(void){ }
void etUserExit(void){ }


/* platform specific functions */


Back to the top