mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Clean kernel-/user-mode module build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3469 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/common/up_createstack.c
|
* arch/arm/src/common/up_createstack.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
@@ -97,9 +96,9 @@ int up_create_stack(_TCB *tcb, size_t stack_size)
|
|||||||
if (!tcb->stack_alloc_ptr)
|
if (!tcb->stack_alloc_ptr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
tcb->stack_alloc_ptr = (uint32_t*)zalloc(stack_size);
|
tcb->stack_alloc_ptr = (uint32_t*)kzalloc(stack_size);
|
||||||
#else
|
#else
|
||||||
tcb->stack_alloc_ptr = (uint32_t*)malloc(stack_size);
|
tcb->stack_alloc_ptr = (uint32_t*)kmalloc(stack_size);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -197,7 +197,7 @@
|
|||||||
* Configuration:
|
* Configuration:
|
||||||
* CONFIG_USBHOST_OHCIRAM_SIZE 1536
|
* CONFIG_USBHOST_OHCIRAM_SIZE 1536
|
||||||
* CONFIG_USBHOST_NEDS 2
|
* CONFIG_USBHOST_NEDS 2
|
||||||
* CONFIG_USBHOST_NEDS 3
|
* CONFIG_USBHOST_NTDS 3
|
||||||
* CONFIG_USBHOST_TDBUFFERS 3
|
* CONFIG_USBHOST_TDBUFFERS 3
|
||||||
* CONFIG_USBHOST_TDBUFSIZE 128
|
* CONFIG_USBHOST_TDBUFSIZE 128
|
||||||
* CONFIG_USBHOST_IOBUFSIZE 512
|
* CONFIG_USBHOST_IOBUFSIZE 512
|
||||||
|
|||||||
@@ -2596,7 +2596,7 @@ FAR struct usbhost_driver_s *usbhost_initialize(int controller)
|
|||||||
/* Initialize user-configurable request/descriptor transfer buffers */
|
/* Initialize user-configurable request/descriptor transfer buffers */
|
||||||
|
|
||||||
buffer = (uint8_t *)LPC17_TBFREE_BASE;
|
buffer = (uint8_t *)LPC17_TBFREE_BASE;
|
||||||
for (i = 0; i < CONFIG_USBHOST_NEDS; i++)
|
for (i = 0; i < CONFIG_USBHOST_TDBUFFERS; i++)
|
||||||
{
|
{
|
||||||
/* Put the TD buffer in a free list */
|
/* Put the TD buffer in a free list */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user