项目作者: enbyted

项目描述 :
My template for Microchip's XC8, CMake based, projects
高级语言: C
项目地址: git://github.com/enbyted/xc8-cmake-template.git
创建时间: 2019-02-15T16:25:55Z
项目社区:https://github.com/enbyted/xc8-cmake-template

开源协议:MIT License

下载


xc8-cmake-template

My template for Microchip’s XC8, CMake based, projects

Usage

This project uses submodules, after cloning this project execute git submodule init to download dependencies.

Configuration for VS Code

You may have to adjust some things like processor type macros and compiler paths, but this should be a good starting point.
I have my c_cpp_properties.json configured as follows:

  1. {
  2. "configurations": [
  3. {
  4. "name": "Win32",
  5. "includePath": [
  6. "${workspaceFolder}/app/include/**",
  7. "C:\\Program Files (x86)\\Microchip\\xc8\\v2.00\\pic\\include",
  8. "C:\\Program Files (x86)\\Microchip\\xc8\\v2.00\\pic\\include\\c99"
  9. ],
  10. "defines": [
  11. "_DEBUG",
  12. "_GNU_SOURCE=0",
  13. "_BSD_SOURCE=0",
  14. "__16F18857",
  15. "__XC",
  16. "__XC8",
  17. "__XC8_VERSION=2000",
  18. "_16F18857",
  19. "_HTC_EDITION_=2",
  20. "__PICCPRO__",
  21. "__PICC__",
  22. "_PIC14E",
  23. "HI_TECH_C"
  24. ],
  25. "compilerPath": "C:/Program Files (x86)/Microchip/xc8/v2.00/bin/xc8.exe",
  26. "cStandard": "c99",
  27. "cppStandard": "c++17",
  28. "intelliSenseMode": "gcc-x64"
  29. }
  30. ],
  31. "version": 4
  32. }