mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Macro clock_systimer replaces direct access to g_system_timer variable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3500 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* drivers/mmcsd/mmcsd_spi.c
|
||||
*
|
||||
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2010, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -122,8 +122,8 @@
|
||||
#define MMCSD_DELAY_1SEC (CLK_TCK + 1)
|
||||
#define MMCSD_DELAY_10SEC (10 * CLK_TCK + 1)
|
||||
|
||||
#define ELAPSED_TIME(t) (g_system_timer-(t))
|
||||
#define START_TIME (g_system_timer)
|
||||
#define ELAPSED_TIME(t) (clock_systimer()-(t))
|
||||
#define START_TIME (clock_systimer())
|
||||
|
||||
/* SD read timeout: ~100msec, Write Time out ~250ms. Units of clock ticks */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user