mirror of
https://github.com/halleysfifthinc/Toyota-AVC-LAN
synced 2025-06-07 16:06:12 +00:00
Fix compiler complaint about VPORTA_OUT in asm
This commit is contained in:
parent
84fa2fdebc
commit
14bf33bb97
@ -41,8 +41,12 @@
|
|||||||
#define AVC_OUT_DIS() \
|
#define AVC_OUT_DIS() \
|
||||||
cbi(VPORTA_DIR, 6); \
|
cbi(VPORTA_DIR, 6); \
|
||||||
sbi(AC2_CTRLA, AC_ENABLE_bp); // Read mode
|
sbi(AC2_CTRLA, AC_ENABLE_bp); // Read mode
|
||||||
#define AVC_SET_LOGICAL_1() __asm__ __volatile__("sbi VPORTA_OUT, 6;");
|
#define AVC_SET_LOGICAL_1() \
|
||||||
#define AVC_SET_LOGICAL_0() __asm__ __volatile__("cbi VPORTA_OUT, 6;");
|
__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_1;
|
||||||
byte CD_ID_2;
|
byte CD_ID_2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user