From afc017abc3709a96407ebf0863172d61ec0d434e Mon Sep 17 00:00:00 2001 From: Fernando de Lio Date: Mon, 9 Mar 2020 16:56:20 -0300 Subject: [PATCH] Updated to v2.10 --- .vscode/c_cpp_properties.json | 39 +++++------------------------------ .vscode/tasks.json | 10 --------- Build-Samples.cmd | 4 ---- Build.cmd | 2 +- README.md | 2 ++ main.c | 6 ++++++ samples/LedBlink.c | 22 -------------------- 7 files changed, 14 insertions(+), 71 deletions(-) delete mode 100644 Build-Samples.cmd delete mode 100644 samples/LedBlink.c diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 09801a4..bee2411 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -1,48 +1,19 @@ { "configurations": [ - { - "name": "Mac", - "includePath": [ - "${workspaceFolder}" - ], - "defines": [], - "intelliSenseMode": "clang-x64", - "browse": { - "path": [ - "${workspaceFolder}" - ], - "limitSymbolsToIncludedHeaders": true, - "databaseFilename": "" - }, - "macFrameworkPath": [ - - ] - }, - { - "name": "Linux", - "includePath": [], - "defines": [], - "intelliSenseMode": "clang-x64", - "browse": { - "path": [], - "limitSymbolsToIncludedHeaders": true, - "databaseFilename": "" - } - }, { "name": "Windows", "includePath": [ "${workspaceFolder}", - "C:/Program Files (x86)/Microchip/xc8/v1.45/include/*", - "C:/Program Files (x86)/Microchip/xc8/v1.45/include/legacy/*" + "C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/*", + "C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/legacy/*" ], "defines": [], "intelliSenseMode": "clang-x64", "browse": { "path": [ "${workspaceFolder}", - "C:/Program Files (x86)/Microchip/xc8/v1.45/include/*", - "C:/Program Files (x86)/Microchip/xc8/v1.45/include/legacy/*" + "C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/*", + "C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/legacy/*" ], "databaseFilename": "", "limitSymbolsToIncludedHeaders": true @@ -51,5 +22,5 @@ "cppStandard": "c++17" } ], - "version": 3 + "version": 4 } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 986a07b..dcb198c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -12,16 +12,6 @@ "16f84" // Update this to Chip you're targeting. ] } - }, - { - "label": "Build Samples", - "type": "shell", - "windows": { - "command": ".\\Build-Samples", - "args": [ - "16f84" // Update this to Chip you're targeting. - ] - } } ] } \ No newline at end of file diff --git a/Build-Samples.cmd b/Build-Samples.cmd deleted file mode 100644 index f5c6e74..0000000 --- a/Build-Samples.cmd +++ /dev/null @@ -1,4 +0,0 @@ - -mkdir output - -%XC_DIR%\xc8.exe --chip=%1 --outdir=".\output" ".\samples\LedBlink.c" \ No newline at end of file diff --git a/Build.cmd b/Build.cmd index eaea6c3..420ac21 100644 --- a/Build.cmd +++ b/Build.cmd @@ -1,4 +1,4 @@ mkdir output -%XC_DIR%\xc8.exe --chip=%1 --outdir=".\output" ".\main.c" \ No newline at end of file +xc8.exe --chip=%1 --outdir=".\output" ".\main.c" \ No newline at end of file diff --git a/README.md b/README.md index dffdbac..06299c5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +## XC8.exe SHOULD BE ON THE PATH!!! + ## PIC MCU on VSCode: This repository contains configuration files to setup development environment for PIC Microcontrollers with Microchip XC compiler on Visual Studio Code. diff --git a/main.c b/main.c index ffa2fe4..9bd0373 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,9 @@ +#include +#include + +#define _XTAL_FREQ 1000000 // 1Mhz + + void main() { diff --git a/samples/LedBlink.c b/samples/LedBlink.c deleted file mode 100644 index 17e3008..0000000 --- a/samples/LedBlink.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Led Blink example on PIC16F84A. - * - */ -#include -#include - -#define _XTAL_FREQ 1000000 // 1Mhz - -void main() { - - TRISB = 0x00; - - while(1) { - PORTB = 0x01; - __delay_ms(250); - PORTB = 0x00; - __delay_ms(250); - } - - -} \ No newline at end of file