mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:43:34 +08:00
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4940 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -46,7 +46,12 @@
|
||||
#include <nuttx/net/net.h>
|
||||
#include <nuttx/lib.h>
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0
|
||||
/* Make sure that there are file or socket descriptors in the system and
|
||||
* that some number of streams have been configured.
|
||||
*/
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
|
||||
#if CONFIG_NFILE_STREAMS > 0
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@@ -56,9 +61,18 @@
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sched_setupstreams
|
||||
*
|
||||
* Description:
|
||||
* Setup streams data structures that may be used for standard C buffered
|
||||
* I/O with underlying socket or file desciptors
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int sched_setupstreams(FAR _TCB *tcb)
|
||||
{
|
||||
/* Allocate file strems for the TCB */
|
||||
/* Allocate file streams for the TCB */
|
||||
|
||||
tcb->streams = lib_alloclist();
|
||||
if (tcb->streams)
|
||||
@@ -80,4 +94,5 @@ int sched_setupstreams(FAR _TCB *tcb)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NFILE_STREAMS && CONFIG_NFILE_STREAMS */
|
||||
#endif /* CONFIG_NFILE_STREAMS > 0 */
|
||||
#endif /* CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0*/
|
||||
|
||||
Reference in New Issue
Block a user