X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fplatform.h;h=87b18cca0c5dafb5c22f81ea26ade2903ae7718d;hp=fe42d4f2cff3cefb7a3d1b4d8297d4f8a38c2565;hb=f10e55ab25dfe0b4114a1700920a1433708e8fcd;hpb=bb855f2f31e89ae9bbe5d953fe431b9d3c35e929 diff --git a/firmware/include/platform.h b/firmware/include/platform.h index fe42d4f..87b18cc 100644 --- a/firmware/include/platform.h +++ b/firmware/include/platform.h @@ -1,10 +1,29 @@ -//! \file platform.h +/*! \file platform.h + \author Travis Goodspeed + \brief Port and baud rate definitions. + + The functions specified here are defined in the platform + definition file, such as msp430x1612.c or msp430x2618.c. +*/ +#include "gfports.h" + +unsigned char serial_rx(); +void serial_tx(unsigned char); + +unsigned char serial1_rx(); +void serial1_tx(unsigned char); + +void setbaud(unsigned char); +void setbaud1(unsigned char); + +//! Initialize the UART +void msp430_init_uart(); +//! Initialize the DCO Clock +void msp430_init_dco(); //LED on P1.0 #define PLEDOUT P1OUT #define PLEDDIR P1DIR #define PLEDPIN 0x1 -// -