mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Fix compiler complaint about VPORTA_OUT in asm
This commit is contained in:
+6
-2
@@ -41,8 +41,12 @@
|
||||
#define AVC_OUT_DIS() \
|
||||
cbi(VPORTA_DIR, 6); \
|
||||
sbi(AC2_CTRLA, AC_ENABLE_bp); // Read mode
|
||||
#define AVC_SET_LOGICAL_1() __asm__ __volatile__("sbi VPORTA_OUT, 6;");
|
||||
#define AVC_SET_LOGICAL_0() __asm__ __volatile__("cbi VPORTA_OUT, 6;");
|
||||
#define AVC_SET_LOGICAL_1() \
|
||||
__asm__ __volatile__( \
|
||||
"sbi %[vporta_out], 6;" ::[vporta_out] "I"(_SFR_IO_ADDR(VPORTA_OUT)));
|
||||
#define AVC_SET_LOGICAL_0() \
|
||||
__asm__ __volatile__( \
|
||||
"cbi %[vporta_out], 6;" ::[vporta_out] "I"(_SFR_IO_ADDR(VPORTA_OUT)));
|
||||
|
||||
byte CD_ID_1;
|
||||
byte CD_ID_2;
|
||||
|
||||
Reference in New Issue
Block a user