2 Copyright (C) 2012 jaseg <s@jaseg.de>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 3 as published by the Free Software Foundation.
10 #include <avr/interrupt.h>
19 #include "comm_handle.h"
30 while((v
= getchar()) >= 0){
40 #if defined(__MSPGCC__)
41 WDTCTL
= WDTPW
| WDTHOLD
; //Disable WDT
44 DCOCTL
|= DCO1
| DCO0
;
45 BCSCTL1
|= RSEL3
| RSEL2
| RSEL0
;
47 #ifndef __MSP430G2553__
48 #error No port setup for that part. Please fix this!
49 #endif//__MSP430G2553__
50 //UART io setup for the msp430g2553 (RX: P1.1, TX: P1.2)
53 #elif defined(__AVR__)//__MSPGCC__
54 uart_init(UART_BAUD_SELECT_DOUBLE_SPEED(9600, F_CPU
));
62 #elif defined(__MSPGCC__)//__AVR__