Changed ATmega168 port to ATmega328 on Uno R3 with DFR0259 RS485 shield (#784)
* Changed ATmega168 example for ATmega328 on Arduino Uno R3 with DFR0259 RS485 shield. Added ADC interface from BDK port and mapped to some AV objects. Removed MS/TP MAC address DIP switch GPIO and moved MS/TP configuration to AV objects. Added AV units property. Added some Uno R3 Digital Inputs and outputs mapped to some BV. Added AVR EEPROM from BDK port and mapped some non-volatile data including MAC address and max manager and baud rate, device ID and names and description and location.
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "MinGW64",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${workspaceFolder}/../../src",
|
||||
"C:/msys64/mingw64/avr/include/"
|
||||
],
|
||||
"defines": [
|
||||
"__GNUC__",
|
||||
"__AVR_ATmega328P__"
|
||||
],
|
||||
"compilerPath": "C:/msys64/mingw64/bin/avr-gcc.exe",
|
||||
"cStandard": "gnu11",
|
||||
"cppStandard": "gnu++14",
|
||||
"intelliSenseMode": "windows-gcc-x64",
|
||||
"compilerArgs": [
|
||||
"-mmcu=atmega328p",
|
||||
// Will ensure MCU defines are set correctly
|
||||
"-DF_CPU=16000000UL",
|
||||
// Will ensure F_CPU is set correctly
|
||||
"-Os" // Will avoid optimization warnings re: _delay
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${workspaceFolder}/../../src",
|
||||
"/usr/lib/avr/include"
|
||||
],
|
||||
"defines": [
|
||||
"__GNUC__",
|
||||
"__AVR_ATmega328P__"
|
||||
],
|
||||
"compilerPath": "/usr/bin/avr-gcc",
|
||||
"cStandard": "gnu11",
|
||||
"cppStandard": "gnu++14",
|
||||
"intelliSenseMode": "${default}",
|
||||
"compilerArgs": [
|
||||
"-mmcu=atmega328p",
|
||||
// Will ensure MCU defines are set correctly
|
||||
"-DF_CPU=16000000UL",
|
||||
// Will ensure F_CPU is set correctly
|
||||
"-Os" // Will avoid optimization warnings re: _delay
|
||||
]
|
||||
}
|
||||
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
Reference in New Issue
Block a user