X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Finclude%2Fgfports.h;h=c491601bfc6ca797b6b92949243e2c6592966cd7;hb=a1306ffe48d2020061f2f678f5554659673de425;hp=90214fa2e62fba966d8fe01ec4bd7c23b2c67928;hpb=757884d51cc6b119a3b1773873c446926b26011d;p=goodfet diff --git a/firmware/include/gfports.h b/firmware/include/gfports.h index 90214fa..c491601 100644 --- a/firmware/include/gfports.h +++ b/firmware/include/gfports.h @@ -6,32 +6,11 @@ #ifndef GFPORTS #define GFPORTS -#ifdef MSP430 -#include -#endif - -// N.B., only asm-clean CPP definitions allowed. - +//#include -//Use P3 instead of P5 for target I/O on chips without P5. -#ifndef __MSP430_HAS_PORT5__ -#ifndef __MSP430_HAS_PORT5_R__ -//#warning "No P5, using P3 instead. Will break 2618 and 1612 support." -#define P5OUT P3OUT -#define P5DIR P3DIR -#define P5REN P3REN -#define P5IN P3IN -#endif -#endif +// N.B., only asm-clean CPP definitions allowed. -//Use false P5REN for 1612. -#ifdef __MSP430_HAS_PORT5__ -#ifndef __MSP430_HAS_PORT5_R__ -//#warning "1xx, using fake P5REN for external pulling resistors." -#define P5REN P5OUT -#endif -#endif /* //Use these instead of the explicit names.