Standardize the width of all comment boxes in C file

This commit is contained in:
Gregory Nutt 2015-10-02 17:33:30 -06:00
parent e3ad56043e
commit 0629c5466e
45 changed files with 296 additions and 296 deletions

View File

@ -1,4 +1,4 @@
/***************************************************************************
/****************************************************************************
* apps/examples/cc3000basic.c
*
* Derives from an application to demo an Arduino connected to the TI CC3000

View File

@ -68,7 +68,7 @@ static int sigusr2_rcvd = 0;
/****************************************************************************
* Name: siguser_action
***************************************************************************/
****************************************************************************/
/* NOTE: it is necessary for functions that are referred to by function pointers
* pointer to be declared with global scope (at least for ARM). Otherwise,

View File

@ -58,7 +58,7 @@
* Description:
* Remove the surface of the dma2dlayer
*
***************************************************************************/
****************************************************************************/
static void ltdc_remove_dma2d_surface(FAR struct dma2d_surface *sur)
{
@ -76,7 +76,7 @@ static void ltdc_remove_dma2d_surface(FAR struct dma2d_surface *sur)
* Description:
* Create a surface for the dma2dlayer
*
***************************************************************************/
****************************************************************************/
static FAR struct dma2d_surface *ltdc_create_dma2d_surface(uint16_t xres,
uint16_t yres,
@ -143,7 +143,7 @@ static FAR struct dma2d_surface *ltdc_create_dma2d_surface(uint16_t xres,
* Description:
* Clear the whole ltdc layer with a specific color
*
***************************************************************************/
****************************************************************************/
static void ltdc_clearlayer(FAR struct surface *sur, uint8_t color)
{
@ -165,7 +165,7 @@ static void ltdc_clearlayer(FAR struct surface *sur, uint8_t color)
* Description:
* Clear the whole dma2d layer with a specific color
*
***************************************************************************/
****************************************************************************/
static void dma2d_clearlayer(FAR struct dma2d_surface *sur, uint8_t color)
{
@ -193,7 +193,7 @@ static void dma2d_clearlayer(FAR struct dma2d_surface *sur, uint8_t color)
* layer dest must be larger or equal to the size of the layer back and
* fore.
*
***************************************************************************/
****************************************************************************/
static void ltdc_blendshadow(FAR struct surface *dest,
FAR struct dma2d_surface *fore,
@ -267,7 +267,7 @@ static void ltdc_blendshadow(FAR struct surface *dest,
* Helper: Blend a rectangle to the a specific pixel position.
* Note! This is only useful for the blitflipositioning test.
*
***************************************************************************/
****************************************************************************/
static void ltdc_blendrect(FAR struct dma2d_surface *fore,
FAR struct dma2d_surface *back,
@ -301,7 +301,7 @@ static void ltdc_blendrect(FAR struct dma2d_surface *fore,
* Note! This is done by performing sequential blend operations.
* It does not claim to have a good speed performance.
*
***************************************************************************/
****************************************************************************/
static void ltdc_blendoutline(FAR struct dma2d_surface *fore,
FAR struct dma2d_surface *back)
@ -368,7 +368,7 @@ static void ltdc_blendoutline(FAR struct dma2d_surface *fore,
* Calculates the next pixel position.
* This is based on the Breseham algorithmus.
*
***************************************************************************/
****************************************************************************/
static void ltdc_calcpos(int32_t *x0, int32_t *y0, int32_t x1, int32_t y1)
{
@ -397,7 +397,7 @@ static void ltdc_calcpos(int32_t *x0, int32_t *y0, int32_t x1, int32_t y1)
* Description:
* Test: Error handling of dma2d interface
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_interface(void)
{
@ -661,7 +661,7 @@ static void ltdc_dma2d_interface(void)
* Description:
* Test: Drawing color to specific area.
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_fillarea(void)
{
@ -821,7 +821,7 @@ static void ltdc_dma2d_fillarea(void)
* Description:
* Test: Perform simple blit operation to check source area positioning
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blitsimple(void)
{
@ -951,7 +951,7 @@ static void ltdc_dma2d_blitsimple(void)
* Test: Perform simple blit operation to check source and destination
* positioning
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blitpositioning(void)
{
@ -1215,7 +1215,7 @@ static void ltdc_dma2d_blitpositioning(void)
* Description:
* Test: Perform simple blend operation to check source area positioning
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blendsimple(void)
{
@ -1376,7 +1376,7 @@ static void ltdc_dma2d_blendsimple(void)
* Test: Perform simple blit operation with allocated dma2d layer using the
* dma2d interface.
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blitdynamiclayer(void)
{
@ -1648,7 +1648,7 @@ static void ltdc_dma2d_blitdynamiclayer(void)
* Test: Perform simple blend operation with allocated dma2d layer using the
* dma2d interface.
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blenddynamiclayer(void)
{
@ -1972,7 +1972,7 @@ static void ltdc_dma2d_blenddynamiclayer(void)
* Description:
* Perform simple blit and flip operation with both interfaces
*
***************************************************************************/
****************************************************************************/
static void ltdc_dma2d_blitflippositioning(void)
{
@ -2273,7 +2273,7 @@ static void ltdc_dma2d_blitflippositioning(void)
* Perform the screensaver test.
* Note! This test runs in an endless loop.
*
***************************************************************************/
****************************************************************************/
static void ltdc_screensaver(void)
{
@ -2448,7 +2448,7 @@ static void ltdc_screensaver(void)
* Description:
* Triggers the dma2d tests
*
***************************************************************************/
****************************************************************************/
void ltdc_dma2d_main(void)
{

View File

@ -1629,7 +1629,7 @@ static void ltdc_flip_test(void)
* value - The color to set
* size - the size of the color value table
*
***************************************************************************/
****************************************************************************/
void ltdc_clrcolor(uint8_t *color, uint8_t value, size_t size)
{
@ -1653,7 +1653,7 @@ void ltdc_clrcolor(uint8_t *color, uint8_t value, size_t size)
* Return:
* 0 - if equal otherwise unequal to 0
*
***************************************************************************/
****************************************************************************/
int ltdc_cmpcolor(uint8_t *color1, uint8_t *color2, size_t size)
{
@ -1673,7 +1673,7 @@ int ltdc_cmpcolor(uint8_t *color1, uint8_t *color2, size_t size)
* Description:
* Initialize the color lookup table
*
***************************************************************************/
****************************************************************************/
#ifdef CONFIG_FB_CMAP
void ltdc_init_cmap(void)
@ -1712,7 +1712,7 @@ void ltdc_init_cmap(void)
* Description:
* Initialize
*
***************************************************************************/
****************************************************************************/
FAR struct fb_cmap_s * ltdc_createcmap(uint16_t ncolors)
{
@ -1758,7 +1758,7 @@ FAR struct fb_cmap_s * ltdc_createcmap(uint16_t ncolors)
* Description:
* Initialize
*
***************************************************************************/
****************************************************************************/
void ltdc_deletecmap(FAR struct fb_cmap_s *cmap)
{
@ -1780,7 +1780,7 @@ void ltdc_deletecmap(FAR struct fb_cmap_s *cmap)
* Description:
* Get the correct color value to the pixel format
*
***************************************************************************/
****************************************************************************/
uint32_t ltdc_color(FAR struct fb_videoinfo_s *vinfo, uint8_t color)
{
@ -1813,13 +1813,13 @@ uint32_t ltdc_color(FAR struct fb_videoinfo_s *vinfo, uint8_t color)
return value;
}
/***************************************************************************
/****************************************************************************
* Name: ltdc_simple_draw
*
* Description:
* Draw four different colored rectangles on the whole screen
*
***************************************************************************/
****************************************************************************/
void ltdc_simple_draw(FAR struct fb_videoinfo_s *vinfo,
FAR struct fb_planeinfo_s *pinfo)

View File

@ -68,7 +68,7 @@ static int sigusr2_rcvd = 0;
/****************************************************************************
* Name: siguser_action
***************************************************************************/
****************************************************************************/
/* NOTE: it is necessary for functions that are referred to by function pointers
* pointer to be declared with global scope (at least for ARM). Otherwise,

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* examples/ostest/cancel.c
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <time.h>

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* cond.c
*
* Copyright (C) 2007, 2008, 2013 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <pthread.h>

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/fpu.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Included Files
***********************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/wait.h>
@ -48,9 +48,9 @@
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Pre-processor definitions
***********************************************************************/
****************************************************************************/
/* Configuration *******************************************************/
#undef HAVE_FPU
@ -106,9 +106,9 @@
# define NULL (void*)0
#endif
/***********************************************************************
/****************************************************************************
* External Dependencies
***********************************************************************/
****************************************************************************/
/* This test is very dependent on support provided by the chip/board-
* layer logic. In particular, it expects the following functions
* to be provided:
@ -127,9 +127,9 @@ extern void arch_getfpu(FAR uint32_t *fpusave);
extern bool arch_cmpfpu(FAR const uint32_t *fpusave1,
FAR const uint32_t *fpusave2);
/***********************************************************************
/****************************************************************************
* Private Types
***********************************************************************/
****************************************************************************/
struct fpu_threaddata_s
{
@ -152,16 +152,16 @@ struct fpu_threaddata_s
volatile float dp4;
};
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static uint8_t g_fpuno;
/* static */ struct fpu_threaddata_s g_fputhread[FPU_NTHREADS];
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
static void fpu_dump(FAR uint32_t *buffer, FAR const char *msg)
{
@ -299,9 +299,9 @@ static int fpu_task(int argc, char *argv[])
}
#endif /* HAVE_FPU */
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
void fpu_test(void)
{

View File

@ -1,4 +1,4 @@
/**************************************************************************
/****************************************************************************
* apps/examples/ostest/mqueue.c
*
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Included Files
**************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@ -51,9 +51,9 @@
#include "ostest.h"
/**************************************************************************
/****************************************************************************
* Private Definitions
**************************************************************************/
****************************************************************************/
#define TEST_MESSAGE "This is a test and only a test"
#if defined(SDCC) || defined(__ZILOG__)
@ -75,32 +75,32 @@
#define HALF_SECOND_USEC_USEC 500000L
/**************************************************************************
/****************************************************************************
* Private Types
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Private Function Prototypes
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Public Data
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Private Variables
**************************************************************************/
****************************************************************************/
static mqd_t g_send_mqfd;
static mqd_t g_recv_mqfd;
/**************************************************************************
/****************************************************************************
* Private Functions
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Public Functions
**************************************************************************/
****************************************************************************/
static void *sender_thread(void *arg)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* mutex.c
*
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <pthread.h>

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/nsem.c
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Included Files
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <fcntl.h>
@ -48,9 +48,9 @@
#ifdef CONFIG_FS_NAMED_SEMAPHORES
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
#define SEM1_NAME "foo"
#define SEM2_NAME "bar"
@ -59,13 +59,13 @@
# define NULL (void*)0
#endif
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
static FAR void *nsem_peer(void *parameter)
{
@ -111,9 +111,9 @@ static FAR void *nsem_peer(void *parameter)
return NULL;
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void nsem_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* examples/ostest/posixtimer.c
*
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Included Files
**************************************************************************/
****************************************************************************/
#include <stdio.h>
#include <unistd.h>
@ -45,9 +45,9 @@
#include <errno.h>
#include "ostest.h"
/**************************************************************************
/****************************************************************************
* Private Definitions
**************************************************************************/
****************************************************************************/
#ifndef NULL
# define NULL (void*)0
@ -56,16 +56,16 @@
#define MY_TIMER_SIGNAL 17
#define SIGVALUE_INT 42
/**************************************************************************
/****************************************************************************
* Private Data
**************************************************************************/
****************************************************************************/
static sem_t sem;
static int g_nsigreceived = 0;
/**************************************************************************
/****************************************************************************
* Private Functions
**************************************************************************/
****************************************************************************/
static void timer_expiration(int signo, siginfo_t *info, void *ucontext)
{
@ -134,9 +134,9 @@ static void timer_expiration(int signo, siginfo_t *info, void *ucontext)
}
/**************************************************************************
/****************************************************************************
* Public Functions
**************************************************************************/
****************************************************************************/
void timer_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* rmutex.c
*
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <pthread.h>

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* sem.c
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Included Files
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <pthread.h>
@ -43,23 +43,23 @@
#include <sched.h>
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
#ifndef NULL
# define NULL (void*)0
#endif
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static sem_t sem;
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
static void *waiter_func(void *parameter)
{
@ -154,9 +154,9 @@ static void *poster_func(void *parameter)
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void sem_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/semtimed.c
*
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Included Files
***********************************************************************/
****************************************************************************/
#include <stdio.h>
#include <pthread.h>
@ -46,23 +46,23 @@
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Preprocessor Definitions
***********************************************************************/
****************************************************************************/
#ifndef NULL
# error Broken toolchain does not have NULL
#endif
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static sem_t sem;
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
static void *poster_func(void *parameter)
{
@ -98,9 +98,9 @@ static void ostest_gettime(struct timespec *tp)
}
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void semtimed_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/sighand.c
*
* Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <sys/types.h>
#include <stdbool.h>
@ -43,9 +43,9 @@
#include <errno.h>
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
#ifndef NULL
# define NULL (void*)0
@ -54,17 +54,17 @@
#define WAKEUP_SIGNAL 17
#define SIGVALUE_INT 42
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static sem_t sem;
static bool sigreceived = false;
static bool threadexited = false;
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
#ifdef CONFIG_SCHED_HAVE_PARENT
static void death_of_child(int signo, siginfo_t *info, void *ucontext)
@ -223,9 +223,9 @@ static int waiter_main(int argc, char *argv[])
return 0;
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void sighand_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/signest.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <sys/types.h>
#include <stdbool.h>
@ -44,9 +44,9 @@
#include <errno.h>
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
#ifndef NULL
# define NULL (void*)0
@ -55,9 +55,9 @@
#define WAKEUP_SIGNAL 17
#define SIGVALUE_INT 42
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static sem_t g_waiter_sem;
static sem_t g_interferer_sem;
@ -73,9 +73,9 @@ static volatile int g_odd_nested;
static volatile int g_nest_level;
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
static void waiter_action(int signo)
{
@ -179,9 +179,9 @@ static int interfere_main(int argc, char *argv[])
g_interferer_running = false;
return EXIT_SUCCESS;
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void signest_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/sigprocmask.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
@ -31,7 +31,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
#include <sys/types.h>
#include <stdbool.h>
@ -42,21 +42,21 @@
#include "ostest.h"
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
#define NSIGNALS 5
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static int g_some_signals[NSIGNALS] = {1, 3, 5, 7, 9};
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void sigprocmask_test(void)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* apps/examples/ostest/sporadic.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/***********************************************************************
/****************************************************************************
* Included Files
***********************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@ -50,9 +50,9 @@
#ifdef CONFIG_SCHED_SPORADIC
/***********************************************************************
/****************************************************************************
* Pre-processor Definitions
***********************************************************************/
****************************************************************************/
/* It is actually a better test without schedule locking because that
* forces the scheduler into an uninteresting fallback mode.
@ -71,16 +71,16 @@
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
/***********************************************************************
/****************************************************************************
* Private Data
***********************************************************************/
****************************************************************************/
static sem_t g_sporadic_sem;
static time_t g_start_time;
/***********************************************************************
/****************************************************************************
* Private Functions
***********************************************************************/
****************************************************************************/
void my_mdelay(unsigned int milliseconds)
{
@ -190,9 +190,9 @@ static void *sporadic_func(void *parameter)
}
}
/***********************************************************************
/****************************************************************************
* Public Functions
***********************************************************************/
****************************************************************************/
void sporadic_test(void)
{

View File

@ -1,4 +1,4 @@
/**************************************************************************
/****************************************************************************
* apps/examples/ostest/mqueue.c
*
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Included Files
**************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@ -51,9 +51,9 @@
#include "ostest.h"
/**************************************************************************
/****************************************************************************
* Private Definitions
**************************************************************************/
****************************************************************************/
#define TEST_MESSAGE "This is a test and only a test"
#if defined(SDCC) || defined(__ZILOG__)
@ -69,32 +69,32 @@
#define TEST_SEND_NMSGS (10)
#define TEST_RECEIVE_NMSGS (10)
/**************************************************************************
/****************************************************************************
* Private Types
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Private Function Prototypes
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Public Data
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Private Variables
**************************************************************************/
****************************************************************************/
static mqd_t g_send_mqfd;
static mqd_t g_recv_mqfd;
/**************************************************************************
/****************************************************************************
* Private Functions
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Public Functions
**************************************************************************/
****************************************************************************/
static void *sender_thread(void *arg)
{

View File

@ -1,4 +1,4 @@
/***********************************************************************
/****************************************************************************
* examples/ostest/timedwait.c
*
* Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
***********************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Included Files
**************************************************************************/
****************************************************************************/
#include <stdio.h>
#include <time.h>
@ -45,20 +45,20 @@
#include "ostest.h"
/**************************************************************************
/****************************************************************************
* Private Definitions
**************************************************************************/
****************************************************************************/
/**************************************************************************
/****************************************************************************
* Private Data
**************************************************************************/
****************************************************************************/
static pthread_mutex_t mutex;
static pthread_cond_t cond;
/**************************************************************************
/****************************************************************************
* Private Functions
**************************************************************************/
****************************************************************************/
static void *thread_waiter(void *parameter)
{
@ -116,9 +116,9 @@ static void *thread_waiter(void *parameter)
return NULL;
}
/**************************************************************************
/****************************************************************************
* Public Definitions
**************************************************************************/
****************************************************************************/
void timedwait_test(void)
{

View File

@ -59,7 +59,7 @@
* Description:
* Read a file name from the input stream
*
***************************************************************************/
****************************************************************************/
static int trv_read_filename(FAR FILE *fp, FAR char *filename)
{
@ -126,7 +126,7 @@ static int trv_read_filename(FAR FILE *fp, FAR char *filename)
* Description:
* This function loads the world data from the input file
*
***************************************************************************/
****************************************************************************/
static int trv_load_bitmaps(FAR FILE *fp, FAR const char *wldpath)
{
@ -210,7 +210,7 @@ static int trv_load_bitmaps(FAR FILE *fp, FAR const char *wldpath)
/****************************************************************************
* Public Functions
***************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: trv_load_bitmapfile
@ -218,7 +218,7 @@ static int trv_load_bitmaps(FAR FILE *fp, FAR const char *wldpath)
* Description:
* This function opens the input file and loads the world data from it
*
***************************************************************************/
****************************************************************************/
int trv_load_bitmapfile(FAR const char *bitmapfile, FAR const char *wldpath)
{

View File

@ -74,13 +74,13 @@ trv_pixel_t g_ground_color;
* Private Functions
****************************************************************************/
/*************************************************************************
/****************************************************************************
* Name: trv_free_texture
*
* Description:
* Free both the bitmap and the bitmap container
*
************************************************************************/
****************************************************************************/
static void trv_free_texture(FAR struct trv_bitmap_s *bitmap)
{
@ -101,7 +101,7 @@ static void trv_free_texture(FAR struct trv_bitmap_s *bitmap)
*
* Description:
*
***************************************************************************/
****************************************************************************/
int trv_initialize_bitmaps(void)
{
@ -119,13 +119,13 @@ int trv_initialize_bitmaps(void)
return OK;
}
/*************************************************************************
/****************************************************************************
* Name: trv_release_bitmaps
*
* Description:
* This function deallocates all bitmaps.
*
************************************************************************/
****************************************************************************/
void trv_release_bitmaps(void)
{

View File

@ -88,7 +88,7 @@
/****************************************************************************
* Private Type Declarations
************************************************************************/
****************************************************************************/
/* The following enumeration defines indices into the g_unit_vector array */
@ -125,7 +125,7 @@ struct color_form_s
/****************************************************************************
* Private Variables
*************************************************************************/
****************************************************************************/
#if RGB_CUBE_SIZE < MIN_LUM_LEVELS
static FAR struct trv_color_lum_s *g_pixel2um_lut;
@ -204,7 +204,7 @@ static float g_trv_cube2pixel;
/****************************************************************************
* Private Functions
************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: trv_lum2formtype
@ -213,7 +213,7 @@ static float g_trv_cube2pixel;
* Convert an ordered RGB-Luminance value a color form (index into
* XXXForm arrays).
*
***************************************************************************/
****************************************************************************/
#if RGB_CUBE_SIZE < MIN_LUM_LEVELS
static uint8_t trv_lum2formtype(struct color_form_s *lum)
@ -256,7 +256,7 @@ static uint8_t trv_lum2formtype(struct color_form_s *lum)
* Convert an RGB-Luminance value into a color form code (index into
* g_unit_vector array).
*
************************************************************************/
****************************************************************************/
#if RGB_CUBE_SIZE < MIN_LUM_LEVELS
static enum unit_vector_index_e trv_lum2colorform(struct trv_color_lum_s *lum)
@ -345,13 +345,13 @@ static enum unit_vector_index_e trv_lum2colorform(struct trv_color_lum_s *lum)
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: trv_color_allocate
*
* Description:
************************************************************************/
****************************************************************************/
void trv_color_allocate(FAR struct trv_palette_s *pinfo)
{
@ -501,7 +501,7 @@ void trv_color_allocate(FAR struct trv_palette_s *pinfo)
* When all color mapping has been performed, this function should be
* called to release all resources dedicated to color mapping.
*
***************************************************************************/
****************************************************************************/
void trv_color_endmapping(void)
{
@ -526,7 +526,7 @@ void trv_color_endmapping(void)
* Description:
* Free the color lookup table
*
***************************************************************************/
****************************************************************************/
void trv_color_free(struct trv_palette_s *pinfo)
{
@ -542,7 +542,7 @@ void trv_color_free(struct trv_palette_s *pinfo)
* Description: Map a RGB triplet into the corresponding pixel. The
* value range of ech RGB value is assume to lie within 0 through
* TRV_PIXEL_MAX.
************************************************************************/
****************************************************************************/
trv_pixel_t trv_color_rgb2pixel(struct trv_color_rgb_s *pixel)
{
@ -591,7 +591,7 @@ trv_pixel_t trv_color_rgb2pixel(struct trv_color_rgb_s *pixel)
/****************************************************************************
* Name: trv_color_lum2pixel
* Description: Convert an RGB-Luminance value into a pixel
************************************************************************/
****************************************************************************/
trv_pixel_t trv_color_lum2pixel(struct trv_color_lum_s *lum)
{
@ -641,7 +641,7 @@ trv_pixel_t trv_color_lum2pixel(struct trv_color_lum_s *lum)
/****************************************************************************
* Name: trv_color_pixel2lum
* Description: Convert a pixel value into RGB-Luminance value.
************************************************************************/
****************************************************************************/
void trv_color_pixel2lum(trv_pixel_t pixval,
struct trv_color_lum_s *lum)

View File

@ -57,7 +57,7 @@
/****************************************************************************
* Private Type Declarations
***************************************************************************/
****************************************************************************/
/* These are possible values for the g_opendoor state variable */
@ -97,7 +97,7 @@ struct trv_opendoor_s g_opendoor;
*
* Description:
*
***************************************************************************/
****************************************************************************/
static void trv_door_startopen (void)
{
@ -288,7 +288,7 @@ void trv_door_initialize(void)
g_opendoor.state = DOOR_IDLE;
}
/***************************************************************************
/****************************************************************************
* Name: trv_door_animate
*
* Description:
@ -297,7 +297,7 @@ void trv_door_initialize(void)
* is started. This function then calls trv_door_animation which must be
* called on each cycle to perform the door movement.
*
***************************************************************************/
****************************************************************************/
void trv_door_animate(void)
{

View File

@ -55,7 +55,7 @@
* Description:
* Read a decimal number from the steam 'fp'
*
***************************************************************************/
****************************************************************************/
int16_t trv_read_decimal(FAR FILE *fp)
{
@ -105,7 +105,7 @@ int16_t trv_read_decimal(FAR FILE *fp)
* to the file. The pointer returned by this function is allocated and
* must be freed by the caller.
*
***************************************************************************/
****************************************************************************/
FAR char *trv_fullpath(FAR const char *path, FAR const char *name)
{

View File

@ -60,7 +60,7 @@
* graphic file formats can be supported. Currently only the ancient
* PCX format is supported.
*
***************************************************************************/
****************************************************************************/
FAR struct trv_graphicfile_s *tvr_graphicfile_read(char *filename)
{
@ -94,13 +94,13 @@ FAR struct trv_graphicfile_s *tvr_graphicfile_read(char *filename)
return gfile;
}
/*************************************************************************
/****************************************************************************
* Name: trv_graphicfile_new
*
* Description:
* Allocate a new graphic file structure
*
************************************************************************/
****************************************************************************/
FAR struct trv_graphicfile_s *trv_graphicfile_new(void)
{
@ -117,14 +117,14 @@ FAR struct trv_graphicfile_s *trv_graphicfile_new(void)
return gfile;
}
/*************************************************************************
/****************************************************************************
* Name: trv_graphicfile_free
*
* Description:
* Free the graphic file structure after also freeing in additional
* resources attached to the structure.
************************************************************************/
****************************************************************************/
void trv_graphicfile_free(FAR struct trv_graphicfile_s *gfile)
{
@ -144,14 +144,14 @@ void trv_graphicfile_free(FAR struct trv_graphicfile_s *gfile)
}
}
/*************************************************************************
/****************************************************************************
* Name: trv_graphicfile_pixel
*
* Description:
* Return the RGB color value for a pixel at location (x,y) in the
* texture bitmap.
*
************************************************************************/
****************************************************************************/
struct trv_color_rgb_s
trv_graphicfile_pixel(FAR struct trv_graphicfile_s *gfile, int x, int y)

View File

@ -83,13 +83,13 @@
/****************************************************************************
* Public Data
*************************************************************************/
****************************************************************************/
bool g_trv_terminate;
/****************************************************************************
* Private Data
*************************************************************************/
****************************************************************************/
static const char g_default_worldfile[] = "transfrm.wld";
static const char g_default_worldpath[] = CONFIG_GRAPHICS_TRAVELER_DEFPATH;

View File

@ -64,7 +64,7 @@
/****************************************************************************
* Private Type Declarations
***************************************************************************/
****************************************************************************/
#ifdef CONFIG_GRAPHICS_TRAVELER_PALRANGES
struct trv_palrange_s
@ -94,7 +94,7 @@ trv_pixel_t *g_paltable[NUM_ZONES];
*
* Description:
*
***************************************************************************/
****************************************************************************/
static int trv_allocate_paltbl(uint32_t entrysize)
{
@ -124,7 +124,7 @@ static int trv_allocate_paltbl(uint32_t entrysize)
* Description:
* This function loads the g_paltable from the specified file
*
***************************************************************************/
****************************************************************************/
int trv_load_paltable(FAR const char *file)
{
@ -326,12 +326,12 @@ int trv_load_paltable(FAR const char *file)
#endif /* CONFIG_GRAPHICS_TRAVELER_PALRANGES */
}
/*************************************************************************
/****************************************************************************
* Function: trv_release_paltable
*
* Description:
*
************************************************************************/
****************************************************************************/
void trv_release_paltable(void)
{

View File

@ -56,7 +56,7 @@
*
* Description:
*
***************************************************************************/
****************************************************************************/
static void trv_load_pcxheader(FAR FILE *fp, struct pcx_header_s *header)
{
@ -78,7 +78,7 @@ static void trv_load_pcxheader(FAR FILE *fp, struct pcx_header_s *header)
*
* Description:
*
***************************************************************************/
****************************************************************************/
static void trv_load_pcxdata(FAR FILE *fp, int32_t imagesize,
FAR uint8_t *imagebuffer)
@ -127,7 +127,7 @@ static void trv_load_pcxdata(FAR FILE *fp, int32_t imagesize,
*
* Description:
*
***************************************************************************/
****************************************************************************/
static void trv_load_pcxpalette(FAR FILE *fp,
FAR struct trv_color_rgb_s *palette)
@ -160,7 +160,7 @@ static void trv_load_pcxpalette(FAR FILE *fp,
* Description:
* This function loads a PCX file into a memory.
*
***************************************************************************/
****************************************************************************/
FAR struct trv_graphicfile_s *trv_load_pcx(FAR FILE *fp,
FAR const char *filename)

View File

@ -50,7 +50,7 @@
/****************************************************************************
* Private Type Declarations
***************************************************************************/
****************************************************************************/
/****************************************************************************
* Private Functions
@ -63,7 +63,7 @@
*
* This function loads the world data for one plane
*
***************************************************************************/
****************************************************************************/
static int trv_load_worldplane(FAR FILE *fp, FAR struct trv_rect_head_s *head,
uint8_t nrects)
@ -107,7 +107,7 @@ static int trv_load_worldplane(FAR FILE *fp, FAR struct trv_rect_head_s *head,
* Function: trv_load_planes
* Description:
* This function loads the world data from the opened file
***************************************************************************/
****************************************************************************/
static int trv_load_planes(FAR FILE *fp)
{
@ -153,7 +153,7 @@ static int trv_load_planes(FAR FILE *fp)
*
* This function opens the input file and loads the world plane data from it
*
***************************************************************************/
****************************************************************************/
int trv_load_planefile(FAR const char *wldfile)
{

View File

@ -68,7 +68,7 @@ FAR struct trv_rect_list_s *g_rect_freelist;
* Description:
* This function deallocates one plane of the world
*
***************************************************************************/
****************************************************************************/
static void trv_release_worldplane(FAR struct trv_rect_list_s *rect)
{
@ -91,7 +91,7 @@ static void trv_release_worldplane(FAR struct trv_rect_list_s *rect)
*
* Description:
*
***************************************************************************/
****************************************************************************/
int trv_initialize_planes(void)
{
@ -112,7 +112,7 @@ int trv_initialize_planes(void)
* Description:
* This function adds a plane to a world plane list
*
***************************************************************************/
****************************************************************************/
void trv_add_plane(FAR struct trv_rect_list_s *rect,
FAR struct trv_rect_head_s *list)
@ -190,7 +190,7 @@ void trv_add_plane(FAR struct trv_rect_list_s *rect,
* This function removes the specified plane from the world plane srclist
* then adds it to the world plane destlist
*
***************************************************************************/
****************************************************************************/
void trv_move_plane(FAR struct trv_rect_list_s *rect,
FAR struct trv_rect_head_s *destlist,
@ -229,7 +229,7 @@ void trv_move_plane(FAR struct trv_rect_list_s *rect,
* Description:
* This function concatenates two world plane lists
*
***************************************************************************/
****************************************************************************/
void trv_merge_planelists(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist)
@ -323,13 +323,13 @@ void trv_merge_planelists(FAR struct trv_rect_head_s *outlist,
inlist->tail = NULL;
}
/*************************************************************************
/****************************************************************************
* Function: trv_new_plane
*
* Description:
* This function allocates memory for a new plane rectangle.
*
************************************************************************/
****************************************************************************/
FAR struct trv_rect_list_s *trv_new_plane(void)
{
@ -354,14 +354,14 @@ FAR struct trv_rect_list_s *trv_new_plane(void)
return rect;
}
/*************************************************************************
/****************************************************************************
* Name: trv_release_planes
*
* Description:
*
* This function deallocates the entire world.
*
************************************************************************/
****************************************************************************/
void trv_release_planes(void)
{

View File

@ -103,7 +103,7 @@ static int32_t g_adj_cotpitch;
* NOTE: The X-Ray caster must run first because it initializes a
* data structure needed by both the Y and Z ray casters.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_xcaster14(FAR struct trv_raycast_s *result)
{
@ -332,7 +332,7 @@ static void trv_ray_xcaster14(FAR struct trv_raycast_s *result)
* NOTE: The X-Ray caster must run first because it initializes a
* data structure needed by both the Y and Z ray casters.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_xcaster23(FAR struct trv_raycast_s *result)
{
@ -559,7 +559,7 @@ static void trv_ray_xcaster23(FAR struct trv_raycast_s *result)
*
* NOTE: The X-Ray is assumed to have been performed first!
*
***************************************************************************/
****************************************************************************/
static void trv_ray_ycaster12(FAR struct trv_raycast_s *result)
{
@ -785,7 +785,7 @@ static void trv_ray_ycaster12(FAR struct trv_raycast_s *result)
*
* NOTE: The X-Ray is assumed to have been performed first!
*
***************************************************************************/
****************************************************************************/
static void trv_ray_ycaster34(FAR struct trv_raycast_s *result)
{
@ -1014,7 +1014,7 @@ static void trv_ray_ycaster34(FAR struct trv_raycast_s *result)
*
* NOTE: It is assumed that both the X and Y ray casters have already
* ran!
***************************************************************************/
****************************************************************************/
static void trv_ray_zcasteru(FAR struct trv_raycast_s *result)
{
@ -1163,7 +1163,7 @@ static void trv_ray_zcasteru(FAR struct trv_raycast_s *result)
* NOTE: It is assumed that both the X and Y ray casters have already
* ran!
*
***************************************************************************/
****************************************************************************/
static void trv_ray_zcasterl(FAR struct trv_raycast_s *result)
{
@ -1310,7 +1310,7 @@ static void trv_ray_zcasterl(FAR struct trv_raycast_s *result)
* quadrants so that simpler casting algorithms can be used. It also
* enforces the order of casting: X first, then Y, and finally Z.
*
***************************************************************************/
****************************************************************************/
void trv_raycast(int16_t pitch, int16_t yaw, int16_t screenyaw,
FAR struct trv_raycast_s *result)

View File

@ -136,7 +136,7 @@ static int16_t g_pitch[VGULP_SIZE];
* recursively resolve the cell until all four corners are the same.
* When the are the same, then rend the cell to the display buffer.
*
***************************************************************************/
****************************************************************************/
static void trv_resolve_cell(uint8_t toprow, uint8_t leftcol,
uint8_t height, uint8_t width)
@ -593,7 +593,7 @@ static void trv_resolve_cell(uint8_t toprow, uint8_t leftcol,
* This is the heart of the system. it casts out 320 rays and builds the
* 3-D image from their intersections with the walls.
*
***************************************************************************/
****************************************************************************/
void trv_raycaster(FAR struct trv_camera_s *player,
FAR struct trv_graphics_info_s *ginfo)
@ -764,7 +764,7 @@ void trv_raycaster(FAR struct trv_camera_s *player,
* Prevention of this condition is the best approach. However, total
* elimination of the condition is impossible.
*
***************************************************************************/
****************************************************************************/
uint8_t trv_get_texture(uint8_t row, uint8_t col)
{

View File

@ -86,7 +86,7 @@
/****************************************************************************
* Private Type Declarations
***************************************************************************/
****************************************************************************/
enum working_plane_state_e
{
@ -173,7 +173,7 @@ static struct trv_rect_head_s g_discard_zplane; /* List of discarded Z=plane
* camera position and "clockwise" of the current yaw is moved into
* the output X plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawxprune_14cw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -262,7 +262,7 @@ static void trv_ray_yawxprune_14cw(FAR struct trv_rect_head_s *outlist,
* camera position and "counterclockwise" of the current yaw is moved into
* the output X plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawxprune_14ccw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -351,7 +351,7 @@ static void trv_ray_yawxprune_14ccw(FAR struct trv_rect_head_s *outlist,
* camera position and "clockwise" of the current yaw is moved into
* the output X plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawxprune_23cw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -440,7 +440,7 @@ static void trv_ray_yawxprune_23cw(FAR struct trv_rect_head_s *outlist,
* camera position and "counterclockwise" of the current yaw is moved
* into the output X plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawxprune_23ccw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -529,7 +529,7 @@ static void trv_ray_yawxprune_23ccw(FAR struct trv_rect_head_s *outlist,
* camera position and "clockwise" of the current yaw is moved into
* the output Y plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawyprune_12cw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -620,7 +620,7 @@ static void trv_ray_yawyprune_12cw(FAR struct trv_rect_head_s *outlist,
* camera position and "counterclockwise" of the current yaw is moved into
* the output Y plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawyprune_12ccw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -711,7 +711,7 @@ static void trv_ray_yawyprune_12ccw(FAR struct trv_rect_head_s *outlist,
* camera position and "clockwise" of the current yaw is moved into
* the output Y plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawyprune_34cw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,
@ -802,7 +802,7 @@ static void trv_ray_yawyprune_34cw(FAR struct trv_rect_head_s *outlist,
* camera position and "counterclockwise" of the current yaw is moved
* into the output Y plane list.
*
***************************************************************************/
****************************************************************************/
static void trv_ray_yawyprune_34ccw(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist,

View File

@ -69,7 +69,7 @@
* Return the log base 2 of the argument, or -1 if the argument is not
* an integer power of 2.
*
***************************************************************************/
****************************************************************************/
static int trv_log2(uint16_t x)
{
@ -87,7 +87,7 @@ static int trv_log2(uint16_t x)
* Name: trv_new_texture
*
* Description:
***************************************************************************/
****************************************************************************/
static FAR struct trv_bitmap_s *
trv_new_texture(uint16_t width, uint16_t height)
@ -147,7 +147,7 @@ trv_new_texture(uint16_t width, uint16_t height)
/****************************************************************************
* Name: trv_quantize_texture
* Description:
***************************************************************************/
****************************************************************************/
static void trv_quantize_texture(FAR struct trv_graphicfile_s *gfile,
FAR struct trv_bitmap_s *bitmap)
@ -176,7 +176,7 @@ static void trv_quantize_texture(FAR struct trv_graphicfile_s *gfile,
*
* Description:
*
***************************************************************************/
****************************************************************************/
FAR struct trv_bitmap_s *trv_read_texture(FAR const char *filename)
{

View File

@ -91,7 +91,7 @@
/****************************************************************************
* Private Type Declarations
***************************************************************************/
****************************************************************************/
/****************************************************************************
* Private Function Prototypes
@ -166,7 +166,7 @@ static const char g_world_images_name[] = WORLD_IMAGES;
* Reads a short value from the INI file and assures that it is within
* range for an a int16_t
*
***************************************************************************/
****************************************************************************/
static int trv_ini_short(INIHANDLE inihandle, FAR int16_t *value,
FAR const char *section, FAR const char *name)
@ -221,7 +221,7 @@ static int trv_ini_short(INIHANDLE inihandle, FAR int16_t *value,
* Description:
* Reads a long value from the INI file
*
***************************************************************************/
****************************************************************************/
#if 0 /* Not used */
static uint8_t trv_ini_long(INIHANDLE inihandle, FAR long *value,
@ -240,7 +240,7 @@ static uint8_t trv_ini_long(INIHANDLE inihandle, FAR long *value,
* Description:
* Reads a file name from the the INI file.
*
***************************************************************************/
****************************************************************************/
static int trv_ini_filename(INIHANDLE inihandle, FAR const char *path,
FAR const char *section, FAR const char *name,
@ -280,7 +280,7 @@ static int trv_ini_filename(INIHANDLE inihandle, FAR const char *path,
* This is the guts of trv_world_create. It is implemented as a separate
* function in order to simplify error handling
*
***************************************************************************/
****************************************************************************/
static int trv_manage_wldfile(INIHANDLE inihandle, FAR const char *wldpath)
{
@ -430,7 +430,7 @@ static int trv_manage_wldfile(INIHANDLE inihandle, FAR const char *wldpath)
* Description:
* Load the world data structures from information in an INI file
*
***************************************************************************/
****************************************************************************/
int trv_world_create(FAR const char *wldpath, FAR const char *wldfile)
{
@ -469,7 +469,7 @@ int trv_world_create(FAR const char *wldpath, FAR const char *wldfile)
* Description:
* Destroy the world and release all of its resources
*
***************************************************************************/
****************************************************************************/
void trv_world_destroy(void)
{

View File

@ -120,7 +120,7 @@ extern uint32_t _etext;
* definition only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
***************************************************************************/
****************************************************************************/
void up_cxxinitialize(void)
{

View File

@ -118,7 +118,7 @@ extern uint32_t _etext;
* function definition only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
***************************************************************************/
****************************************************************************/
void up_cxxinitialize(void)
{

View File

@ -118,7 +118,7 @@ extern uint32_t _etext;
* function defintion only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
***************************************************************************/
****************************************************************************/
void up_cxxinitialize(void)
{

View File

@ -1132,7 +1132,7 @@ int nxplayer_setvolume(FAR struct nxplayer_s *pPlayer, uint16_t volume)
* Returned Value:
* OK if equalization was set correctly.
*
**************************************************************************/
****************************************************************************/
#ifndef CONFIG_AUDIO_EXCLUDE_EQUALIZER
int nxplayer_setequalization(FAR struct nxplayer_s *pPlayer,
@ -1375,7 +1375,7 @@ int nxplayer_resume(FAR struct nxplayer_s *pPlayer)
* Returned Value:
* OK if fast forward operation successful.
*
**************************************************************************/
****************************************************************************/
#ifndef CONFIG_AUDIO_EXCLUDE_FFORWARD
int nxplayer_fforward(FAR struct nxplayer_s *pPlayer, uint8_t subsample)
@ -1431,7 +1431,7 @@ int nxplayer_fforward(FAR struct nxplayer_s *pPlayer, uint8_t subsample)
* Returned Value:
* OK if rewind operation successfully initiated.
*
**************************************************************************/
****************************************************************************/
#ifndef CONFIG_AUDIO_EXCLUDE_REWIND
int nxplayer_rewind(FAR struct nxplayer_s *pPlayer, uint8_t subsample)
@ -1480,7 +1480,7 @@ int nxplayer_rewind(FAR struct nxplayer_s *pPlayer, uint8_t subsample)
* Returned Value:
* OK if rewind operation successfully cancelled.
*
**************************************************************************/
****************************************************************************/
#if !defined(CONFIG_AUDIO_EXCLUDE_FFORWARD) || !defined(CONFIG_AUDIO_EXCLUDE_REWIND)
int nxplayer_cancel_motion(FAR struct nxplayer_s *pPlayer, bool paused)
@ -1863,7 +1863,7 @@ void nxplayer_setmediadir(FAR struct nxplayer_s *pPlayer,
* Returned values:
* Pointer to the created context or NULL if there was an error.
*
**************************************************************************/
****************************************************************************/
FAR struct nxplayer_s *nxplayer_create(void)
{
@ -1928,7 +1928,7 @@ FAR struct nxplayer_s *nxplayer_create(void)
*
* Returned values: None
*
**************************************************************************/
****************************************************************************/
void nxplayer_release(FAR struct nxplayer_s* pPlayer)
{
@ -1993,7 +1993,7 @@ void nxplayer_release(FAR struct nxplayer_s* pPlayer)
*
* Returned values: None
*
**************************************************************************/
****************************************************************************/
void nxplayer_reference(FAR struct nxplayer_s* pPlayer)
{
@ -2029,7 +2029,7 @@ void nxplayer_reference(FAR struct nxplayer_s* pPlayer)
*
* Returned values: None
*
**************************************************************************/
****************************************************************************/
void nxplayer_detach(FAR struct nxplayer_s* pPlayer)
{

View File

@ -589,7 +589,7 @@ static int nxplayer_cmd_help(FAR struct nxplayer_s *pPlayer, char* parg)
* EOF is returned to indicate either an end of file condition or a
* failure.
*
**************************************************************************/
****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])

View File

@ -216,7 +216,7 @@ static void readline_write(FAR struct rl_common_s *vtbl,
* EOF is returned to indicate either an end of file condition or a
* failure.
*
**************************************************************************/
****************************************************************************/
ssize_t readline(FAR char *buf, int buflen, FILE *instream, FILE *outstream)
{

View File

@ -102,7 +102,7 @@ static int g_cmd_history_len = 0;
* Returned Value:
* The number of matching names
*
**************************************************************************/
****************************************************************************/
#if defined(CONFIG_READLINE_TABCOMPLETION) && defined(CONFIG_BUILTIN)
static int count_builtin_maches(FAR char *buf, FAR int *matches, int namelen)
@ -143,7 +143,7 @@ static int count_builtin_maches(FAR char *buf, FAR int *matches, int namelen)
* Returned Value:
* None.
*
**************************************************************************/
****************************************************************************/
#ifdef CONFIG_READLINE_TABCOMPLETION
static void tab_completion(FAR struct rl_common_s *vtbl, char *buf,
@ -328,7 +328,7 @@ static void tab_completion(FAR struct rl_common_s *vtbl, char *buf,
* there are multiple clients of readline(), they must all share the same
* prompt string (with exceptions in the case of the kernel build).
*
**************************************************************************/
****************************************************************************/
#ifdef CONFIG_READLINE_TABCOMPLETION
FAR const char *readline_prompt(FAR const char *prompt)
@ -361,7 +361,7 @@ FAR const char *readline_prompt(FAR const char *prompt)
* share the same tab-completion logic (with exceptions in the case of
* the kernel build).
*
**************************************************************************/
****************************************************************************/
#if defined(CONFIG_READLINE_TABCOMPLETION) && defined(CONFIG_READLINE_HAVE_EXTMATCH)
FAR const struct extmatch_vtable_s *
@ -400,7 +400,7 @@ FAR const struct extmatch_vtable_s *
* EOF is returned to indicate either an end of file condition or a
* failure.
*
**************************************************************************/
****************************************************************************/
ssize_t readline_common(FAR struct rl_common_s *vtbl, FAR char *buf, int buflen)
{

View File

@ -147,7 +147,7 @@ static void readline_write(FAR struct rl_common_s *vtbl,
* EOF is returned to indicate either an end of file condition or a
* failure.
*
**************************************************************************/
****************************************************************************/
ssize_t std_readline(FAR char *buf, int buflen)
{