fraisemaster.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. typedef unsigned char BYTE;
  25. void FraiseInit(void);
  26. void FraiseService(void); // to be called by main loop
  27. void FraiseISR(void); // interrupt service routine (high priority)
  28. void FraiseSOF(void); // called on usb start of frame
  29. void FrGetLineFromUsb(void);
  30. #define LINE_FROM_USB_MAXLEN 64
  31. extern BYTE LineFromUsb[LINE_FROM_USB_MAXLEN];
  32. extern BYTE LineFromUsbLen;
  33. extern BYTE FrGotLineFromUsb;
  34. //extern volatile unsigned char PollCount;
  35. //void FrSendtoUsb(void);
  36. #endif //FRAISEMASTER_H