X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fplatform.h;h=113549c17c26c8c38b58dd896a41a722671fee73;hp=abc9ef8ffc7e16f1501c0af993fbda68f93cc6e9;hb=64712ca1ad4da7b006e1381c0909b409d24c9995;hpb=48d828330be887dcd02ffcf0f7e326d5626f5845 diff --git a/firmware/include/platform.h b/firmware/include/platform.h index abc9ef8..113549c 100644 --- a/firmware/include/platform.h +++ b/firmware/include/platform.h @@ -1,10 +1,33 @@ -//! \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 +#include +#include + +#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 - -