.drumduino_firmware.vsarduino.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. Editor: http://www.visualmicro.com
  3. visual micro and the arduino ide ignore this code during compilation. this code is automatically maintained by visualmicro, manual changes to this file will be overwritten
  4. the contents of the Visual Micro sketch sub folder can be deleted prior to publishing a project
  5. all non-arduino files created by visual micro and all visual studio project or solution files can be freely deleted and are not required to compile a sketch (do not delete your own code!).
  6. note: debugger breakpoints are stored in '.sln' or '.asln' files, knowledge of last uploaded breakpoints is stored in the upload.vmps.xml file. Both files are required to continue a previous debug session without needing to compile and upload again
  7. Hardware: Arduino Duemilanove or Diecimila w/ ATmega328, Platform=avr, Package=arduino
  8. */
  9. #ifndef _VSARDUINO_H_
  10. #define _VSARDUINO_H_
  11. #define __AVR_ATmega328p__
  12. #define __AVR_ATmega328P__
  13. #define ARDUINO 163
  14. #define ARDUINO_MAIN
  15. #define __AVR__
  16. #define __avr__
  17. #define F_CPU 16000000L
  18. #define __cplusplus
  19. #define GCC_VERSION 40801
  20. #define ARDUINO_ARCH_AVR
  21. #define ARDUINO_AVR_DUEMILANOVE
  22. #define __inline__
  23. #define __asm__(x)
  24. #define __extension__
  25. //#define __ATTR_PURE__
  26. //#define __ATTR_CONST__
  27. #define __inline__
  28. //#define __asm__
  29. #define __volatile__
  30. #define GCC_VERSION 40801
  31. #define volatile(va_arg)
  32. typedef void *__builtin_va_list;
  33. #define __builtin_va_start
  34. #define __builtin_va_end
  35. //#define __DOXYGEN__
  36. #define __attribute__(x)
  37. #define NOINLINE __attribute__((noinline))
  38. #define prog_void
  39. #define PGM_VOID_P int
  40. #define NEW_H
  41. /*
  42. #ifndef __ATTR_CONST__
  43. #define __ATTR_CONST__ __attribute__((__const__))
  44. #endif
  45. #ifndef __ATTR_MALLOC__
  46. #define __ATTR_MALLOC__ __attribute__((__malloc__))
  47. #endif
  48. #ifndef __ATTR_NORETURN__
  49. #define __ATTR_NORETURN__ __attribute__((__noreturn__))
  50. #endif
  51. #ifndef __ATTR_PURE__
  52. #define __ATTR_PURE__ __attribute__((__pure__))
  53. #endif
  54. */
  55. typedef unsigned char byte;
  56. extern "C" void __cxa_pure_virtual() {;}
  57. #include <arduino.h>
  58. #include <pins_arduino.h>
  59. #undef F
  60. #define F(string_literal) ((const PROGMEM char *)(string_literal))
  61. #undef cli
  62. #define cli()
  63. #define pgm_read_byte(address_short)
  64. #define pgm_read_word(address_short)
  65. #define pgm_read_word2(address_short)
  66. #define digitalPinToPort(P)
  67. #define digitalPinToBitMask(P)
  68. #define digitalPinToTimer(P)
  69. #define analogInPinToBit(P)
  70. #define portOutputRegister(P)
  71. #define portInputRegister(P)
  72. #define portModeRegister(P)
  73. #include <drumduino_firmware.ino>
  74. #endif