.Sketch1.vsarduino.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. Editor: https://www.visualmicro.com/
  3. This file is for intellisense purpose only.
  4. 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
  5. The contents of the _vm sub folder can be deleted prior to publishing a project
  6. 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!).
  7. 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
  8. Hardware: Arduino Yún, Platform=avr, Package=arduino
  9. */
  10. #if defined(_VMICRO_INTELLISENSE)
  11. #ifndef _VSARDUINO_H_
  12. #define _VSARDUINO_H_
  13. #define __AVR_atmega32u4__
  14. #define __AVR_ATmega32U4__
  15. #define __AVR_ATmega32u4__
  16. #define F_CPU 16000000L
  17. #define ARDUINO 108015
  18. #define ARDUINO_AVR_YUN
  19. #define ARDUINO_ARCH_AVR
  20. #define USB_VID 0x2341
  21. #define USB_PID 0x8041
  22. #define __cplusplus 201103L
  23. #define _Pragma(x)
  24. #define __AVR__
  25. #define __inline__
  26. #define __asm__(...)
  27. #define __extension__
  28. #define __inline__
  29. #define __volatile__
  30. // Redefine __cplusplus to correct version: https://www.visualmicro.com/forums/YaBB.pl?num=1592217268
  31. #undef __cplusplus
  32. #define __cplusplus 201103L
  33. //#define GCC_VERSION 40902
  34. //https://www.visualmicro.com/forums/YaBB.pl?num=1569762585/5#5
  35. #define __GNUC__ 5
  36. #define __GNUC_MINOR__ 4
  37. #define __GNUC_PATCHLEVEL__ 0
  38. #define GCC_VERSION ((__GNUC__*10000)+(__GNUC_MINOR__*100)+__GNUC_PATCHLEVEL__))
  39. #define volatile(va_arg)
  40. #define _CONST
  41. #define __builtin_va_start
  42. #define __builtin_va_end
  43. #define __attribute__(...)
  44. #define NOINLINE __attribute__((noinline))
  45. #define prog_void
  46. #define PGM_VOID_P int
  47. #ifndef __builtin_constant_p
  48. #define __builtin_constant_p __attribute__((__const__))
  49. #endif
  50. #ifndef __builtin_strlen
  51. #define __builtin_strlen __attribute__((__const__))
  52. #endif
  53. #define NEW_H
  54. typedef void *__builtin_va_list;
  55. //extern "C" void __cxa_pure_virtual() {;}
  56. typedef int div_t;
  57. typedef int ldiv_t;
  58. typedef void *__builtin_va_list;
  59. //extern "C" void __cxa_pure_virtual() {;}
  60. #include "arduino.h"
  61. #include <pins_arduino.h>
  62. //#undef F
  63. //#define F(string_literal) ((const PROGMEM char *)(string_literal))
  64. #undef PSTR
  65. #define PSTR(string_literal) ((const PROGMEM char *)(string_literal))
  66. //typedef unsigned char uint8_t;
  67. //typedef unsigned int uint8_t;
  68. #define pgm_read_byte_near(address_short) uint8_t()
  69. #define pgm_read_byte(address_short) uint8_t()
  70. #define pgm_read_word(address_short) uint16_t()
  71. #define pgm_read_dword(address_short) uint32_t()
  72. #define pgm_read_float(address_short) float()
  73. #define pgm_read_ptr(address_short) short()
  74. #include "Sketch1.ino"
  75. #endif
  76. #endif