ERROR
`Arduino: 1.8.7 (Windows 7), Board: "Larduino w/ LGT8F328D-SSOP20"
Build options changed, rebuilding all
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp: In function 'void unlockWrite(volatile uint8_t*, uint8_t)':
C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:51:11: error: 'PMX1' was not declared in this scope
if(p == &PMX1)
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:52:9: error: 'PMX0' was not declared in this scope
cp = &PMX0;
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp: In function 'void pwmMode(uint8_t, uint8_t, uint8_t, uint8_t)':
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:146:8: error: 'TCKCSR' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:146:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:146:16: error: 'F2XEN' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:146:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:148:16: error: 'TC2XS0' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:148:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:149:24: error: 'TCKCSR' was not declared in this scope
} else if(bit_is_set(TCKCSR, TC2XS0)) {
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:149:32: error: 'TC2XS0' was not declared in this scope
} else if(bit_is_set(TCKCSR, TC2XS0)) {
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:152:16: error: 'F2XEN' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:152:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:162:4: error: 'DTR1L' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:163:4: error: 'DTR1H' was not declared in this scope
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:166:8: error: 'TCKCSR' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:166:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:166:16: error: 'F2XEN' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:166:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:168:16: error: 'TC2XS1' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:168:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:169:24: error: 'TCKCSR' was not declared in this scope
} else if(bit_is_set(TCKCSR, TC2XS1)) {
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:169:32: error: 'TC2XS1' was not declared in this scope
} else if(bit_is_set(TCKCSR, TC2XS1)) {
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:172:16: error: 'F2XEN' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:172:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:175:13: error: 'TCCR3B' was not declared in this scope
pTCCRX = &TCCR3B;
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:177:8: error: 'TCCR3C' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:177:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:177:16: error: 'DTEN3' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:177:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:178:8: error: 'TCCR3A' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:178:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:178:16: error: 'COM3B0' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:178:4: note: in expansion of macro 'cbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:180:8: error: 'TCCR3C' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:180:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:180:16: error: 'DTEN3' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:180:4: note: in expansion of macro 'sbi'
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:181:4: error: 'TCCR3A' was not declared in this scope
TCCR3A = (TCCR3A & ~_BV(COM3B0)) | (wmode & 0x10);
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:181:28: error: 'COM3B0' was not declared in this scope
TCCR3A = (TCCR3A & ~_BV(COM3B0)) | (wmode & 0x10);
^
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:182:4: error: 'DTR3A' was not declared in this scope
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:183:4: error: 'DTR3B' was not declared in this scope
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp: In function 'uint16_t pwmFrequency(uint8_t, uint32_t)':
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:224:22: error: 'TCKCSR' was not declared in this scope
boost = bit_is_set(TCKCSR, TC2XF1);
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:224:30: error: 'TC2XF1' was not declared in this scope
boost = bit_is_set(TCKCSR, TC2XF1);
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:226:12: error: 'ICR3L' was not declared in this scope
pICRX = &ICR3L;
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:227:10: error: 'TCCR3B' was not declared in this scope
csxs = TCCR3B & 0x7;
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\wdt.h:41,
from C:\Users\Duong\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:19:
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp: In function 'uint32_t pwmResolution(uint8_t, uint8_t)':
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:276:22: error: 'TCKCSR' was not declared in this scope
boost = bit_is_set(TCKCSR, TC2XF1);
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:276:30: error: 'TC2XF1' was not declared in this scope
boost = bit_is_set(TCKCSR, TC2XF1);
C:\Users\myuser\Documents\Arduino\hardware\LGT\avr\cores\lgt8f\main.cpp:278:10: error: 'TCCR3B' was not declared in this scope
csxs = TCCR3B & 0x7;
exit status 1
Error compiling for board Larduino w/ LGT8F328D-SSOP20.`