LPC17xx USBDEV driver now compiles (still untested)

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2805 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-07-16 03:01:05 +00:00
parent 33d24d9e40
commit 703091be5a
9 changed files with 203 additions and 45 deletions
+7 -7
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/mmcsd/mmcsd_spi.c
*
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -114,12 +114,12 @@
* ticks per second.
*/
#define MMCSD_DELAY_10MS (CLK_TCK/100 + 1)
#define MMCSD_DELAY_50MS (CLK_TCK/20 + 1)
#define MMCSD_DELAY_100MS (CLK_TCK/10 + 1)
#define MMCSD_DELAY_250MS (CLK_TCK/4 + 1)
#define MMCSD_DELAY_500MS (CLK_TCK/2 + 1)
#define MMCSD_DELAY_1SEC (CLK_TCK + 1)
#define MMCSD_DELAY_10MS (CLK_TCK/100 + 1)
#define MMCSD_DELAY_50MS (CLK_TCK/20 + 1)
#define MMCSD_DELAY_100MS (CLK_TCK/10 + 1)
#define MMCSD_DELAY_250MS (CLK_TCK/4 + 1)
#define MMCSD_DELAY_500MS (CLK_TCK/2 + 1)
#define MMCSD_DELAY_1SEC (CLK_TCK + 1)
#define MMCSD_DELAY_10SEC (10 * CLK_TCK + 1)
#define ELAPSED_TIME(t) (g_system_timer-(t))