X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Finclude%2Fplatform.h;h=067d3f6a5f3512b1cfa935a73b60edf65d30f002;hb=b8a16dae1040606e2c6bddb922dd21c28e8fcc52;hp=f8efd75f4e3890eb8a66d5d4865adf91c2d4ba84;hpb=9fff819ee3088834ef10c050bcdc0bc5f93dcd2a;p=goodfet diff --git a/firmware/include/platform.h b/firmware/include/platform.h index f8efd75..067d3f6 100644 --- a/firmware/include/platform.h +++ b/firmware/include/platform.h @@ -1,18 +1,12 @@ -//! \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 - - -//Use P3 instead of P5 for target I/O on chips without P5. -//#ifndef P5OUT -//#warning "P5OUT undefined, using P3 instead." -//#define P5OUT P3OUT -//#define P5DIR P3DIR -//#define P5REN P3REN -//#define P5IN P3IN -//#endif +#include "gfports.h" unsigned char serial_rx(); void serial_tx(unsigned char); @@ -27,9 +21,11 @@ void setbaud1(unsigned char); void msp430_init_uart(); //! Initialize the DCO Clock void msp430_init_dco(); +//! Called by monitor() when the DCO is correct and communication established. +void msp430_init_dco_done(); //LED on P1.0 #define PLEDOUT P1OUT #define PLEDDIR P1DIR -#define PLEDPIN 0x1 +#define PLEDPIN BIT0