.Hauptprojekt.vsarduino.h 2.4 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: Pololu A-Star 32U4, Platform=avr, Package=pololu
  8. */
  9. #if defined(_VMICRO_INTELLISENSE)
  10. #ifndef _VSARDUINO_H_
  11. #define _VSARDUINO_H_
  12. #define __AVR_ATmega32u4__
  13. #define __AVR_ATmega32U4__
  14. #define F_CPU 16000000L
  15. #define ARDUINO 10802
  16. #define ARDUINO_AVR_A_STAR_32U4
  17. #define ARDUINO_ARCH_AVR
  18. #define USB_VID 0x1ffb
  19. #define USB_PID 0x2300
  20. #define __cplusplus 201103L
  21. #define __AVR__
  22. #define __inline__
  23. #define __asm__(...)
  24. #define __extension__
  25. #define __inline__
  26. #define __volatile__
  27. #define GCC_VERSION 40902
  28. #define __cplusplus 201103L
  29. #undef __cplusplus
  30. #define __cplusplus 201103L
  31. #define volatile(va_arg)
  32. #define _CONST
  33. #define __builtin_va_start
  34. #define __builtin_va_end
  35. #define __attribute__(...)
  36. #define NOINLINE __attribute__((noinline))
  37. #define prog_void
  38. #define PGM_VOID_P int
  39. #ifndef __builtin_constant_p
  40. #define __builtin_constant_p __attribute__((__const__))
  41. #endif
  42. #ifndef __builtin_strlen
  43. #define __builtin_strlen __attribute__((__const__))
  44. #endif
  45. #define NEW_H
  46. typedef void *__builtin_va_list;
  47. //extern "C" void __cxa_pure_virtual() {;}
  48. typedef int div_t;
  49. typedef int ldiv_t;
  50. typedef void *__builtin_va_list;
  51. //extern "C" void __cxa_pure_virtual() {;}
  52. #include <arduino.h>
  53. #include <pins_arduino.h>
  54. #undef F
  55. #define F(string_literal) ((const PROGMEM char *)(string_literal))
  56. #undef PSTR
  57. #define PSTR(string_literal) ((const PROGMEM char *)(string_literal))
  58. #define pgm_read_byte(address_short) uint8_t()
  59. #define pgm_read_word(address_short) uint16_t()
  60. #define pgm_read_dword(address_short) uint32_t()
  61. #define pgm_read_float(address_short) float()
  62. #define pgm_read_ptr(address_short) short()
  63. #include "Hauptprojekt.ino"
  64. #endif
  65. #endif