aboutsummaryrefslogtreecommitdiff
path: root/sw/tc_eim.c
diff options
context:
space:
mode:
Diffstat (limited to 'sw/tc_eim.c')
-rw-r--r--sw/tc_eim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/tc_eim.c b/sw/tc_eim.c
index 0461f15..c812478 100644
--- a/sw/tc_eim.c
+++ b/sw/tc_eim.c
@@ -163,14 +163,14 @@ errout:
int tc_init(off_t offset)
{
- uint8_t buf[4] = { 0, 0, 0, CTRL_INIT_CMD };
+ uint8_t buf[4] = { 0, 0, 0, CTRL_INIT };
return tc_write(offset, buf, 4);
}
int tc_next(off_t offset)
{
- uint8_t buf[4] = { 0, 0, 0, CTRL_NEXT_CMD };
+ uint8_t buf[4] = { 0, 0, 0, CTRL_NEXT };
return tc_write(offset, buf, 4);
}
@@ -198,11 +198,11 @@ int tc_wait(off_t offset, uint8_t status, int *count)
int tc_wait_ready(off_t offset)
{
int limit = 256;
- return tc_wait(offset, STATUS_READY_BIT, &limit);
+ return tc_wait(offset, STATUS_READY, &limit);
}
int tc_wait_valid(off_t offset)
{
int limit = 256;
- return tc_wait(offset, STATUS_VALID_BIT, &limit);
+ return tc_wait(offset, STATUS_VALID, &limit);
}