Skip to content

Commit

Permalink
SQUASH: Revert "Remove AVROPENDOUS support"
Browse files Browse the repository at this point in the history
This reverts commit 6978906.

See billroy#20 (comment)
  • Loading branch information
matthijskooijman committed Jan 31, 2014
1 parent 82246a1 commit e118623
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions src/bitlash.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,58 @@
#define USER_FUNCTIONS
#endif

///////////////////////////////////////////////////////
//
// AVROPENDOUS and TEENSY BUILD OPTIONS
//
#if defined(__AVR_AT90USB162__)

//#define AVROPENDOUS_BUILD
#if defined(AVROPENDOUS_BUILD)
#define MINIMUM_FREE_RAM 20
#define NUMPINS 24
#undef HARDWARE_SERIAL_TX
#undef SOFTWARE_SERIAL_TX
void beginSerial(unsigned long baud) { ; }
#define serialAvailable usbAvailable
#define serialRead usbRead
#define serialWrite usbWrite
#include <util/delay.h>
#endif // defined AVRO

#define TEENSY
#ifdef TEENSY
#endif // defined TEENSY

#endif // defined '162


///////////////////////////////////////////////////////
//
// ATMega32U4 BUILD OPTIONS
//
#if defined(__AVR_ATmega32U4__)

//#define AVROPENDOUS_BUILD
#if defined(AVROPENDOUS_BUILD)
#define MINIMUM_FREE_RAM 50
#define NUMPINS 40
#undef HARDWARE_SERIAL_TX
#undef SOFTWARE_SERIAL_TX
void beginSerial(unsigned long baud) { ; }
#define serialAvailable usbAvailable
#define serialRead usbRead
#define serialWrite usbWrite
#include <util/delay.h>
#endif // AVRO

#define TEENSY2
#if defined(TEENSY2)
#endif // TEENSY2

#endif // defined '32U4


///////////////////////////////////////////////////////
//
// SD CARD SUPPORT: Enable the SDFILE define for SD card script-in-file support
Expand Down Expand Up @@ -262,6 +314,18 @@ typedef int numvar;
typedef unsigned int unumvar;
#endif // arduino_build


#ifdef AVROPENDOUS_BUILD
// USB integration
uint8_t usbAvailable(void);
int usbRead(void);
void usbWrite(uint8_t);
void usbMouseOn(void);
void usbMouseOff(void);
void connectBitlash(void);
#endif // avropendous


// Function prototypes


Expand Down

0 comments on commit e118623

Please sign in to comment.