X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/93ef9c984b4bcee40fbebbb3af94f5a8537141a6..4e95a8113be1f7fb1538faec4d0d84e5c3fd4979:/lincan/src/c_can.c diff --git a/lincan/src/c_can.c b/lincan/src/c_can.c index ed3991c..9929467 100644 --- a/lincan/src/c_can.c +++ b/lincan/src/c_can.c @@ -19,10 +19,10 @@ extern int stdmask; extern int extmask; -can_spinlock_t c_can_spwlock = SPIN_LOCK_UNLOCKED; // Spin lock for write operations -can_spinlock_t c_can_sprlock = SPIN_LOCK_UNLOCKED; // Spin lock for read operations -can_spinlock_t c_can_if1lock = SPIN_LOCK_UNLOCKED; // spin lock for the if1 register -can_spinlock_t c_can_if2lock = SPIN_LOCK_UNLOCKED; // spin lcok for the if2 register +CAN_DEFINE_SPINLOCK(c_can_spwlock); // Spin lock for write operations +CAN_DEFINE_SPINLOCK(c_can_sprlock); // Spin lock for read operations +CAN_DEFINE_SPINLOCK(c_can_if1lock); // spin lock for the if1 register +CAN_DEFINE_SPINLOCK(c_can_if2lock); // spin lcok for the if2 register /** * c_can_enable_configuration - enable chip configuration mode