fraisemaster.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*********************************************************************
  2. *
  3. * Fraise master firmware v2.1
  4. *
  5. *********************************************************************
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software Foundation,
  16. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. * Copyright (c) Antoine Rousseau 2009-2011
  19. ********************************************************************/
  20. #ifndef FRAISEMASTER_H
  21. #define FRAISEMASTER_H
  22. /** E X T E R N S ************************************************************/
  23. /** P U B L I C P R O T O T Y P E S *****************************************/
  24. #ifndef BYTE
  25. //typedef unsigned char BYTE;
  26. #endif
  27. void FraiseInit(void);
  28. void FraiseService(void); // to be called by main loop
  29. void FraiseISR(void); // interrupt service routine (high priority)
  30. void FraiseSOF(void); // called on usb start of frame
  31. void FrGetLineFromUsb(void);
  32. #define LINE_FROM_USB_MAXLEN 64
  33. extern unsigned char LineFromUsb[LINE_FROM_USB_MAXLEN];
  34. extern unsigned char LineFromUsbLen;
  35. extern unsigned char FrGotLineFromUsb;
  36. //extern volatile unsigned char PollCount;
  37. //void FrSendtoUsb(void);
  38. #endif //FRAISEMASTER_H