aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-12 15:18:56 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-12 15:18:56 +0000
commiteac15a4720dd9d514ab7d683fb68797c174293cc (patch)
tree17de2185cab9be6f29164a2336855a57b8495627 /nuttx/include
parent1b7dad5a765bc86ee194f72b7a75d76b93e87943 (diff)
downloadpx4-firmware-eac15a4720dd9d514ab7d683fb68797c174293cc.tar.gz
px4-firmware-eac15a4720dd9d514ab7d683fb68797c174293cc.tar.bz2
px4-firmware-eac15a4720dd9d514ab7d683fb68797c174293cc.zip
Fix MMC/SD support for Wildfire board; Granule allocator can now be used from intrrupt handler
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5134 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/gran.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/gran.h b/nuttx/include/nuttx/gran.h
index 8e009ab81..f3a6d0fe9 100644
--- a/nuttx/include/nuttx/gran.h
+++ b/nuttx/include/nuttx/gran.h
@@ -2,7 +2,7 @@
* include/nuttx/gran.h
* General purpose granule memory allocator.
*
- * Copyright (C) 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -57,6 +57,11 @@
* granule allocator (i.e., gran_initialize will be called only once.
* In this case, (1) there are a few optimizations that can can be done
* and (2) the GRAN_HANDLE is not needed.
+ * CONFIG_GRAN_INTR - Normally mutual exclusive access to granule allocator
+ * data is assured using a semaphore. If this option is set then, instead,
+ * mutual exclusion logic will disable interrupts. While this options is
+ * more invasive to system performance, it will also support use of the
+ * granule allocator from interrupt level logic.
* CONFIG_DEBUG_GRAN - Just like CONFIG_DEBUG_MM, but only generates ouput
* from the gran allocation logic.
*/