From 3cf6b4d6577c2f467dbb25dd0da8cdc6ad32a7b4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 13 Apr 2014 14:32:20 -0600 Subject: [PATCH] More trailing whilespace removal --- nuttx/drivers/analog/ad5410.c | 4 +- nuttx/drivers/analog/ads1255.c | 2 +- nuttx/drivers/analog/dac.c | 2 +- nuttx/drivers/audio/i2schar.c | 2 +- nuttx/drivers/bch/bchlib_read.c | 2 +- nuttx/drivers/bch/bchlib_write.c | 2 +- nuttx/drivers/input/Kconfig | 8 +-- nuttx/drivers/input/max11802.c | 36 ++++++------- nuttx/drivers/input/stmpe811_adc.c | 2 +- nuttx/drivers/input/stmpe811_base.c | 8 +-- nuttx/drivers/input/stmpe811_gpio.c | 2 +- nuttx/drivers/input/stmpe811_temp.c | 10 ++-- nuttx/drivers/input/stmpe811_tsc.c | 6 +-- nuttx/drivers/input/tsc2007.c | 12 ++--- nuttx/drivers/lcd/memlcd.c | 8 +-- nuttx/drivers/lcd/mio283qt2.c | 16 +++--- nuttx/drivers/lcd/mio283qt9a.c | 14 ++--- nuttx/drivers/lcd/nokia6100.c | 20 +++---- nuttx/drivers/lcd/sd1329.h | 6 +-- nuttx/drivers/lcd/skeleton.c | 6 +-- nuttx/drivers/lcd/ssd1289.c | 28 +++++----- nuttx/drivers/lcd/ssd1289.h | 4 +- nuttx/drivers/mtd/at24xx.c | 2 +- nuttx/drivers/mtd/at25.c | 12 ++--- nuttx/drivers/mtd/at45db.c | 18 +++---- nuttx/drivers/mtd/ftl.c | 12 ++--- nuttx/drivers/mtd/mtd_nandmodel.c | 2 +- nuttx/drivers/mtd/mtd_nandscheme.c | 4 +- nuttx/drivers/mtd/mtd_procfs.c | 2 +- nuttx/drivers/mtd/ramtron.c | 30 +++++------ nuttx/drivers/mtd/sector512.c | 6 +-- nuttx/drivers/mtd/skeleton.c | 4 +- nuttx/drivers/mtd/sst25.c | 16 +++--- nuttx/drivers/mtd/sst25xx.c | 8 +-- nuttx/drivers/mtd/sst39vf.c | 38 +++++++------- nuttx/drivers/mtd/w25.c | 10 ++-- nuttx/drivers/net/cs89x0.c | 16 +++--- nuttx/drivers/net/dm90x0.c | 34 ++++++------ nuttx/drivers/net/enc28j60.h | 2 +- nuttx/drivers/net/skeleton.c | 8 +-- nuttx/drivers/net/slip.c | 14 ++--- nuttx/drivers/net/vnet.c | 12 ++--- nuttx/drivers/pipes/fifo.c | 4 +- nuttx/drivers/pipes/pipe_common.c | 8 +-- nuttx/drivers/pipes/pipe_common.h | 2 +- nuttx/drivers/power/max1704x.c | 2 +- nuttx/drivers/power/pm_internal.h | 2 +- nuttx/drivers/power/pm_update.c | 2 +- nuttx/drivers/pwm.c | 10 ++-- nuttx/drivers/ramdisk.c | 2 +- nuttx/drivers/rwbuffer.c | 22 ++++---- nuttx/drivers/sensors/qencoder.c | 6 +-- nuttx/drivers/serial/Kconfig | 2 +- nuttx/drivers/serial/lowconsole.c | 2 +- nuttx/drivers/serial/serial.c | 2 +- nuttx/drivers/serial/serialirq.c | 2 +- nuttx/drivers/syslog/README.txt | 2 +- nuttx/drivers/syslog/ramlog.c | 6 +-- nuttx/drivers/usbdev/cdcacm.h | 2 +- nuttx/drivers/usbdev/cdcacm_desc.c | 2 +- nuttx/drivers/usbdev/composite.c | 6 +-- nuttx/drivers/usbdev/usbdev_trprintf.c | 2 +- nuttx/drivers/usbdev/usbmsc.h | 4 +- nuttx/drivers/usbdev/usbmsc_scsi.c | 10 ++-- nuttx/drivers/usbhost/hid_parser.c | 6 +-- nuttx/drivers/usbhost/usbhost_findclass.c | 2 +- nuttx/drivers/usbhost/usbhost_hidmouse.c | 2 +- nuttx/drivers/usbhost/usbhost_skeleton.c | 32 ++++++------ nuttx/drivers/video/ov2640.c | 14 ++--- nuttx/drivers/watchdog.c | 8 +-- nuttx/drivers/wireless/cc3000/netapp.c | 4 +- nuttx/drivers/wireless/cc3000/nvmem.c | 2 +- nuttx/include/inttypes.h | 38 +++++++------- nuttx/include/nuttx/analog/adc.h | 4 +- nuttx/include/nuttx/analog/dac.h | 2 +- nuttx/include/nuttx/audio/audio.h | 2 +- nuttx/include/nuttx/audio/i2s.h | 2 +- nuttx/include/nuttx/binfmt/binfmt.h | 2 +- nuttx/include/nuttx/binfmt/elf.h | 6 +-- nuttx/include/nuttx/binfmt/nxflat.h | 2 +- nuttx/include/nuttx/can.h | 4 +- nuttx/include/nuttx/compiler.h | 4 +- nuttx/include/nuttx/fs/mksmartfs.h | 2 +- nuttx/include/nuttx/fs/nfs.h | 4 +- nuttx/include/nuttx/fs/procfs.h | 2 +- nuttx/include/nuttx/fs/smart.h | 4 +- nuttx/include/nuttx/i2c.h | 18 +++---- nuttx/include/nuttx/lcd/lcd.h | 2 +- nuttx/include/nuttx/lcd/mio283qt2.h | 2 +- nuttx/include/nuttx/lcd/mio283qt9a.h | 2 +- nuttx/include/nuttx/lcd/ssd1289.h | 2 +- nuttx/include/nuttx/lcd/ug-9664hswag01.h | 2 +- nuttx/include/nuttx/mtd/mtd.h | 2 +- nuttx/include/nuttx/net/cs89x0.h | 2 +- nuttx/include/nuttx/net/enc28j60.h | 2 +- nuttx/include/nuttx/net/uip/uip-igmp.h | 46 ++++++++-------- nuttx/include/nuttx/net/uip/uip-ipopt.h | 16 +++--- nuttx/include/nuttx/nx/nxconsole.h | 6 +-- nuttx/include/nuttx/nx/nxfonts.h | 2 +- nuttx/include/nuttx/nx/nxglib.h | 2 +- nuttx/include/nuttx/page.h | 6 +-- nuttx/include/nuttx/progmem.h | 8 +-- nuttx/include/nuttx/pwm.h | 2 +- nuttx/include/nuttx/rtc.h | 2 +- nuttx/include/nuttx/sensors/lis331dl.h | 22 ++++---- nuttx/include/nuttx/sensors/qencoder.h | 2 +- nuttx/include/nuttx/spi/spi.h | 2 +- nuttx/include/nuttx/syslog/ramlog.h | 2 +- nuttx/include/nuttx/time.h | 2 +- nuttx/include/nuttx/usb/audio.h | 12 ++--- nuttx/include/nuttx/usb/cdc.h | 4 +- nuttx/include/nuttx/usb/composite.h | 6 +-- nuttx/include/nuttx/usb/hid.h | 10 ++-- nuttx/include/nuttx/usb/hid_parser.h | 6 +-- nuttx/include/nuttx/usb/ohci.h | 6 +-- nuttx/include/nuttx/usb/usb.h | 4 +- nuttx/include/nuttx/usb/usbdev_trace.h | 2 +- nuttx/include/nuttx/usb/usbhost.h | 2 +- nuttx/include/nuttx/vt100.h | 8 +-- nuttx/include/nuttx/watchdog.h | 8 +-- .../nuttx/wireless/cc3000/cc3000_common.h | 52 +++++++++---------- nuttx/include/nuttx/wqueue.h | 2 +- nuttx/include/nxflat.h | 4 +- nuttx/include/pthread.h | 6 +-- nuttx/include/stdlib.h | 2 +- nuttx/include/sys/mount.h | 2 +- nuttx/include/sys/prctl.h | 8 +-- nuttx/include/sys/sendfile.h | 2 +- nuttx/include/sys/sockio.h | 2 +- nuttx/include/termios.h | 4 +- nuttx/libc/README.txt | 2 +- nuttx/libc/dirent/lib_readdirr.c | 2 +- nuttx/libc/fixedmath/lib_b16atan2.c | 2 +- nuttx/libc/math/lib_acos.c | 4 +- nuttx/libc/math/lib_acosf.c | 4 +- nuttx/libc/math/lib_acosl.c | 4 +- nuttx/libc/math/lib_asin.c | 4 +- nuttx/libc/math/lib_asinf.c | 4 +- nuttx/libc/math/lib_asinl.c | 4 +- nuttx/libc/math/lib_atan.c | 4 +- nuttx/libc/math/lib_atan2.c | 4 +- nuttx/libc/math/lib_atan2f.c | 4 +- nuttx/libc/math/lib_atan2l.c | 4 +- nuttx/libc/math/lib_atanf.c | 4 +- nuttx/libc/math/lib_atanl.c | 4 +- nuttx/libc/math/lib_ceil.c | 4 +- nuttx/libc/math/lib_ceilf.c | 4 +- nuttx/libc/math/lib_ceill.c | 4 +- nuttx/libc/math/lib_cos.c | 4 +- nuttx/libc/math/lib_cosf.c | 4 +- nuttx/libc/math/lib_cosh.c | 4 +- nuttx/libc/math/lib_coshf.c | 4 +- nuttx/libc/math/lib_coshl.c | 4 +- nuttx/libc/math/lib_cosl.c | 4 +- nuttx/libc/math/lib_exp.c | 4 +- nuttx/libc/math/lib_expf.c | 4 +- nuttx/libc/math/lib_expl.c | 4 +- nuttx/libc/math/lib_fabs.c | 4 +- nuttx/libc/math/lib_fabsf.c | 4 +- nuttx/libc/math/lib_fabsl.c | 4 +- nuttx/libc/math/lib_floor.c | 4 +- nuttx/libc/math/lib_floorf.c | 4 +- nuttx/libc/math/lib_floorl.c | 4 +- nuttx/libc/math/lib_fmod.c | 4 +- nuttx/libc/math/lib_fmodf.c | 4 +- nuttx/libc/math/lib_fmodl.c | 4 +- nuttx/libc/math/lib_frexp.c | 4 +- nuttx/libc/math/lib_frexpf.c | 4 +- nuttx/libc/math/lib_frexpl.c | 4 +- nuttx/libc/math/lib_ldexp.c | 4 +- nuttx/libc/math/lib_ldexpf.c | 4 +- nuttx/libc/math/lib_ldexpl.c | 4 +- nuttx/libc/math/lib_libexpi.c | 4 +- nuttx/libc/math/lib_libsqrtapprox.c | 4 +- nuttx/libc/math/lib_log.c | 4 +- nuttx/libc/math/lib_log10.c | 4 +- nuttx/libc/math/lib_log10f.c | 4 +- nuttx/libc/math/lib_log10l.c | 4 +- nuttx/libc/math/lib_log2.c | 4 +- nuttx/libc/math/lib_log2f.c | 4 +- nuttx/libc/math/lib_log2l.c | 4 +- nuttx/libc/math/lib_logf.c | 4 +- nuttx/libc/math/lib_logl.c | 4 +- nuttx/libc/math/lib_modf.c | 4 +- nuttx/libc/math/lib_modff.c | 4 +- nuttx/libc/math/lib_modfl.c | 4 +- nuttx/libc/math/lib_pow.c | 4 +- nuttx/libc/math/lib_powf.c | 4 +- nuttx/libc/math/lib_powl.c | 4 +- nuttx/libc/math/lib_round.c | 2 +- nuttx/libc/math/lib_roundf.c | 2 +- nuttx/libc/math/lib_roundl.c | 2 +- nuttx/libc/math/lib_sin.c | 4 +- nuttx/libc/math/lib_sinf.c | 4 +- nuttx/libc/math/lib_sinh.c | 4 +- nuttx/libc/math/lib_sinhf.c | 4 +- nuttx/libc/math/lib_sinhl.c | 4 +- nuttx/libc/math/lib_sinl.c | 4 +- nuttx/libc/math/lib_sqrt.c | 4 +- nuttx/libc/math/lib_sqrtf.c | 4 +- nuttx/libc/math/lib_sqrtl.c | 4 +- nuttx/libc/math/lib_tan.c | 4 +- nuttx/libc/math/lib_tanf.c | 4 +- nuttx/libc/math/lib_tanh.c | 4 +- nuttx/libc/math/lib_tanhf.c | 4 +- nuttx/libc/math/lib_tanhl.c | 4 +- nuttx/libc/math/lib_tanl.c | 4 +- nuttx/libc/misc/lib_crc32.c | 2 +- nuttx/libc/misc/lib_kbddecode.c | 2 +- nuttx/libc/misc/lib_kbdencode.c | 6 +-- nuttx/libc/misc/lib_sendfile.c | 2 +- nuttx/libc/net/lib_inetaddr.c | 2 +- nuttx/libc/net/lib_inetntop.c | 2 +- nuttx/libc/pthread/pthread_attrinit.c | 2 +- nuttx/libc/pthread/pthread_condattrinit.c | 2 +- nuttx/libc/queue/dq_rem.c | 4 +- nuttx/libc/spawn/lib_psfa_addopen.c | 2 +- nuttx/libc/spawn/lib_psfa_dump.c | 4 +- nuttx/libc/stdio/lib_avsprintf.c | 2 +- nuttx/libc/stdio/lib_fgetpos.c | 2 +- nuttx/libc/stdio/lib_fsetpos.c | 2 +- nuttx/libc/stdio/lib_libvsprintf.c | 4 +- nuttx/libc/stdio/lib_perror.c | 2 +- nuttx/libc/stdio/lib_stdinstream.c | 2 +- nuttx/libc/stdlib/lib_checkbase.c | 4 +- nuttx/libc/stdlib/lib_itoa.c | 2 +- nuttx/libc/stdlib/lib_strtol.c | 2 +- nuttx/libc/stdlib/lib_strtoll.c | 2 +- nuttx/libc/stdlib/lib_strtoul.c | 2 +- nuttx/libc/stdlib/lib_strtoull.c | 2 +- nuttx/libc/string/lib_strpbrk.c | 2 +- nuttx/libc/string/lib_strtok.c | 2 +- nuttx/libc/string/lib_strtokr.c | 2 +- nuttx/libc/string/lib_vikmemcpy.c | 12 ++--- nuttx/libc/termios/lib_cfgetspeed.c | 2 +- nuttx/libc/termios/lib_cfsetspeed.c | 4 +- nuttx/libc/termios/lib_tcgetattr.c | 4 +- nuttx/libc/termios/lib_tcsetattr.c | 8 +-- nuttx/libc/time/lib_calendar2utc.c | 4 +- nuttx/libc/time/lib_gmtimer.c | 2 +- nuttx/libc/time/lib_time.c | 2 +- nuttx/libc/unistd/lib_getcwd.c | 2 +- nuttx/libc/wqueue/work_thread.c | 2 +- nuttx/libnx/nxfonts/nxfonts_convert.c | 2 +- nuttx/libnx/nxfonts/nxfonts_getfont.c | 4 +- nuttx/libnx/nxfonts/nxfonts_mono5x8.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans17x22.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans17x23b.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans20x26.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans20x27b.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans22x29.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans22x29b.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans28x37.h | 2 +- nuttx/libnx/nxfonts/nxfonts_sans39x48.h | 2 +- nuttx/libnx/nxfonts/nxfonts_serif22x28b.h | 2 +- nuttx/libnx/nxfonts/nxfonts_serif22x29.h | 2 +- nuttx/libnx/nxfonts/nxfonts_serif27x38b.h | 2 +- nuttx/libnx/nxfonts/nxfonts_serif29x37.h | 4 +- nuttx/libnx/nxfonts/nxfonts_serif38x48.h | 2 +- nuttx/libnx/nxfonts/nxfonts_serif38x49b.h | 2 +- nuttx/libnx/nxglib/nxglib_circlepts.c | 2 +- nuttx/libnx/nxglib/nxglib_circletraps.c | 2 +- nuttx/libnx/nxglib/nxglib_rectunion.c | 2 +- nuttx/libnx/nxmu/nx_bitmap.c | 16 +++--- nuttx/libnx/nxmu/nx_getrectangle.c | 16 +++--- nuttx/libnx/nxtk/nxtk_drawcircletoolbar.c | 2 +- nuttx/libnx/nxtk/nxtk_drawcirclewindow.c | 2 +- nuttx/libnx/nxtk/nxtk_drawframe.c | 2 +- nuttx/libnx/nxtk/nxtk_filltrapwindow.c | 4 +- nuttx/libnx/nxtk/nxtk_movetoolbar.c | 2 +- nuttx/libnx/nxtk/nxtk_movewindow.c | 2 +- nuttx/mm/Makefile | 4 +- nuttx/mm/mm_granalloc.c | 2 +- nuttx/mm/mm_graninit.c | 2 +- nuttx/mm/mm_initialize.c | 2 +- nuttx/mm/mm_mallinfo.c | 6 +-- nuttx/mm/mm_memalign.c | 4 +- nuttx/net/net_allocroute.c | 2 +- nuttx/net/net_close.c | 4 +- nuttx/net/net_dup.c | 4 +- nuttx/net/net_sockets.c | 2 +- nuttx/net/uip/uip_igmpgroup.c | 48 ++++++++--------- nuttx/net/uip/uip_igmpinit.c | 42 +++++++-------- nuttx/net/uip/uip_igmpinput.c | 42 +++++++-------- nuttx/net/uip/uip_igmpjoin.c | 48 ++++++++--------- nuttx/net/uip/uip_igmpleave.c | 44 ++++++++-------- nuttx/net/uip/uip_igmpmsg.c | 44 ++++++++-------- nuttx/net/uip/uip_igmppoll.c | 42 +++++++-------- nuttx/net/uip/uip_igmpsend.c | 2 +- nuttx/net/uip/uip_igmptimer.c | 44 ++++++++-------- nuttx/net/uip/uip_lock.c | 2 +- nuttx/net/uip/uip_mcastmac.c | 42 +++++++-------- nuttx/net/uip/uip_send.c | 2 +- nuttx/net/uip/uip_tcpseqno.c | 2 +- nuttx/sched/atexit.c | 2 +- nuttx/sched/clock_settime.c | 4 +- nuttx/sched/env_getenv.c | 2 +- nuttx/sched/group_childstatus.c | 2 +- nuttx/sched/group_find.c | 2 +- nuttx/sched/group_join.c | 8 +-- nuttx/sched/group_leave.c | 4 +- nuttx/sched/group_setupidlefiles.c | 2 +- nuttx/sched/group_signal.c | 2 +- nuttx/sched/irq_attach.c | 2 +- nuttx/sched/mq_notify.c | 6 +-- nuttx/sched/mq_recover.c | 2 +- nuttx/sched/mq_send.c | 2 +- nuttx/sched/mq_sndinternal.c | 8 +-- nuttx/sched/mq_timedsend.c | 2 +- nuttx/sched/mq_unlink.c | 2 +- nuttx/sched/on_exit.c | 2 +- nuttx/sched/os_bringup.c | 2 +- nuttx/sched/pause.c | 4 +- nuttx/sched/pg_internal.h | 2 +- nuttx/sched/pg_worker.c | 18 +++---- nuttx/sched/prctl.c | 4 +- nuttx/sched/pthread_condsignal.c | 2 +- nuttx/sched/pthread_internal.h | 2 +- nuttx/sched/pthread_mutexlock.c | 2 +- nuttx/sched/pthread_mutexunlock.c | 2 +- nuttx/sched/sched_addblocked.c | 2 +- nuttx/sched/sched_cpuload.c | 2 +- nuttx/sched/sched_garbage.c | 4 +- nuttx/sched/sched_getstreams.c | 2 +- nuttx/sched/sched_mergepending.c | 2 +- nuttx/sched/sched_processtimer.c | 2 +- nuttx/sched/sched_releasetcb.c | 2 +- nuttx/sched/sched_removereadytorun.c | 2 +- nuttx/sched/sched_setpriority.c | 6 +-- nuttx/sched/sched_waitid.c | 22 ++++---- nuttx/sched/sched_waitpid.c | 28 +++++----- nuttx/sched/sem_holder.c | 14 ++--- nuttx/sched/sem_open.c | 2 +- nuttx/sched/sem_timedwait.c | 4 +- nuttx/sched/sem_waitirq.c | 2 +- nuttx/sched/sig_action.c | 2 +- nuttx/sched/sig_pending.c | 2 +- nuttx/sched/sig_procmask.c | 2 +- nuttx/sched/sig_removependingsignal.c | 2 +- nuttx/sched/sig_suspend.c | 2 +- nuttx/sched/task_posixspawn.c | 2 +- nuttx/sched/task_reparent.c | 10 ++-- nuttx/sched/task_restart.c | 4 +- nuttx/sched/task_spawn.c | 2 +- nuttx/sched/task_vfork.c | 6 +-- nuttx/sched/timer_create.c | 2 +- nuttx/sched/timer_getoverrun.c | 2 +- nuttx/sched/wd_create.c | 2 +- nuttx/sched/wd_delete.c | 2 +- 349 files changed, 1082 insertions(+), 1082 deletions(-) diff --git a/nuttx/drivers/analog/ad5410.c b/nuttx/drivers/analog/ad5410.c index 0c7746e19..0ad9fd14b 100644 --- a/nuttx/drivers/analog/ad5410.c +++ b/nuttx/drivers/analog/ad5410.c @@ -4,7 +4,7 @@ * Copyright (C) 2011 Li Zhuoyi. All rights reserved. * Author: Li Zhuoyi * History: 0.1 2011-08-05 initial version - * + * * This file is a part of NuttX: * * Copyright (C) 2010 Gregory Nutt. All rights reserved. @@ -63,7 +63,7 @@ #define AD5410_CMD_REXT (1<<13) #define AD5410_CMD_OUTEN (1<<12) -#define AD5410_CMD_SRCLK(x) (x<<8) +#define AD5410_CMD_SRCLK(x) (x<<8) #define AD5410_CMD_SRSTEP(x) (x<<5) #define AD5410_CMD_SREN (1<<4) #define AD5410_CMD_DCEN (1<<3) diff --git a/nuttx/drivers/analog/ads1255.c b/nuttx/drivers/analog/ads1255.c index 6402a9166..0fd771001 100644 --- a/nuttx/drivers/analog/ads1255.c +++ b/nuttx/drivers/analog/ads1255.c @@ -4,7 +4,7 @@ * Copyright (C) 2011 Li Zhuoyi. All rights reserved. * Author: Li Zhuoyi * History: 0.1 2011-08-05 initial version - * 0.2 2011-08-25 fix bug in g_adcdev (cd_ops -> ad_ops,cd_priv -> ad_priv) + * 0.2 2011-08-25 fix bug in g_adcdev (cd_ops -> ad_ops,cd_priv -> ad_priv) * * This file is a part of NuttX: * diff --git a/nuttx/drivers/analog/dac.c b/nuttx/drivers/analog/dac.c index 2714f2135..515fc2684 100644 --- a/nuttx/drivers/analog/dac.c +++ b/nuttx/drivers/analog/dac.c @@ -4,7 +4,7 @@ * Copyright (C) 2011 Li Zhuoyi. All rights reserved. * Author: Li Zhuoyi * History: 0.1 2011-08-04 initial version - * + * * Derived from drivers/can.c * * Copyright (C) 2008-2009Gregory Nutt. All rights reserved. diff --git a/nuttx/drivers/audio/i2schar.c b/nuttx/drivers/audio/i2schar.c index 155475ee3..3bb0d2376 100644 --- a/nuttx/drivers/audio/i2schar.c +++ b/nuttx/drivers/audio/i2schar.c @@ -438,7 +438,7 @@ int i2schar_register(FAR struct i2s_dev_s *i2s, int minor) return OK; } - + return -ENOMEM; } diff --git a/nuttx/drivers/bch/bchlib_read.c b/nuttx/drivers/bch/bchlib_read.c index f4fad1096..5257e6f2b 100644 --- a/nuttx/drivers/bch/bchlib_read.c +++ b/nuttx/drivers/bch/bchlib_read.c @@ -123,7 +123,7 @@ ssize_t bchlib_read(FAR void *handle, FAR char *buffer, size_t offset, size_t le { nbytes = bch->sectsize - sectoffset; } - else + else { nbytes = len; } diff --git a/nuttx/drivers/bch/bchlib_write.c b/nuttx/drivers/bch/bchlib_write.c index 14f32ff7c..21fce2cd0 100644 --- a/nuttx/drivers/bch/bchlib_write.c +++ b/nuttx/drivers/bch/bchlib_write.c @@ -122,7 +122,7 @@ ssize_t bchlib_write(FAR void *handle, FAR const char *buffer, size_t offset, si { nbytes = bch->sectsize - sectoffset; } - else + else { nbytes = len; } diff --git a/nuttx/drivers/input/Kconfig b/nuttx/drivers/input/Kconfig index d596dfc1c..9677e0ec7 100644 --- a/nuttx/drivers/input/Kconfig +++ b/nuttx/drivers/input/Kconfig @@ -57,7 +57,7 @@ config INPUT_ADS7843E ---help--- Enable support for the TI/Burr-Brown ADS7842 touchscreen controller. I believe that driver should be compatibile with the TI/Burr-Brown TSC2046 and XPT2046 - touchscreen controllers as well. + touchscreen controllers as well. if INPUT_ADS7843E @@ -116,7 +116,7 @@ config ADS7843E_THRESHX thresholds. This trades reduces data rate for some loss in dragging accuracy. For 12-bit values so the raw ranges are 0-4095. So for example, if your display is 320x240, then THRESHX=13 and THRESHY=17 would correspond to one pixel. Default: 12 - + config ADS7843E_THRESHY int "Y threshold" default 12 @@ -132,7 +132,7 @@ config INPUT_STMPE811 bool "STMicro STMPE811 Driver" default n ---help--- - Enables support for the STMPE811 driver + Enables support for the STMPE811 driver if INPUT_STMPE811 @@ -210,7 +210,7 @@ config STMPE811_THRESHX STMPE811 is configure for 12-bit values so the raw ranges are 0-4095. So for example, if your display is 320x240, then THRESHX=13 and THRESHY=17 would correspond to one pixel. Default: 12 - + config STMPE811_THRESHY int "Y threshold" default 12 diff --git a/nuttx/drivers/input/max11802.c b/nuttx/drivers/input/max11802.c index bce72ed46..8df6690f0 100644 --- a/nuttx/drivers/input/max11802.c +++ b/nuttx/drivers/input/max11802.c @@ -269,7 +269,7 @@ static uint16_t max11802_sendcmd(FAR struct max11802_dev_s *priv, uint8_t cmd, i /* Send the command */ (void)SPI_SEND(priv->spi, cmd); - + /* Read the data */ SPI_RECVBLOCK(priv->spi, buffer, 2); @@ -278,7 +278,7 @@ static uint16_t max11802_sendcmd(FAR struct max11802_dev_s *priv, uint8_t cmd, i result = ((uint16_t)buffer[0] << 8) | (uint16_t)buffer[1]; *tags = result & 0xF; result >>= 4; // Get rid of tags - + ivdbg("cmd:%02x response:%04x\n", cmd, result); return result; } @@ -303,7 +303,7 @@ static void max11802_notify(FAR struct max11802_dev_s *priv) * is no longer available. */ - sem_post(&priv->waitsem); + sem_post(&priv->waitsem); } /* If there are threads waiting on poll() for MAX11802 data to become available, @@ -415,7 +415,7 @@ static int max11802_waitsample(FAR struct max11802_dev_s *priv, while (max11802_sample(priv, sample) < 0) { /* Wait for a change in the MAX11802 state */ - + ivdbg("Waiting..\n"); priv->nwaiters++; ret = sem_wait(&priv->waitsem); @@ -548,10 +548,10 @@ static void max11802_worker(FAR void *arg) /* Lock the SPI bus so that we have exclusive access */ max11802_lock(priv->spi); - + /* Start coordinate measurement */ (void)max11802_sendcmd(priv, MAX11802_CMD_MEASUREXY, &tags); - + /* Get exclusive access to the driver data structure */ do @@ -576,7 +576,7 @@ static void max11802_worker(FAR void *arg) ivdbg("\nPD\n"); else ivdbg("\nPU\n"); - + if (!pendown) { /* The pen is up.. reset thresholding variables. */ @@ -589,7 +589,7 @@ static void max11802_worker(FAR void *arg) */ ivdbg("\nPC%d\n", priv->sample.contact); - + if (priv->sample.contact == CONTACT_NONE || priv->sample.contact == CONTACT_UP) @@ -632,11 +632,11 @@ static void max11802_worker(FAR void *arg) * the hardware value can change in the middle of the readout, * causing the upper bits to be still invalid even though lower * bits indicate valid result. - * + * * We work around this by reading the registers once more after * the tags indicate they are ready. */ - + int readycount = 0; do { #ifdef CONFIG_MAX11802_SWAPXY @@ -651,17 +651,17 @@ static void max11802_worker(FAR void *arg) readycount++; } } while (readycount < 2); - + /* Continue to sample the position while the pen is down */ wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1, (uint32_t)priv); - + /* Check if data is valid */ if ((tags & 0x03) != 0) { ivdbg("Touch ended before measurement\n"); goto ignored; } - + /* Perform a thresholding operation so that the results will be more stable. * If the difference from the last sample is small, then ignore the event. * REVISIT: Should a large change in pressure also generate a event? @@ -1253,27 +1253,27 @@ int max11802_register(FAR struct spi_dev_s *spi, (void)SPI_SEND(priv->spi, MAX11802_CMD_TIMING_WR); (void)SPI_SEND(priv->spi, MAX11802_TIMING); SPI_SELECT(priv->spi, SPIDEV_TOUCHSCREEN, false); - + SPI_SELECT(priv->spi, SPIDEV_TOUCHSCREEN, true); (void)SPI_SEND(priv->spi, MAX11802_CMD_DELAY_WR); (void)SPI_SEND(priv->spi, MAX11802_DELAY); SPI_SELECT(priv->spi, SPIDEV_TOUCHSCREEN, false); - + /* Test that the device access was successful. */ SPI_SELECT(priv->spi, SPIDEV_TOUCHSCREEN, true); (void)SPI_SEND(priv->spi, MAX11802_CMD_MODE_RD); ret = SPI_SEND(priv->spi, 0); SPI_SELECT(priv->spi, SPIDEV_TOUCHSCREEN, false); - + /* Unlock the bus */ max11802_unlock(spi); - + if (ret != MAX11802_MODE) { idbg("max11802 mode readback failed: %02x\n", ret); goto errout_with_priv; } - + /* Register the device as an input device */ (void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor); diff --git a/nuttx/drivers/input/stmpe811_adc.c b/nuttx/drivers/input/stmpe811_adc.c index 1ffe987e6..d0fde02e1 100644 --- a/nuttx/drivers/input/stmpe811_adc.c +++ b/nuttx/drivers/input/stmpe811_adc.c @@ -258,7 +258,7 @@ uint16_t stmpe811_adcread(STMPE811_HANDLE handle, int pin) /* At the completion of the conversion, return whatever we read from * from the channel register associated with the pin. */ - + return stmpe811_getreg16(priv, STMPE811_ADC_DATACH(pin)); } diff --git a/nuttx/drivers/input/stmpe811_base.c b/nuttx/drivers/input/stmpe811_base.c index f37c24622..093ff39ae 100644 --- a/nuttx/drivers/input/stmpe811_base.c +++ b/nuttx/drivers/input/stmpe811_base.c @@ -397,7 +397,7 @@ uint8_t stmpe811_getreg8(FAR struct stmpe811_dev_s *priv, uint8_t regaddr) { /* 8-bit data read sequence: * - * Start - I2C_Write_Address - STMPE811_Reg_Address - + * Start - I2C_Write_Address - STMPE811_Reg_Address - * Repeated_Start - I2C_Read_Address - STMPE811_Read_Data - STOP */ @@ -414,7 +414,7 @@ uint8_t stmpe811_getreg8(FAR struct stmpe811_dev_s *priv, uint8_t regaddr) * (no STOP) */ /* Set up the 8-bit STMPE811 data read message */ - + msg[1].addr = priv->config->address; /* 7-bit address */ msg[1].flags = I2C_M_READ; /* Read transaction, beginning with Re-START */ msg[1].buffer = ®val; /* Transfer to this address */ @@ -500,7 +500,7 @@ uint16_t stmpe811_getreg16(FAR struct stmpe811_dev_s *priv, uint8_t regaddr) { /* 16-bit data read sequence: * - * Start - I2C_Write_Address - STMPE811_Reg_Address - + * Start - I2C_Write_Address - STMPE811_Reg_Address - * Repeated_Start - I2C_Read_Address - STMPE811_Read_Data_1 - * STMPE811_Read_Data_2 - STOP */ @@ -519,7 +519,7 @@ uint16_t stmpe811_getreg16(FAR struct stmpe811_dev_s *priv, uint8_t regaddr) * (no STOP) */ /* Set up the 8-bit STMPE811 data read message */ - + msg[1].addr = priv->config->address; /* 7-bit address */ msg[1].flags = I2C_M_READ; /* Read transaction, beginning with Re-START */ msg[1].buffer = rxbuffer; /* Transfer to this address */ diff --git a/nuttx/drivers/input/stmpe811_gpio.c b/nuttx/drivers/input/stmpe811_gpio.c index 7c75e402e..267f26cf4 100644 --- a/nuttx/drivers/input/stmpe811_gpio.c +++ b/nuttx/drivers/input/stmpe811_gpio.c @@ -215,7 +215,7 @@ int stmpe811_gpioconfig(STMPE811_HANDLE handle, uint8_t pinconfig) regval &= pinmask; } stmpe811_putreg8(priv, STMPE811_GPIO_RE, regval); - + /* Disable interrupts for now */ regval = stmpe811_getreg8(priv, STMPE811_GPIO_EN); diff --git a/nuttx/drivers/input/stmpe811_temp.c b/nuttx/drivers/input/stmpe811_temp.c index 0fefd2069..9b5e7e150 100644 --- a/nuttx/drivers/input/stmpe811_temp.c +++ b/nuttx/drivers/input/stmpe811_temp.c @@ -98,11 +98,11 @@ int stmpe811_tempinitialize(STMPE811_HANDLE handle) /* Enable the temperature sensor */ stmpe811_putreg8(priv, STMPE811_TEMP_CTRL, TEMP_CTRL_ENABLE); - + /* Aquire data enable */ stmpe811_putreg8(priv, STMPE811_TEMP_CTRL, (TEMP_CTRL_ACQ|TEMP_CTRL_ENABLE)); - + return OK; } @@ -124,14 +124,14 @@ int stmpe811_tempinitialize(STMPE811_HANDLE handle) uint16_t stmpe811_tempread(STMPE811_HANDLE handle) { FAR struct stmpe811_dev_s *priv = (FAR struct stmpe811_dev_s *)handle; - uint32_t temp = 0; + uint32_t temp = 0; uint8_t temp1; uint8_t temp2; - + /* Acquire data enable */ stmpe811_putreg8(priv, STMPE811_TEMP_CTRL, (TEMP_CTRL_ACQ|TEMP_CTRL_ENABLE)); - + /* Read the temperature */ temp1 = stmpe811_getreg8(priv, STMPE811_SYS_CTRL2); diff --git a/nuttx/drivers/input/stmpe811_tsc.c b/nuttx/drivers/input/stmpe811_tsc.c index 3c8cc659a..a3f557aab 100644 --- a/nuttx/drivers/input/stmpe811_tsc.c +++ b/nuttx/drivers/input/stmpe811_tsc.c @@ -180,7 +180,7 @@ static void stmpe811_notify(FAR struct stmpe811_dev_s *priv) * is no longer available. */ - sem_post(&priv->waitsem); + sem_post(&priv->waitsem); } /* If there are threads waiting on poll() for STMPE811 data to become available, @@ -297,7 +297,7 @@ static inline int stmpe811_waitsample(FAR struct stmpe811_dev_s *priv, while (stmpe811_sample(priv, sample) < 0) { /* Wait for a change in the STMPE811 state */ - + priv->nwaiters++; ret = sem_wait(&priv->waitsem); priv->nwaiters--; @@ -1133,7 +1133,7 @@ ignored: (void)wd_start(priv->wdog, STMPE811_PENUP_TICKS, stmpe811_timeout, 1, (uint32_t)((uintptr_t)priv)); } - + /* Reset and clear all data in the FIFO */ stmpe811_putreg8(priv, STMPE811_FIFO_STA, FIFO_STA_FIFO_RESET); diff --git a/nuttx/drivers/input/tsc2007.c b/nuttx/drivers/input/tsc2007.c index bd2450687..6f9851d79 100644 --- a/nuttx/drivers/input/tsc2007.c +++ b/nuttx/drivers/input/tsc2007.c @@ -261,7 +261,7 @@ static void tsc2007_notify(FAR struct tsc2007_dev_s *priv) * is no longer available. */ - sem_post(&priv->waitsem); + sem_post(&priv->waitsem); } /* If there are threads waiting on poll() for TSC2007 data to become available, @@ -373,7 +373,7 @@ static int tsc2007_waitsample(FAR struct tsc2007_dev_s *priv, while (tsc2007_sample(priv, sample) < 0) { /* Wait for a change in the TSC2007 state */ - + priv->nwaiters++; ret = sem_wait(&priv->waitsem); priv->nwaiters--; @@ -436,7 +436,7 @@ static int tsc2007_activate(FAR struct tsc2007_dev_s *priv, uint8_t cmd) msg.flags = 0; /* Write transaction, beginning with START */ msg.buffer = &data; /* Transfer from this address */ msg.length = 1; /* Send one byte following the address */ - + /* Ignore errors from the setup command (because it is not ACKed) */ (void)I2C_TRANSFER(priv->i2c, &msg, 1); @@ -449,7 +449,7 @@ static int tsc2007_activate(FAR struct tsc2007_dev_s *priv, uint8_t cmd) msg.flags = 0; /* Write transaction, beginning with START */ msg.buffer = &data; /* Transfer from this address */ msg.length = 1; /* Send one byte following the address */ - + ret = I2C_TRANSFER(priv->i2c, &msg, 1); if (ret < 0) { @@ -487,7 +487,7 @@ static int tsc2007_transfer(FAR struct tsc2007_dev_s *priv, uint8_t cmd) msg.flags = 0; /* Write transaction, beginning with START */ msg.buffer = &cmd; /* Transfer from this address */ msg.length = 1; /* Send one byte following the address */ - + ret = I2C_TRANSFER(priv->i2c, &msg, 1); if (ret < 0) { @@ -531,7 +531,7 @@ static int tsc2007_transfer(FAR struct tsc2007_dev_s *priv, uint8_t cmd) msg.flags = I2C_M_READ; /* Read transaction, beginning with START */ msg.buffer = data12; /* Transfer to this address */ msg.length = 2; /* Read two bytes following the address */ - + ret = I2C_TRANSFER(priv->i2c, &msg, 1); if (ret < 0) { diff --git a/nuttx/drivers/lcd/memlcd.c b/nuttx/drivers/lcd/memlcd.c index 45cc46411..dd7b534fe 100644 --- a/nuttx/drivers/lcd/memlcd.c +++ b/nuttx/drivers/lcd/memlcd.c @@ -95,7 +95,7 @@ /* contrast setting, related to VCOM toggle frequency * higher frequency gives better contrast, instead, saves power */ - + #define MEMLCD_CONTRAST 24 #define MEMLCD_MAXCONTRAST 60 #define MEMLCD_MINCONTRAST 1 @@ -333,14 +333,14 @@ static inline void memlcd_select(FAR struct spi_dev_s *spi) #else static void memlcd_select(FAR struct spi_dev_s *spi) { - /* + /* * Select memlcd (locking the SPI bus in case there are multiple * devices competing for the SPI bus */ SPI_LOCK(spi, true); SPI_SELECT(spi, SPIDEV_DISPLAY, true); - /* + /* * Now make sure that the SPI bus is configured for the memlcd (it * might have gotten configured for a different device while unlocked) */ @@ -435,7 +435,7 @@ static int memlcd_extcominisr(int irq, FAR void *context) struct memlcd_dev_s *mlcd = &g_memlcddev; #ifdef CONFIG_MEMLCD_EXTCOMIN_MODE_HW # error "CONFIG_MEMLCD_EXTCOMIN_MODE_HW unsupported yet!" - /* + /* * start a worker thread, do it in bottom half? */ #else diff --git a/nuttx/drivers/lcd/mio283qt2.c b/nuttx/drivers/lcd/mio283qt2.c index 4f737eb7f..837dd0d90 100644 --- a/nuttx/drivers/lcd/mio283qt2.c +++ b/nuttx/drivers/lcd/mio283qt2.c @@ -12,7 +12,7 @@ * Ltd., Revision 1.0 * 2) Data Sheet: HX8347-D(T), 240RGB x 320 dot, 262K color, with internal GRAM, TFT * Mobile Single Chip Driver Version 02 March, Doc No. HX8347-D(T)-DS, Himax - * Technologies, Inc., 2009, + * Technologies, Inc., 2009, * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -42,7 +42,7 @@ * POSSIBILITY OF SUCH DAMAGE. * **************************************************************************************/ - + /************************************************************************************** * Included Files **************************************************************************************/ @@ -119,7 +119,7 @@ /* Display/Color Properties ***********************************************************/ /* Display Resolution */ -#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) +#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) # define MIO283QT2_XRES 320 # define MIO283QT2_YRES 240 #else @@ -143,7 +143,7 @@ /* LCD Profiles ***********************************************************************/ /* Many details of the controller initialization must, unfortunately, vary from LCD to - * LCD. I have looked at the spec and at three different drivers for LCDs that have + * LCD. I have looked at the spec and at three different drivers for LCDs that have * MIO283QT2 controllers. I have tried to summarize these differences as "LCD profiles" * * Most of the differences between LCDs are nothing more than a few minor bit @@ -352,7 +352,7 @@ static struct mio283qt2_dev_s g_lcddev; **************************************************************************************/ /************************************************************************************** - * Name: mio283qt2_putreg(lcd, + * Name: mio283qt2_putreg(lcd, * * Description: * Write to an LCD register @@ -443,7 +443,7 @@ static inline void mio283qt2_readsetup(FAR struct mio283qt2_lcd_s *lcd, * Read one correctly aligned pixel from the GRAM memory. Possibly shifting the * data and possibly swapping red and green components. * - * - ILI932x: Unknown -- assuming colors are in the color order + * - ILI932x: Unknown -- assuming colors are in the color order * **************************************************************************************/ @@ -530,7 +530,7 @@ static int mio283qt2_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *b FAR struct mio283qt2_lcd_s *lcd = priv->lcd; FAR const uint16_t *src = (FAR const uint16_t*)buffer; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels); @@ -580,7 +580,7 @@ static int mio283qt2_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, FAR uint16_t *dest = (FAR uint16_t*)buffer; uint16_t accum; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels); diff --git a/nuttx/drivers/lcd/mio283qt9a.c b/nuttx/drivers/lcd/mio283qt9a.c index 47b2fe27f..a4b9abf82 100644 --- a/nuttx/drivers/lcd/mio283qt9a.c +++ b/nuttx/drivers/lcd/mio283qt9a.c @@ -36,7 +36,7 @@ * POSSIBILITY OF SUCH DAMAGE. * **************************************************************************************/ - + /************************************************************************************** * Included Files **************************************************************************************/ @@ -113,7 +113,7 @@ /* Display/Color Properties ***********************************************************/ /* Display Resolution */ -#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) +#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) # define MIO283QT9A_XRES 320 # define MIO283QT9A_YRES 240 #else @@ -280,7 +280,7 @@ static uint16_t mio283qt9a_readreg(FAR struct mio283qt9a_lcd_s *lcd, uint8_t reg { /* Set the index register to the register address and read the register contents. */ - lcd->index(lcd, regaddr); + lcd->index(lcd, regaddr); return lcd->read(lcd); } #endif @@ -342,7 +342,7 @@ static inline void mio283qt9a_readsetup(FAR struct mio283qt9a_lcd_s *lcd, * Read one correctly aligned pixel from the GRAM memory. Possibly shifting the * data and possibly swapping red and green components. * - * - ILI932x: Unknown -- assuming colors are in the color order + * - ILI932x: Unknown -- assuming colors are in the color order * **************************************************************************************/ @@ -433,7 +433,7 @@ static int mio283qt9a_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t * FAR struct mio283qt9a_lcd_s *lcd = priv->lcd; FAR const uint16_t *src = (FAR const uint16_t*)buffer; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ //lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels); @@ -483,7 +483,7 @@ static int mio283qt9a_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer FAR uint16_t *dest = (FAR uint16_t*)buffer; uint16_t accum; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ lcdvdbg("row: %d col: %d npixels: %d\n", row, col, npixels); @@ -814,7 +814,7 @@ static inline int mio283qt9a_hwinitialize(FAR struct mio283qt9a_dev_s *priv) /************************************************************************************* * Public Functions **************************************************************************************/ - + /************************************************************************************** * Name: mio283qt9a_lcdinitialize * diff --git a/nuttx/drivers/lcd/nokia6100.c b/nuttx/drivers/lcd/nokia6100.c index 402cf8438..4fabf7885 100644 --- a/nuttx/drivers/lcd/nokia6100.c +++ b/nuttx/drivers/lcd/nokia6100.c @@ -433,7 +433,7 @@ static const struct fb_videoinfo_s g_videoinfo = /* This is the standard, NuttX Plane information object */ -static const struct lcd_planeinfo_s g_planeinfo = +static const struct lcd_planeinfo_s g_planeinfo = { .putrun = nokia_putrun, /* Put a run into LCD memory */ .getrun = nokia_getrun, /* Get a run from LCD memory */ @@ -443,12 +443,12 @@ static const struct lcd_planeinfo_s g_planeinfo = /* This is the standard, NuttX LCD driver object */ -static struct nokia_dev_s g_lcddev = +static struct nokia_dev_s g_lcddev = { .dev = { /* LCD Configuration */ - + .getvideoinfo = nokia_getvideoinfo, .getplaneinfo = nokia_getplaneinfo, @@ -523,7 +523,7 @@ static const uint8_t g_pwrctr[] = * P3: Grayscale setup */ -static const uint8_t g_datctl[] = +static const uint8_t g_datctl[] = { S1D15G10_DATCTL, /* Data control */ 0 @@ -586,11 +586,11 @@ static const uint8_t g_paset[] = }; /* Column address set (CASET) */ - + static const uint8_t g_caset[] = { S1D15G10_CASET, /* Column start address set */ - NOKIA_COLBIAS, + NOKIA_COLBIAS, 131 }; #endif /* CONFIG_NOKIA6100_S1D15G10 */ @@ -665,7 +665,7 @@ static const uint8_t g_setcon[] = * Assumptions: * **************************************************************************************/ - + static inline void nokia_configspi(FAR struct spi_dev_s *spi) { lcddbg("Mode: %d Bits: %d Frequency: %d\n", @@ -884,7 +884,7 @@ static void nokia_clrram(FAR struct spi_dev_s *spi) *rowbuf++ = NOKIA_LCD_DATA; } - + /* Select the LCD and send the RAMWR command */ nokia_select(spi); @@ -948,7 +948,7 @@ static int nokia_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffe cmd[0] = LCD_CASET; cmd[1] = row | NOKIA_LCD_DATA; cmd[2] = NOKIA_ENDCOL | NOKIA_LCD_DATA; - (void)SPI_SNDBLOCK(spi, cmd, 3); + (void)SPI_SNDBLOCK(spi, cmd, 3); nokia_deselect(spi); /* Then send the run */ @@ -1212,7 +1212,7 @@ FAR struct lcd_dev_s *nokia_lcdinitialize(FAR struct spi_dev_s *spi, unsigned in DEBUGASSERT(devno == 0); /* Initialize the driver data structure */ - + priv->spi = spi; /* Save the SPI instance */ priv->contrast = NOKIA_DEFAULT_CONTRAST; /* Initial contrast setting */ diff --git a/nuttx/drivers/lcd/sd1329.h b/nuttx/drivers/lcd/sd1329.h index 5d2ad4948..9517b18d6 100644 --- a/nuttx/drivers/lcd/sd1329.h +++ b/nuttx/drivers/lcd/sd1329.h @@ -86,7 +86,7 @@ #define SSD1329_SET_ROWADDR 0x75 /* Set Contract Current - * + * * This double byte command is to set Contrast Setting of the display. The * chip has 256 contrast steps from 0x00 to 0xff. The segment output current * increases linearly with the increase of contrast step. @@ -142,9 +142,9 @@ * ... * ff = 127.5 uA */ - + #define SSD1329_ICON_CURRRNG 0x91 - + /* Set Individual Icon Current * * This multiple byte command is used to fine tune the current for each of the diff --git a/nuttx/drivers/lcd/skeleton.c b/nuttx/drivers/lcd/skeleton.c index 44a45f26b..f161b3a5e 100644 --- a/nuttx/drivers/lcd/skeleton.c +++ b/nuttx/drivers/lcd/skeleton.c @@ -176,7 +176,7 @@ static const struct fb_videoinfo_s g_videoinfo = /* This is the standard, NuttX Plane information object */ -static const struct lcd_planeinfo_s g_planeinfo = +static const struct lcd_planeinfo_s g_planeinfo = { .putrun = skel_putrun, /* Put a run into LCD memory */ .getrun = skel_getrun, /* Get a run from LCD memory */ @@ -186,12 +186,12 @@ static const struct lcd_planeinfo_s g_planeinfo = /* This is the standard, NuttX LCD driver object */ -static struct skel_dev_s g_lcddev = +static struct skel_dev_s g_lcddev = { .dev = { /* LCD Configuration */ - + .getvideoinfo = skel_getvideoinfo, .getplaneinfo = skel_getplaneinfo, diff --git a/nuttx/drivers/lcd/ssd1289.c b/nuttx/drivers/lcd/ssd1289.c index 5171cbd99..9fb026068 100644 --- a/nuttx/drivers/lcd/ssd1289.c +++ b/nuttx/drivers/lcd/ssd1289.c @@ -38,7 +38,7 @@ * POSSIBILITY OF SUCH DAMAGE. * **************************************************************************************/ - + /************************************************************************************** * Included Files **************************************************************************************/ @@ -117,7 +117,7 @@ /* Display/Color Properties ***********************************************************/ /* Display Resolution */ -#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) +#if defined(CONFIG_LCD_LANDSCAPE) || defined(CONFIG_LCD_RLANDSCAPE) # define SSD1289_XRES 320 # define SSD1289_YRES 240 #else @@ -132,7 +132,7 @@ /* LCD Profiles ***********************************************************************/ /* Many details of the controller initialization must, unfortunately, vary from LCD to - * LCD. I have looked at the spec and at three different drivers for LCDs that have + * LCD. I have looked at the spec and at three different drivers for LCDs that have * SSD1289 controllers. I have tried to summarize these differences as "LCD profiles" * * Most of the differences between LCDs are nothing more than a few minor bit @@ -361,7 +361,7 @@ static struct ssd1289_dev_s g_lcddev; **************************************************************************************/ /************************************************************************************** - * Name: ssd1289_putreg(lcd, + * Name: ssd1289_putreg(lcd, * * Description: * Write to an LCD register @@ -448,7 +448,7 @@ static inline void ssd1289_readsetup(FAR struct ssd1289_lcd_s *lcd, FAR uint16_t * Read one correctly aligned pixel from the GRAM memory. Possibly shifting the * data and possibly swapping red and green components. * - * - ILI932x: Unknown -- assuming colors are in the color order + * - ILI932x: Unknown -- assuming colors are in the color order * **************************************************************************************/ @@ -590,7 +590,7 @@ static int ssd1289_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buf FAR struct ssd1289_lcd_s *lcd = priv->lcd; FAR const uint16_t *src = (FAR const uint16_t*)buffer; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ ssd1289_showrun(priv, row, col, npixels, true); @@ -674,7 +674,7 @@ static int ssd1289_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buf */ row = (SSD1289_YRES-1) - row; - + /* Then write the GRAM data, manually incrementing Y (which is col) */ for (i = 0; i < npixels; i++) @@ -721,7 +721,7 @@ static int ssd1289_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, FAR uint16_t *dest = (FAR uint16_t*)buffer; uint16_t accum; int i; - + /* Buffer must be provided and aligned to a 16-bit address boundary */ ssd1289_showrun(priv, row, col, npixels, false); @@ -807,7 +807,7 @@ static int ssd1289_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, */ row = (SSD1289_YRES-1) - row; - + /* Then write the GRAM data, manually incrementing Y (which is col) */ for (i = 0; i < npixels; i++) @@ -950,7 +950,7 @@ static int ssd1289_setpower(FAR struct lcd_dev_s *dev, int power) ssd1289_putreg(lcd, SSD1289_DSPCTRL, (SSD1289_DSPCTRL_ON | SSD1289_DSPCTRL_GON | - SSD1289_DSPCTRL_DTE | SSD1289_DSPCTRL_VLE(0))); + SSD1289_DSPCTRL_DTE | SSD1289_DSPCTRL_VLE(0))); g_lcddev.power = power; } @@ -1066,7 +1066,7 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv) ssd1289_putreg(lcd, SSD1289_DSPCTRL, (SSD1289_DSPCTRL_INTERNAL | SSD1289_DSPCTRL_GON | - SSD1289_DSPCTRL_VLE(0))); + SSD1289_DSPCTRL_VLE(0))); /* Then enable the oscillator */ @@ -1078,7 +1078,7 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv) ssd1289_putreg(lcd, SSD1289_DSPCTRL, (SSD1289_DSPCTRL_ON | SSD1289_DSPCTRL_GON | - SSD1289_DSPCTRL_VLE(0))); + SSD1289_DSPCTRL_VLE(0))); /* Take the LCD out of sleep mode */ @@ -1091,7 +1091,7 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv) ssd1289_putreg(lcd, SSD1289_DSPCTRL, (SSD1289_DSPCTRL_ON | SSD1289_DSPCTRL_DTE | - SSD1289_DSPCTRL_GON | SSD1289_DSPCTRL_VLE(0))); + SSD1289_DSPCTRL_GON | SSD1289_DSPCTRL_VLE(0))); #endif /* Set up power control registers. There is a lot of variability @@ -1199,7 +1199,7 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv) ssd1289_putreg(lcd, SSD1289_DSPCTRL, (SSD1289_DSPCTRL_ON | SSD1289_DSPCTRL_DTE | - SSD1289_DSPCTRL_GON | SSD1289_DSPCTRL_VLE(1))); + SSD1289_DSPCTRL_GON | SSD1289_DSPCTRL_VLE(1))); /* Frame cycle control. Alternative: SSD1289_FCYCCTRL_DIV8 */ diff --git a/nuttx/drivers/lcd/ssd1289.h b/nuttx/drivers/lcd/ssd1289.h index 6d5d1c3cb..cb4f09a8f 100644 --- a/nuttx/drivers/lcd/ssd1289.h +++ b/nuttx/drivers/lcd/ssd1289.h @@ -58,7 +58,7 @@ #define SSD1289_OUTCTRL 0x01 /* Driver output control */ #define SSD1289_ACCTRL 0x02 /* LCD drive AC control */ #define SSD1289_PWRCTRL1 0x03 /* Power control 1 */ -#define SSD1289_CMP1 0x05 /* Compare register 1 */ +#define SSD1289_CMP1 0x05 /* Compare register 1 */ #define SSD1289_CMP2 0x06 /* Compare register 2 */ #define SSD1289_DSPCTRL 0x07 /* Display control */ #define SSD1289_FCYCCTRL 0x0b /* Frame cycle control */ @@ -198,7 +198,7 @@ # define SSD1289_PWRCTRL1_DCT_FOSd12 (14 << SSD1289_PWRCTRL1_DCT_SHIFT) # define SSD1289_PWRCTRL1_DCT_FOSd16 (15 << SSD1289_PWRCTRL1_DCT_SHIFT) -/* Compare register 1 and 2 */ +/* Compare register 1 and 2 */ #define SSD1289_CMP1_CPG_SHIFT (2) #define SSD1289_CMP1_CPG_MASK (0x3f << SSD1289_CMP1_CPG_SHIFT) diff --git a/nuttx/drivers/mtd/at24xx.c b/nuttx/drivers/mtd/at24xx.c index 18e011634..a8f9d5afe 100644 --- a/nuttx/drivers/mtd/at24xx.c +++ b/nuttx/drivers/mtd/at24xx.c @@ -413,7 +413,7 @@ FAR struct mtd_dev_s *at24c_initialize(FAR struct i2c_dev_s *dev) if (priv) { /* Initialize the allocated structure */ - + priv->addr = CONFIG_AT24XX_ADDR; priv->pagesize = AT24XX_PAGESIZE; priv->npages = AT24XX_NPAGES; diff --git a/nuttx/drivers/mtd/at25.c b/nuttx/drivers/mtd/at25.c index 5d7ae96b0..0c3a5606e 100644 --- a/nuttx/drivers/mtd/at25.c +++ b/nuttx/drivers/mtd/at25.c @@ -224,7 +224,7 @@ static inline int at25_readid(struct at25_dev_s *priv) (void)SPI_SEND(priv->dev, AT25_RDID); manufacturer = SPI_SEND(priv->dev, AT25_DUMMY); memory = SPI_SEND(priv->dev, AT25_DUMMY); - + /* Deselect the FLASH and unlock the bus */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -266,7 +266,7 @@ static void at25_waitwritecomplete(struct at25_dev_s *priv) /* Send "Read Status Register (RDSR)" command */ (void)SPI_SEND(priv->dev, AT25_RDSR); - + /* Loop as long as the memory is busy with a write cycle */ do @@ -322,7 +322,7 @@ static void at25_waitwritecomplete(struct at25_dev_s *priv) { fdbg("ERROR: Write error, status: 0x%02x\n", status); } - + fvdbg("Complete, status: 0x%02x\n", status); } @@ -440,7 +440,7 @@ static inline void at25_pagewrite(struct at25_dev_s *priv, FAR const uint8_t *bu /* Enable the write access to the FLASH */ at25_writeenable(priv); - + /* Select this FLASH part */ SPI_SELECT(priv->dev, SPIDEV_FLASH, true); @@ -458,7 +458,7 @@ static inline void at25_pagewrite(struct at25_dev_s *priv, FAR const uint8_t *bu /* Then write the specified number of bytes */ SPI_SNDBLOCK(priv->dev, buffer, 256); - + /* Deselect the FLASH: Chip Select high */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -635,7 +635,7 @@ static int at25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) at25_unlock(priv->dev); } break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ diff --git a/nuttx/drivers/mtd/at45db.c b/nuttx/drivers/mtd/at45db.c index 6c5bcf3ca..4ca57ffcf 100644 --- a/nuttx/drivers/mtd/at45db.c +++ b/nuttx/drivers/mtd/at45db.c @@ -355,7 +355,7 @@ static inline int at45db_rdid(struct at45db_dev_s *priv) fvdbg("manufacturer: %02x devid1: %02x devid2: %02x\n", devid[0], devid[1], devid[2]); - + /* Check for a valid manufacturer and memory family */ if (devid[0] == AT45DB_MANUFACTURER && @@ -609,7 +609,7 @@ static int at45db_erase(FAR struct mtd_dev_s *mtd, off_t startblock, size_t nblo /* Take the lock so that we have exclusive access to the bus, then power up the * FLASH device. */ - + at45db_lock(priv); at45db_resume(priv); @@ -663,7 +663,7 @@ static ssize_t at45db_bwrite(FAR struct mtd_dev_s *mtd, off_t startblock, size_t /* Take the lock so that we have exclusive access to the bus, then power up the * FLASH device. */ - + at45db_lock(priv); at45db_resume(priv); @@ -704,10 +704,10 @@ static ssize_t at45db_read(FAR struct mtd_dev_s *mtd, off_t offset, size_t nbyte /* Take the lock so that we have exclusive access to the bus, then power up the * FLASH device. */ - + at45db_lock(priv); at45db_resume(priv); - + /* Higher performance write logic: We leave the chip busy after write and erase * operations. This improves write and erase performance because we do not have * to wait as long between transactions (other processing can occur while the chip @@ -776,7 +776,7 @@ static int at45db_ioctl(FAR struct mtd_dev_s *mtd, int cmd, unsigned long arg) /* Take the lock so that we have exclusive access to the bus, then * power up the FLASH device. */ - + at45db_lock(priv); at45db_resume(priv); @@ -787,7 +787,7 @@ static int at45db_ioctl(FAR struct mtd_dev_s *mtd, int cmd, unsigned long arg) at45db_unlock(priv); } break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ @@ -884,7 +884,7 @@ FAR struct mtd_dev_s *at45db_initialize(FAR struct spi_dev_s *spi) at45db_pwrdown(priv); at45db_unlock(priv); - } + } /* Register the MTD with the procfs system if enabled */ @@ -896,7 +896,7 @@ FAR struct mtd_dev_s *at45db_initialize(FAR struct spi_dev_s *spi) return (FAR struct mtd_dev_s *)priv; /* On any failure, we need free memory allocations and release the lock that - * we hold on the SPI bus. On failures, assume that we cannot talk to the + * we hold on the SPI bus. On failures, assume that we cannot talk to the * device to do any more. */ diff --git a/nuttx/drivers/mtd/ftl.c b/nuttx/drivers/mtd/ftl.c index cffede20b..364da3695 100644 --- a/nuttx/drivers/mtd/ftl.c +++ b/nuttx/drivers/mtd/ftl.c @@ -215,7 +215,7 @@ static ssize_t ftl_flush(FAR void *priv, FAR const uint8_t *buffer, size_t nxfrd; int nbytes; int ret; - + /* Get the aligned block. Here is is assumed: (1) The number of R/W blocks * per erase block is a power of 2, and (2) the erase begins with that same * alignment. @@ -232,7 +232,7 @@ static ssize_t ftl_flush(FAR void *priv, FAR const uint8_t *buffer, /* Check if the write is shorter than to the end of the erase block */ bool short_write = (remaining < (alignedblock - startblock)); - + /* Read the full erase block into the buffer */ rwblock = startblock & ~mask; @@ -256,7 +256,7 @@ static ssize_t ftl_flush(FAR void *priv, FAR const uint8_t *buffer, /* Copy the user data at the end of the buffered erase block */ offset = (startblock & mask) * dev->geo.blocksize; - + if (short_write) { nbytes = remaining * dev->geo.blocksize; @@ -265,7 +265,7 @@ static ssize_t ftl_flush(FAR void *priv, FAR const uint8_t *buffer, { nbytes = dev->geo.erasesize - offset; } - + fvdbg("Copy %d bytes into erase block=%d at offset=%d\n", nbytes, eraseblock, offset); @@ -290,7 +290,7 @@ static ssize_t ftl_flush(FAR void *priv, FAR const uint8_t *buffer, { remaining -= dev->blkper - (startblock & mask); } - + buffer += nbytes; } @@ -427,7 +427,7 @@ static int ftl_geometry(FAR struct inode *inode, struct geometry *geometry) geometry->geo_writeenabled ? "true" : "false"); fvdbg("nsectors: %d sectorsize: %d\n", geometry->geo_nsectors, geometry->geo_sectorsize); - + return OK; } return -EINVAL; diff --git a/nuttx/drivers/mtd/mtd_nandmodel.c b/nuttx/drivers/mtd/mtd_nandmodel.c index 8a834c577..f2dd2c259 100644 --- a/nuttx/drivers/mtd/mtd_nandmodel.c +++ b/nuttx/drivers/mtd/mtd_nandmodel.c @@ -138,7 +138,7 @@ int nandmodel_find(FAR const struct nand_model_s *modeltab, size_t size, switch (id4 & 0x30) { case 0x00: - model->blocksize = 64; + model->blocksize = 64; break; case 0x10: diff --git a/nuttx/drivers/mtd/mtd_nandscheme.c b/nuttx/drivers/mtd/mtd_nandscheme.c index 5352739ef..600e58883 100644 --- a/nuttx/drivers/mtd/mtd_nandscheme.c +++ b/nuttx/drivers/mtd/mtd_nandscheme.c @@ -116,7 +116,7 @@ const struct nand_scheme_s g_nand_sparescheme2048 = /* 24 ecc bytes */ - 24, + 24, /* 38 extra bytes */ @@ -268,7 +268,7 @@ void nandscheme_writeecc(FAR const struct nand_scheme_s *scheme, for (i = 0; i < scheme->eccsize; i++) { spare[scheme->eccbytepos[i]] = ecc[i]; - } + } } /**************************************************************************** diff --git a/nuttx/drivers/mtd/mtd_procfs.c b/nuttx/drivers/mtd/mtd_procfs.c index e1596003e..26f2880b8 100644 --- a/nuttx/drivers/mtd/mtd_procfs.c +++ b/nuttx/drivers/mtd/mtd_procfs.c @@ -320,7 +320,7 @@ static int mtd_stat(const char *relpath, struct stat *buf) * * Description: * Registers MTD device with the procfs file system. This assigns a unique - * MTD number and associates the given device name, then add adds it to + * MTD number and associates the given device name, then add adds it to * the list of registered devices. * * In an embedded system, this all is really unnecessary, but is provided diff --git a/nuttx/drivers/mtd/ramtron.c b/nuttx/drivers/mtd/ramtron.c index 7a7439dce..70bd6dfb5 100644 --- a/nuttx/drivers/mtd/ramtron.c +++ b/nuttx/drivers/mtd/ramtron.c @@ -37,16 +37,16 @@ ************************************************************************************/ /* OPTIONS: - * - additional non-jedec standard device: FM25H20 + * - additional non-jedec standard device: FM25H20 * must be enabled with the CONFIG_RAMTRON_FRAM_NON_JEDEC=y - * + * * NOTE: * - frequency is fixed to desired max by RAMTRON_INIT_CLK_MAX - * if new devices with different speed arrive, then SETFREQUENCY() + * if new devices with different speed arrive, then SETFREQUENCY() * needs to handle freq changes and INIT_CLK_MAX must be reduced * to fit all devices. Note that STM32_SPI driver is prone to * too high freq. parameters and limit it within physical constraints. - * + * * TODO: * - add support for sleep * - add support for faster read FSTRD command @@ -295,7 +295,7 @@ static void ramtron_lock(FAR struct spi_dev_s *dev) SPI_SETMODE(dev, SPIDEV_MODE3); SPI_SETBITS(dev, 8); - + (void)SPI_SETFREQUENCY(dev, RAMTRON_INIT_CLK_MAX); } @@ -343,13 +343,13 @@ static inline int ramtron_readid(struct ramtron_dev_s *priv) SPI_SELECT(priv->dev, SPIDEV_FLASH, false); ramtron_unlock(priv->dev); - + /* Select part from the part list */ - + for (priv->part = ramtron_parts; priv->part->name != NULL && !(priv->part->id1 == capacity && priv->part->id2 == part); priv->part++); - + if (priv->part->name) { UNUSED(manufacturer); /* Eliminate warnings when debug is off */ @@ -364,7 +364,7 @@ static inline int ramtron_readid(struct ramtron_dev_s *priv) priv->npages = priv->part->size / (1 << RAMTRON_EMULATE_PAGE_SHIFT); return OK; } - + fvdbg("RAMTRON device not found\n"); return -ENODEV; } @@ -384,7 +384,7 @@ static void ramtron_waitwritecomplete(struct ramtron_dev_s *priv) /* Send "Read Status Register (RDSR)" command */ (void)SPI_SEND(priv->dev, RAMTRON_RDSR); - + /* Loop as long as the memory is busy with a write cycle */ do @@ -414,7 +414,7 @@ static void ramtron_writeenable(struct ramtron_dev_s *priv) /* Send "Write Enable (WREN)" command */ (void)SPI_SEND(priv->dev, RAMTRON_WREN); - + /* Deselect the FLASH */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -428,7 +428,7 @@ static void ramtron_writeenable(struct ramtron_dev_s *priv) static inline void ramtron_sendaddr(const struct ramtron_dev_s *priv, uint32_t addr) { DEBUGASSERT(priv->part->addr_len == 3 || priv->part->addr_len == 2); - + if (priv->part->addr_len == 3) { (void)SPI_SEND(priv->dev, (addr >> 16) & 0xff); @@ -460,7 +460,7 @@ static inline void ramtron_pagewrite(struct ramtron_dev_s *priv, FAR const uint8 /* Enable the write access to the FLASH */ ramtron_writeenable(priv); - + /* Select this FLASH part */ SPI_SELECT(priv->dev, SPIDEV_FLASH, true); @@ -476,7 +476,7 @@ static inline void ramtron_pagewrite(struct ramtron_dev_s *priv, FAR const uint8 /* Then write the specified number of bytes */ SPI_SNDBLOCK(priv->dev, buffer, 1 << priv->pageshift); - + /* Deselect the FLASH: Chip Select high */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -628,7 +628,7 @@ static int ramtron_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) fvdbg("BULDERASE: Makes no sense in ramtron. Let's confirm operation as OK\n"); ret = OK; break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ diff --git a/nuttx/drivers/mtd/sector512.c b/nuttx/drivers/mtd/sector512.c index 80dfc9106..b29942f5f 100644 --- a/nuttx/drivers/mtd/sector512.c +++ b/nuttx/drivers/mtd/sector512.c @@ -151,7 +151,7 @@ static FAR uint8_t *s512_cacheread(struct s512_dev_s *priv, off_t sector512) off_t sector; ssize_t result; int index; - + /* Get the erase block containing this sector */ eblockno = sector512 / priv->stdperblock; @@ -487,7 +487,7 @@ static ssize_t s512_read(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes, memcpy(buffer, src + sectoffset, xfrsize); buffer += xfrsize; } - + fvdbg("return nbytes: %d\n", (int)nbytes); return nbytes; } @@ -543,7 +543,7 @@ static int s512_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) } } break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ diff --git a/nuttx/drivers/mtd/skeleton.c b/nuttx/drivers/mtd/skeleton.c index ebb128030..ab89afc9a 100644 --- a/nuttx/drivers/mtd/skeleton.c +++ b/nuttx/drivers/mtd/skeleton.c @@ -150,7 +150,7 @@ static ssize_t skel_bread(FAR struct mtd_dev_s *dev, off_t startblock, size_t nb */ /* Read the specified blocks into the provided user buffer and return status - * (The positive, number of blocks actually read or a negated errno). + * (The positive, number of blocks actually read or a negated errno). */ return 0; @@ -288,7 +288,7 @@ static int skel_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) ret = OK; } break; - + default: ret = -ENOTTY; /* Bad command */ break; diff --git a/nuttx/drivers/mtd/sst25.c b/nuttx/drivers/mtd/sst25.c index 46f6350ea..b80f8f479 100644 --- a/nuttx/drivers/mtd/sst25.c +++ b/nuttx/drivers/mtd/sst25.c @@ -406,7 +406,7 @@ static uint8_t sst25_waitwritecomplete(struct sst25_dev_s *priv) /* Send "Read Status Register (RDSR)" command */ (void)SPI_SEND(priv->dev, SST25_RDSR); - + /* Loop as long as the memory is busy with a write cycle */ do @@ -647,7 +647,7 @@ static void sst25_bytewrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, /* Enable write access to the FLASH */ sst25_wren(priv); - + /* Select this FLASH part */ SPI_SELECT(priv->dev, SPIDEV_FLASH, true); @@ -665,7 +665,7 @@ static void sst25_bytewrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, /* Then write the single byte */ (void)SPI_SEND(priv->dev, *buffer); - + /* Deselect the FLASH and setup for the next pass through the loop */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -713,7 +713,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, /* If there are no further non-erased bytes in the user buffer, then * we are finished. */ - + if (nwords <= 0) { return; @@ -727,7 +727,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, /* Enable write access to the FLASH */ sst25_wren(priv); - + /* Select this FLASH part */ SPI_SELECT(priv->dev, SPIDEV_FLASH, true); @@ -745,7 +745,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, /* Then write one 16-bit word */ SPI_SNDBLOCK(priv->dev, buffer, 2); - + /* Deselect the FLASH: Chip Select high */ SPI_SELECT(priv->dev, SPIDEV_FLASH, false); @@ -848,7 +848,7 @@ static FAR uint8_t *sst25_cacheread(struct sst25_dev_s *priv, off_t sector) off_t esectno; int shift; int index; - + /* Convert from the 512 byte sector to the erase sector size of the device. For * exmample, if the actual erase sector size if 4Kb (1 << 12), then we first * shift to the right by 3 to get the sector number in 4096 increments. @@ -1164,7 +1164,7 @@ static int sst25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) sst25_unlock(priv->dev); } break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ diff --git a/nuttx/drivers/mtd/sst25xx.c b/nuttx/drivers/mtd/sst25xx.c index da4204889..1163ed8d2 100644 --- a/nuttx/drivers/mtd/sst25xx.c +++ b/nuttx/drivers/mtd/sst25xx.c @@ -11,7 +11,7 @@ * * Copied from / based on m25px.c and sst25.c drivers written by * Gregory Nutt - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -65,8 +65,8 @@ ************************************************************************************/ /* Configuration ********************************************************************/ /* Per the data sheet, SST25 parts can be driven with either SPI mode 0 (CPOL=0 and - * CPHA=0) or mode 3 (CPOL=1 and CPHA=1). So you may need to specify - * CONFIG_SST25XX_SPIMODE to select the best mode for your device. If + * CPHA=0) or mode 3 (CPOL=1 and CPHA=1). So you may need to specify + * CONFIG_SST25XX_SPIMODE to select the best mode for your device. If * CONFIG_SST25XX_SPIMODE is not defined, mode 0 will be used. */ @@ -81,7 +81,7 @@ #endif /* Various manufacturers may have produced the parts. 0xBF is the manufacturer ID - * for the SST serial FLASH. + * for the SST serial FLASH. */ #ifndef CONFIG_SST25XX_MANUFACTURER diff --git a/nuttx/drivers/mtd/sst39vf.c b/nuttx/drivers/mtd/sst39vf.c index d42550574..b404a9435 100644 --- a/nuttx/drivers/mtd/sst39vf.c +++ b/nuttx/drivers/mtd/sst39vf.c @@ -159,7 +159,7 @@ static const struct sst39vf_chip_s g_sst39vf1601 = /* 32, nblocks */ 512, /* nsectors */ /* 64*1024, blocksize */ - 4*1024, /* sectorsize */ + 4*1024, /* sectorsize */ }; static const struct sst39vf_chip_s g_sst39vf1602 = @@ -169,7 +169,7 @@ static const struct sst39vf_chip_s g_sst39vf1602 = /* 32, nblocks */ 512, /* nsectors */ /* 64*1024, blocksize */ - 4*1024, /* sectorsize */ + 4*1024, /* sectorsize */ }; static const struct sst39vf_chip_s g_sst39vf3201 = @@ -179,7 +179,7 @@ static const struct sst39vf_chip_s g_sst39vf3201 = /* 64, nblocks */ 1024, /* nsectors */ /* 64*1024, blocksize */ - 4*1024, /* sectorsize */ + 4*1024, /* sectorsize */ }; static const struct sst39vf_chip_s g_sst39vf3202 = @@ -189,7 +189,7 @@ static const struct sst39vf_chip_s g_sst39vf3202 = /* 64, nblocks */ 1024, /* nsectors */ /* 64*1024, blocksize */ - 4*1024, /* sectorsize */ + 4*1024, /* sectorsize */ }; /* This structure holds the state of the MTD driver */ @@ -216,74 +216,74 @@ static const struct sst39vf_wrinfo_s g_wordprogram[3] = {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x00a0} /* , {address, data} */ }; -static const struct sst39vf_wrinfo_s g_sectorerase[5] = +static const struct sst39vf_wrinfo_s g_sectorerase[5] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0080}, {0x5555, 0x00aa}, {0x2aaa, 0x0055} /* , {sector, 0x0030} */ }; #if 0 /* Not used */ -static const struct sst39vf_wrinfo_s g_blockerase[5] = +static const struct sst39vf_wrinfo_s g_blockerase[5] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x80}, {0x5555, 0x00aa}, {0x2aaa, 0x0055} /* , {block, 0x0050} */ }; #endif -static const struct sst39vf_wrinfo_s g_chiperase[6] = +static const struct sst39vf_wrinfo_s g_chiperase[6] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0080}, {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0010} }; #if 0 /* Not used */ -static const struct sst39vf_wrinfo_s g_erasesuspend[1] = +static const struct sst39vf_wrinfo_s g_erasesuspend[1] = { {0x5555, 0x00aa} }; -static const struct sst39vf_wrinfo_s g_eraseresume[1] = +static const struct sst39vf_wrinfo_s g_eraseresume[1] = { {0x5555, 0x00aa} }; -static const struct sst39vf_wrinfo_s g_querysecid[3] = +static const struct sst39vf_wrinfo_s g_querysecid[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0088} }; -static const struct sst39vf_wrinfo_s g_securityid_wordprogram[3] = +static const struct sst39vf_wrinfo_s g_securityid_wordprogram[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x00a5}, /* {address, data} */ }; -static const struct sst39vf_wrinfo_s g_securityid_lockout[3] = +static const struct sst39vf_wrinfo_s g_securityid_lockout[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0085} /* {0xXX, 0x0000} */ }; #endif -static const struct sst39vf_wrinfo_s g_swid_entry[3] = +static const struct sst39vf_wrinfo_s g_swid_entry[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0090} }; #if 0 /* Not used */ -static const struct sst39vf_wrinfo_s g_cfiquery[3] = +static const struct sst39vf_wrinfo_s g_cfiquery[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x0080}, }; #endif -static const struct sst39vf_wrinfo_s g_swid_exit[3] = +static const struct sst39vf_wrinfo_s g_swid_exit[3] = { {0x5555, 0x00aa}, {0x2aaa, 0x0055}, {0x5555, 0x00f0} }; #if 0 /* Not used */ -static const struct sst39vf_wrinfo_s g_swid_exit2[1] = +static const struct sst39vf_wrinfo_s g_swid_exit2[1] = { - {0x0000, 0x00f0}, + {0x0000, 0x00f0}, }; #endif @@ -548,7 +548,7 @@ static int sst39vf_sectorerase(FAR struct sst39vf_dev_s *priv, * Write one 16-bit word to FLASH * * "The SST39VF160x/320x are programmed on a word-by-word basis. Before - * programming, the sector where the word exists must be fully erased. The + * programming, the sector where the word exists must be fully erased. The * rogram operation is accomplished in three steps. The first step is the * three-byte load sequence for Software Data Protection. The second step * is to load word address and word data. During the Word-Program operation, @@ -765,7 +765,7 @@ static int sst39vf_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) return sst39vf_chiperase(priv); } break; - + default: ret = -ENOTTY; /* Bad command */ break; diff --git a/nuttx/drivers/mtd/w25.c b/nuttx/drivers/mtd/w25.c index 0bddf8400..a9816b220 100644 --- a/nuttx/drivers/mtd/w25.c +++ b/nuttx/drivers/mtd/w25.c @@ -464,7 +464,7 @@ static uint8_t w25_waitwritecomplete(struct w25_dev_s *priv) /* Send "Read Status Register (RDSR)" command */ (void)SPI_SEND(priv->spi, W25_RDSR); - + /* Loop as long as the memory is busy with a write cycle */ do @@ -534,7 +534,7 @@ static inline void w25_wren(struct w25_dev_s *priv) /* Send "Write Enable (WREN)" command */ (void)SPI_SEND(priv->spi, W25_WREN); - + /* Deselect the FLASH */ SPI_SELECT(priv->spi, SPIDEV_FLASH, false); @@ -553,7 +553,7 @@ static inline void w25_wrdi(struct w25_dev_s *priv) /* Send "Write Disable (WRDI)" command */ (void)SPI_SEND(priv->spi, W25_WRDI); - + /* Deselect the FLASH */ SPI_SELECT(priv->spi, SPIDEV_FLASH, false); @@ -778,7 +778,7 @@ static FAR uint8_t *w25_cacheread(struct w25_dev_s *priv, off_t sector) off_t esectno; int shift; int index; - + /* Convert from the 512 byte sector to the erase sector size of the device. For * exmample, if the actual erase sector size if 4Kb (1 << 12), then we first * shift to the right by 3 to get the sector number in 4096 increments. @@ -1082,7 +1082,7 @@ static int w25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg) w25_unlock(priv->spi); } break; - + case MTDIOC_XIPBASE: default: ret = -ENOTTY; /* Bad command */ diff --git a/nuttx/drivers/net/cs89x0.c b/nuttx/drivers/net/cs89x0.c index 22b9b87a5..8b431eb66 100644 --- a/nuttx/drivers/net/cs89x0.c +++ b/nuttx/drivers/net/cs89x0.c @@ -414,9 +414,9 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq) cd89x0->cs_stats.rx_errors++; cd89x0->cs_stats.rx_lengtherrors++; #endif - return; + return; } - + /* Copy the data data from the hardware to cs89x0->cs_dev.d_buf. Set * amount of data in cs89x0->cs_dev.d_len */ @@ -425,7 +425,7 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq) for (nbytes = 0; nbytes < rxlength; nbytes += sizeof(uint16_t)) { *dest++ = cs89x0_getreg(PPR_RXFRAMELOCATION); - } + } #ifdef CONFIG_C89x0_STATISTICS cd89x0->cs_stats.rx_packets++; @@ -576,7 +576,7 @@ static int cs89x0_interrupt(int irq, FAR void *context) { register struct cs89x0_driver_s *cs89x0 = s89x0_mapirq(irq); uint16_t isq; - + #ifdef CONFIG_DEBUG if (!cs89x0) { @@ -704,7 +704,7 @@ static void cs89x0_polltimer(int argc, uint32_t arg, ...) * * Description: * NuttX Callback: Bring up the Ethernet interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -780,7 +780,7 @@ static int cs89x0_ifdown(struct uip_driver_s *dev) * Function: cs89x0_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -827,7 +827,7 @@ static int cs89x0_txavail(struct uip_driver_s *dev) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -857,7 +857,7 @@ static int cs89x0_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None diff --git a/nuttx/drivers/net/dm90x0.c b/nuttx/drivers/net/dm90x0.c index 8401982d8..33d294532 100644 --- a/nuttx/drivers/net/dm90x0.c +++ b/nuttx/drivers/net/dm90x0.c @@ -930,19 +930,19 @@ static void dm9x_receive(struct dm9x_driver_s *dm9x) /* Bad RX packet... update statistics */ #if defined(CONFIG_DM9X_STATS) - if (rx.desc.rx_status & 0x01) + if (rx.desc.rx_status & 0x01) { dm9x->dm_nrxfifoerrors++; ndbg("RX FIFO error: %d\n", dm9x->dm_nrxfifoerrors); } - if (rx.desc.rx_status & 0x02) + if (rx.desc.rx_status & 0x02) { dm9x->dm_nrxcrcerrors++; ndbg("RX CRC error: %d\n", dm9x->dm_nrxcrcerrors); } - if (rx.desc.rx_status & 0x80) + if (rx.desc.rx_status & 0x80) { dm9x->dm_nrxlengtherrors++; ndbg("RX length error: %d\n", dm9x->dm_nrxlengtherrors); @@ -1123,7 +1123,7 @@ static int dm9x_interrupt(int irq, FAR void *context) /* Disable all DM90x0 interrupts */ - putreg(DM9X_IMR, DM9X_IMRDISABLE); + putreg(DM9X_IMR, DM9X_IMRDISABLE); /* Get and clear the DM90x0 interrupt status bits */ @@ -1163,7 +1163,7 @@ static int dm9x_interrupt(int irq, FAR void *context) } up_mdelay(1); } - ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); + ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); } /* Check if we received an incoming packet */ @@ -1180,7 +1180,7 @@ static int dm9x_interrupt(int irq, FAR void *context) dm9x_txdone(dm9x); } - /* If the number of consecutive receive packets exceeds a threshold, + /* If the number of consecutive receive packets exceeds a threshold, * then disable the RX interrupt. */ @@ -1234,9 +1234,9 @@ static void dm9x_txtimeout(int argc, uint32_t arg, ...) dm9x->dm_ntxerrors++; #endif - ndbg(" TX packet count: %d\n", dm9x->dm_ntxpending); + ndbg(" TX packet count: %d\n", dm9x->dm_ntxpending); #if defined(CONFIG_DM9X_STATS) - ndbg(" TX timeouts: %d\n", dm9x->dm_ntxtimeouts); + ndbg(" TX timeouts: %d\n", dm9x->dm_ntxtimeouts); #endif ndbg(" TX read pointer address: 0x%02x:%02x\n", getreg(DM9X_TRPAH), getreg(DM9X_TRPAL)); @@ -1324,16 +1324,16 @@ static inline void dm9x_phymode(struct dm9x_driver_s *dm9x) phyreg0 = 0x1200; /* Auto-negotiation & Restart Auto-negotiation */ phyreg4 = 0x01e1; /* Default flow control disable*/ #elif CONFIG_DM9X_MODE_10MHD - phyreg4 = 0x21; + phyreg4 = 0x21; phyreg0 = 0x1000; #elif CONFIG_DM9X_MODE_10MFD - phyreg4 = 0x41; + phyreg4 = 0x41; phyreg0 = 0x1100; #elif CONFIG_DM9X_MODE_100MHD - phyreg4 = 0x81; + phyreg4 = 0x81; phyreg0 = 0x3000; #elif CONFIG_DM9X_MODE_100MFD - phyreg4 = 0x101; + phyreg4 = 0x101; phyreg0 = 0x3100; #else # error "Recognized PHY mode" @@ -1348,7 +1348,7 @@ static inline void dm9x_phymode(struct dm9x_driver_s *dm9x) * * Description: * NuttX Callback: Bring up the DM90x0 interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -1396,7 +1396,7 @@ static int dm9x_ifup(struct uip_driver_s *dev) up_mdelay(1); } - ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); + ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); /* Set and activate a timer process */ @@ -1463,7 +1463,7 @@ static int dm9x_ifdown(struct uip_driver_s *dev) * Function: dm9x_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -1515,7 +1515,7 @@ static int dm9x_txavail(struct uip_driver_s *dev) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -1545,7 +1545,7 @@ static int dm9x_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None diff --git a/nuttx/drivers/net/enc28j60.h b/nuttx/drivers/net/enc28j60.h index 6a0553a95..d717ff82a 100644 --- a/nuttx/drivers/net/enc28j60.h +++ b/nuttx/drivers/net/enc28j60.h @@ -402,7 +402,7 @@ /* Bit 0: Reserved */ #define PHLCON_STRCH (1 << 1) /* Bit 1: LED Pulse Stretching Enable */ #define PHLCON_LFRQ0 (1 << 2) /* Bit 2: LED Pulse Stretch Time Configuration */ -#define PHLCON_LFRQ1 (1 << 3) /* Bit 3: " " " " " " " " " */ +#define PHLCON_LFRQ1 (1 << 3) /* Bit 3: " " " " " " " " " */ #define PHLCON_LBCFG0 (1 << 4) /* Bit 4: LEDB Configuration */ #define PHLCON_LBCFG1 (1 << 5) /* Bit 5: " " " " */ #define PHLCON_LBCFG2 (1 << 6) /* Bit 6: " " " " */ diff --git a/nuttx/drivers/net/skeleton.c b/nuttx/drivers/net/skeleton.c index 00ebea35f..b4d4811a8 100644 --- a/nuttx/drivers/net/skeleton.c +++ b/nuttx/drivers/net/skeleton.c @@ -440,7 +440,7 @@ static void skel_polltimer(int argc, uint32_t arg, ...) * * Description: * NuttX Callback: Bring up the Ethernet interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -520,7 +520,7 @@ static int skel_ifdown(struct uip_driver_s *dev) * Function: skel_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -570,7 +570,7 @@ static int skel_txavail(struct uip_driver_s *dev) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -599,7 +599,7 @@ static int skel_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None diff --git a/nuttx/drivers/net/slip.c b/nuttx/drivers/net/slip.c index 31f44cbb9..40456581e 100644 --- a/nuttx/drivers/net/slip.c +++ b/nuttx/drivers/net/slip.c @@ -327,7 +327,7 @@ static int slip_transmit(FAR struct slip_driver_s *priv) remaining = priv->dev.d_len; start = src; len = 0; - + while (remaining-- > 0) { switch (*src) @@ -559,7 +559,7 @@ static inline void slip_receive(FAR struct slip_driver_s *priv) ch = slip_getc(priv); /* Handle bytestuffing if necessary */ - + switch (ch) { /* If it's an END character then we're done with the packet. @@ -727,7 +727,7 @@ static int slip_rxtask(int argc, char *argv[]) if (priv->dev.d_len > 0) { - slip_transmit(priv); + slip_transmit(priv); } uip_unlock(flags); slip_semgive(priv); @@ -748,7 +748,7 @@ static int slip_rxtask(int argc, char *argv[]) * * Description: * NuttX Callback: Bring up the Ethernet interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -804,7 +804,7 @@ static int slip_ifdown(struct uip_driver_s *dev) * Function: slip_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -841,7 +841,7 @@ static int slip_txavail(struct uip_driver_s *dev) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -870,7 +870,7 @@ static int slip_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None diff --git a/nuttx/drivers/net/vnet.c b/nuttx/drivers/net/vnet.c index 2eaf1c485..5ca63e3c0 100644 --- a/nuttx/drivers/net/vnet.c +++ b/nuttx/drivers/net/vnet.c @@ -181,8 +181,8 @@ static int vnet_transmit(FAR struct vnet_driver_s *vnet) /* Setup the TX timeout watchdog (perhaps restarting the timer) */ //(void)wd_start(vnet->sk_txtimeout, VNET_TXTIMEOUT, vnet_txtimeout, 1, (uint32_t)vnet); - // When vnet_xmit fail, it means TX buffer is full. Watchdog - // is of no use here because no TX done INT will happen. So + // When vnet_xmit fail, it means TX buffer is full. Watchdog + // is of no use here because no TX done INT will happen. So // we reset the TX buffer directly. #ifdef CONFIG_DEBUG cprintf("VNET: TX buffer is full\n"); @@ -429,7 +429,7 @@ static void vnet_polltimer(int argc, uint32_t arg, ...) * * Description: * NuttX Callback: Bring up the Ethernet interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -505,7 +505,7 @@ static int vnet_ifdown(struct uip_driver_s *dev) * Function: vnet_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -562,7 +562,7 @@ out: * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -591,7 +591,7 @@ static int vnet_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None diff --git a/nuttx/drivers/pipes/fifo.c b/nuttx/drivers/pipes/fifo.c index a20fc9c24..57873ca99 100644 --- a/nuttx/drivers/pipes/fifo.c +++ b/nuttx/drivers/pipes/fifo.c @@ -93,7 +93,7 @@ static const struct file_operations fifo_fops = * Description: * mkfifo() makes a FIFO device driver file with name 'pathname.' Unlike * Linux, a NuttX FIFO is not a special file type but simply a device driver - * instance. 'mode' specifies the FIFO's permissions. + * instance. 'mode' specifies the FIFO's permissions. * * Once the FIFO has been created by mkfifo(), any thread can open it for * reading or writing, in the same way as an ordinary file. However, it must @@ -120,7 +120,7 @@ int mkfifo(FAR const char *pathname, mode_t mode) { struct pipe_dev_s *dev; int ret; - + /* Allocate and initialize a new device structure instance */ dev = pipecommon_allocdev(); diff --git a/nuttx/drivers/pipes/pipe_common.c b/nuttx/drivers/pipes/pipe_common.c index 5f61fdd8e..c5080d6e3 100644 --- a/nuttx/drivers/pipes/pipe_common.c +++ b/nuttx/drivers/pipes/pipe_common.c @@ -187,7 +187,7 @@ int pipecommon_open(FAR struct file *filep) struct pipe_dev_s *dev = inode->i_private; int sval; int ret; - + /* Some sanity checking */ #if CONFIG_DEBUG if (!dev) @@ -337,7 +337,7 @@ int pipecommon_close(FAR struct file *filep) dev->d_buffer = NULL; /* And reset all counts and indices */ - + dev->d_wrndx = 0; dev->d_rdndx = 0; dev->d_refs = 0; @@ -405,7 +405,7 @@ ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len) ret = sem_wait(&dev->d_rdsem); sched_unlock(); - if (ret < 0 || sem_wait(&dev->d_bfsem) < 0) + if (ret < 0 || sem_wait(&dev->d_bfsem) < 0) { return ERROR; } @@ -419,7 +419,7 @@ ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len) *buffer++ = dev->d_buffer[dev->d_rdndx]; if (++dev->d_rdndx >= CONFIG_DEV_PIPE_SIZE) { - dev->d_rdndx = 0; + dev->d_rdndx = 0; } nread++; } diff --git a/nuttx/drivers/pipes/pipe_common.h b/nuttx/drivers/pipes/pipe_common.h index 44822e07f..c22fb981e 100644 --- a/nuttx/drivers/pipes/pipe_common.h +++ b/nuttx/drivers/pipes/pipe_common.h @@ -72,7 +72,7 @@ ****************************************************************************/ /* Make the buffer index as small as possible for the configured pipe size */ - + #if CONFIG_DEV_PIPE_SIZE > 65535 typedef uint32_t pipe_ndx_t; /* 32-bit index */ #elif CONFIG_DEV_PIPE_SIZE > 255 diff --git a/nuttx/drivers/power/max1704x.c b/nuttx/drivers/power/max1704x.c index 8c48c6b5a..db0750e6d 100644 --- a/nuttx/drivers/power/max1704x.c +++ b/nuttx/drivers/power/max1704x.c @@ -107,7 +107,7 @@ # define MAX1407X_VCELL(v) MAX14071_VCELL(v) #endif -/* "SOC Register. The SOC register is a read-only register that displays the +/* "SOC Register. The SOC register is a read-only register that displays the * state of charge of the cell as calculated by the ModelGauge algorithm. The * result is displayed as a percentage of the cell’s full capacity... * diff --git a/nuttx/drivers/power/pm_internal.h b/nuttx/drivers/power/pm_internal.h index f98624f15..db8c5324b 100644 --- a/nuttx/drivers/power/pm_internal.h +++ b/nuttx/drivers/power/pm_internal.h @@ -67,7 +67,7 @@ * slice ticks = (CONFIG_PM_SLICEMS msec / 1000 msec/sec) / * (CLOCKS_PER_SEC ticks/sec) */ - + #define TIME_SLICE_TICKS ((CONFIG_PM_SLICEMS * CLOCKS_PER_SEC) / 1000) /* Function-like macros *****************************************************/ diff --git a/nuttx/drivers/power/pm_update.c b/nuttx/drivers/power/pm_update.c index 247665e0c..e705883f5 100644 --- a/nuttx/drivers/power/pm_update.c +++ b/nuttx/drivers/power/pm_update.c @@ -92,7 +92,7 @@ static const int16_t g_pmcoeffs[CONFIG_PM_MEMORY-1] = /* Threshold activity values to enter into the next lower power consumption * state. Indexing is next state 0:IDLE, 1:STANDBY, 2:SLEEP. */ - + static const int16_t g_pmenterthresh[3] = { CONFIG_PM_IDLEENTER_THRESH, diff --git a/nuttx/drivers/pwm.c b/nuttx/drivers/pwm.c index dfbb9b981..d7c396098 100644 --- a/nuttx/drivers/pwm.c +++ b/nuttx/drivers/pwm.c @@ -200,7 +200,7 @@ static int pwm_open(FAR struct file *filep) errout_with_sem: sem_post(&upper->exclsem); - + errout: return ret; } @@ -257,7 +257,7 @@ static int pwm_close(FAR struct file *filep) //errout_with_sem: sem_post(&upper->exclsem); - + errout: return ret; } @@ -295,7 +295,7 @@ static ssize_t pwm_write(FAR struct file *filep, FAR const char *buffer, size_t * * Description: * Handle the PWMIOC_START ioctl command - * + * ************************************************************************************/ #ifdef CONFIG_PWM_PULSECOUNT @@ -402,7 +402,7 @@ static int pwm_start(FAR struct pwm_upperhalf_s *upper, unsigned int oflags) * * Description: * The standard ioctl method. This is where ALL of the PWM work is done. - * + * ************************************************************************************/ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg) @@ -666,7 +666,7 @@ void pwm_expired(FAR void *handle) upper->waiting = false; sem_post(&upper->waitsem); } - + /* The PWM is now stopped */ upper->started = false; diff --git a/nuttx/drivers/ramdisk.c b/nuttx/drivers/ramdisk.c index 436a33f2c..8b7a0a1f6 100644 --- a/nuttx/drivers/ramdisk.c +++ b/nuttx/drivers/ramdisk.c @@ -241,7 +241,7 @@ static int rd_geometry(FAR struct inode *inode, struct geometry *geometry) geometry->geo_writeenabled ? "true" : "false"); fvdbg("nsectors: %d sectorsize: %d\n", geometry->geo_nsectors, geometry->geo_sectorsize); - + return OK; } diff --git a/nuttx/drivers/rwbuffer.c b/nuttx/drivers/rwbuffer.c index b0505bf38..0435440dd 100644 --- a/nuttx/drivers/rwbuffer.c +++ b/nuttx/drivers/rwbuffer.c @@ -158,7 +158,7 @@ static void rwb_wrflush(struct rwbuffer_s *rwb) int ret; fvdbg("Timeout!\n"); - + rwb_semtake(&rwb->wrsem); if (rwb->wrnblocks) { @@ -175,7 +175,7 @@ static void rwb_wrflush(struct rwbuffer_s *rwb) { fdbg("ERROR: Error flushing write buffer: %d\n", ret); } - + rwb_resetwrbuffer(rwb); } @@ -239,7 +239,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb, /* Write writebuffer Logic */ rwb_wrcanceltimeout(rwb); - + /* First: Should we flush out our cache? We would do that if (1) we already * buffering blocks and the next block writing is not in the same sequence, * or (2) the number of blocks would exceed our allocated buffer capacity @@ -250,7 +250,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb, { fvdbg("writebuffer miss, expected: %08x, given: %08x\n", rwb->wrexpectedblock, startblock); - + /* Flush the write buffer */ ret = rwb->wrflush(rwb, rwb->wrbuffer, rwb->wrblockstart, rwb->wrnblocks); @@ -262,7 +262,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb, rwb_resetwrbuffer(rwb); } - + /* writebuffer is empty? Then initialize it */ if (!rwb->wrnblocks) @@ -270,7 +270,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb, fvdbg("Fresh cache starting at block: 0x%08x\n", startblock); rwb->wrblockstart = startblock; } - + /* Add data to cache */ fvdbg("writebuffer: copying %d bytes from %p to %p\n", @@ -434,7 +434,7 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) return -ENOMEM; } } - + fvdbg("Write buffer size: %d bytes\n", allocsize); #endif /* CONFIG_FS_WRITEBUFFER */ @@ -462,7 +462,7 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) return -ENOMEM; } } - + fvdbg("Read-ahead buffer size: %d bytes\n", allocsize); #endif /* CONFIG_FS_READAHEAD */ return 0; @@ -500,7 +500,7 @@ int rwb_read(FAR struct rwbuffer_s *rwb, off_t startblock, uint32_t nblocks, FAR uint8_t *rdbuffer) { uint32_t remaining; - + fvdbg("startblock=%ld nblocks=%ld rdbuffer=%p\n", (long)startblock, (long)nblocks, rdbuffer); @@ -619,8 +619,8 @@ int rwb_write(FAR struct rwbuffer_s *rwb, off_t startblock, #ifdef CONFIG_FS_WRITEBUFFER fvdbg("startblock=%d wrbuffer=%p\n", startblock, wrbuffer); - /* Use the block cache unless the buffer size is bigger than block cache */ - + /* Use the block cache unless the buffer size is bigger than block cache */ + if (nblocks > rwb->wrmaxblocks) { /* First flush the cache */ diff --git a/nuttx/drivers/sensors/qencoder.c b/nuttx/drivers/sensors/qencoder.c index 68c556452..d10db7b6b 100644 --- a/nuttx/drivers/sensors/qencoder.c +++ b/nuttx/drivers/sensors/qencoder.c @@ -191,7 +191,7 @@ static int qe_open(FAR struct file *filep) errout_with_sem: sem_post(&upper->exclsem); - + errout: return ret; } @@ -248,7 +248,7 @@ static int qe_close(FAR struct file *filep) //errout_with_sem: sem_post(&upper->exclsem); - + errout: return ret; } @@ -288,7 +288,7 @@ static ssize_t qe_write(FAR struct file *filep, FAR const char *buffer, size_t b * * Description: * The standard ioctl method. This is where ALL of the PWM work is done. - * + * ************************************************************************************/ static int qe_ioctl(FAR struct file *filep, int cmd, unsigned long arg) diff --git a/nuttx/drivers/serial/Kconfig b/nuttx/drivers/serial/Kconfig index 81f904272..8d7b416fb 100644 --- a/nuttx/drivers/serial/Kconfig +++ b/nuttx/drivers/serial/Kconfig @@ -310,7 +310,7 @@ config 16550_SUPRESS_CONFIG default n ---help--- This option is useful, for example, if you are using a bootloader - that configures the 16550_UART. In that case, you may want to + that configures the 16550_UART. In that case, you may want to just leave the existing console configuration in place. Default: n config 16550_REGINCR diff --git a/nuttx/drivers/serial/lowconsole.c b/nuttx/drivers/serial/lowconsole.c index 1fac49a57..90bfefd20 100644 --- a/nuttx/drivers/serial/lowconsole.c +++ b/nuttx/drivers/serial/lowconsole.c @@ -110,7 +110,7 @@ static ssize_t lowconsole_read(struct file *filep, char *buffer, size_t buflen) static ssize_t lowconsole_write(struct file *filep, const char *buffer, size_t buflen) { ssize_t ret = buflen; - + for (; buflen; buflen--) { up_putc(*buffer++); diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c index fe312fc5d..be9219cb1 100644 --- a/nuttx/drivers/serial/serial.c +++ b/nuttx/drivers/serial/serial.c @@ -487,7 +487,7 @@ static ssize_t uart_write(FAR struct file *filep, FAR const char *buffer, /* No data was transferred. Return the negated errno value. * The VFS layer will set the errno value appropriately). */ - + nwritten = ret; } diff --git a/nuttx/drivers/serial/serialirq.c b/nuttx/drivers/serial/serialirq.c index f18116b1f..be3500cdd 100644 --- a/nuttx/drivers/serial/serialirq.c +++ b/nuttx/drivers/serial/serialirq.c @@ -154,7 +154,7 @@ void uart_recvchars(FAR uart_dev_t *dev) while (uart_rxavailable(dev)) { char ch = uart_receive(dev, &status); - + /* If the RX buffer becomes full, then the serial data is discarded. This is * necessary because on most serial hardware, you must read the data in order * to clear the RX interrupt. An option on some hardware might be to simply diff --git a/nuttx/drivers/syslog/README.txt b/nuttx/drivers/syslog/README.txt index bfef73ae8..a27b72d86 100644 --- a/nuttx/drivers/syslog/README.txt +++ b/nuttx/drivers/syslog/README.txt @@ -40,7 +40,7 @@ ramlog.c configuration. Configuration options: - + CONFIG_RAMLOG - Enables the RAM logging feature CONFIG_RAMLOG_CONSOLE - Use the RAM logging device as a system console. If this feature is enabled (along with CONFIG_DEV_CONSOLE), then all diff --git a/nuttx/drivers/syslog/ramlog.c b/nuttx/drivers/syslog/ramlog.c index 0c612ec96..2b28b1586 100644 --- a/nuttx/drivers/syslog/ramlog.c +++ b/nuttx/drivers/syslog/ramlog.c @@ -143,7 +143,7 @@ static char g_sysbuffer[CONFIG_RAMLOG_CONSOLE_BUFSIZE]; * could be called before the driver initialization logic executes. */ -static struct ramlog_dev_s g_sysdev = +static struct ramlog_dev_s g_sysdev = { #ifndef CONFIG_RAMLOG_NONBLOCKING 0, /* rl_nwaiters */ @@ -338,7 +338,7 @@ static ssize_t ramlog_read(FAR struct file *filep, FAR char *buffer, size_t len) * mutual exclusion semaphore? */ - if (ret < 0) + if (ret < 0) { /* No.. One of the two sem_wait's failed. */ @@ -584,7 +584,7 @@ int ramlog_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup) { ndx = 0; } - + if (ndx != priv->rl_tail) { eventset |= POLLOUT; diff --git a/nuttx/drivers/usbdev/cdcacm.h b/nuttx/drivers/usbdev/cdcacm.h index 8b06ca9f3..aaad0faa6 100644 --- a/nuttx/drivers/usbdev/cdcacm.h +++ b/nuttx/drivers/usbdev/cdcacm.h @@ -106,7 +106,7 @@ #define CDCACM_NINTERFACES (2) /* Number of interfaces in the configuration */ #define CDCACM_NOTIFID (CONFIG_CDCACM_IFNOBASE+0) -#define CDCACM_NOTALTIFID (0) +#define CDCACM_NOTALTIFID (0) #define CDCACM_DATAIFID (CONFIG_CDCACM_IFNOBASE+1) #define CDCACM_DATAALTIFID (0) diff --git a/nuttx/drivers/usbdev/cdcacm_desc.c b/nuttx/drivers/usbdev/cdcacm_desc.c index 643c64af0..f2c53194e 100644 --- a/nuttx/drivers/usbdev/cdcacm_desc.c +++ b/nuttx/drivers/usbdev/cdcacm_desc.c @@ -188,7 +188,7 @@ static const struct cdc_hdr_funcdesc_s g_funchdr = MSBYTE(CDC_VERSIONNO) /* MS cdc */ } }; - + /* ACM functional descriptor */ static const struct cdc_acm_funcdesc_s g_acmfunc = diff --git a/nuttx/drivers/usbdev/composite.c b/nuttx/drivers/usbdev/composite.c index a88d8a7c3..27cbcff9c 100644 --- a/nuttx/drivers/usbdev/composite.c +++ b/nuttx/drivers/usbdev/composite.c @@ -674,7 +674,7 @@ static void composite_disconnect(FAR struct usbdevclass_driver_s *driver, * re-enumerated. */ - DEV_CONNECT(dev); + DEV_CONNECT(dev); } /**************************************************************************** @@ -773,7 +773,7 @@ static void composite_resume(FAR struct usbdevclass_driver_s *driver, * Register USB composite device as configured. This function will call * board-specific implementations in order to obtain the class objects for * each of the members of the composite (see board_mscclassobject(), - * board_cdcclassobjec(), ...) + * board_cdcclassobjec(), ...) * * Input Parameter: * None @@ -863,7 +863,7 @@ errout_with_alloc: * class' device object as was returned by composite_initialize(). This * function will call board-specific implementations in order to free the * class objects for each of the members of the composite (see - * board_mscuninitialize(), board_cdcuninitialize(), ...) + * board_mscuninitialize(), board_cdcuninitialize(), ...) * * Input Parameters: * handle - The handle returned by a previous call to composite_initialize(). diff --git a/nuttx/drivers/usbdev/usbdev_trprintf.c b/nuttx/drivers/usbdev/usbdev_trprintf.c index 750de4d6f..7616a15d7 100644 --- a/nuttx/drivers/usbdev/usbdev_trprintf.c +++ b/nuttx/drivers/usbdev/usbdev_trprintf.c @@ -86,7 +86,7 @@ static FAR const char *get_trstring(FAR const struct trace_msg_t *array, } p++; } - + return "???"; } #endif diff --git a/nuttx/drivers/usbdev/usbmsc.h b/nuttx/drivers/usbdev/usbmsc.h index c153f48e2..3e965d12b 100644 --- a/nuttx/drivers/usbdev/usbmsc.h +++ b/nuttx/drivers/usbdev/usbmsc.h @@ -71,7 +71,7 @@ # define CONFIG_USBMSC_STRBASE (4) #endif -/* Interface IDs. If the mass storage driver is built as a component of a +/* Interface IDs. If the mass storage driver is built as a component of a * composite device, then the interface IDs may need to be offset. */ @@ -424,7 +424,7 @@ enum usbmsc_epdesc_e USBMSC_EPFSBULKOUT = 0, /* Full speed bulk OUT endpoint descriptor */ USBMSC_EPFSBULKIN /* Full speed bulk IN endpoint descriptor */ #ifdef CONFIG_USBDEV_DUALSPEED - , + , USBMSC_EPHSBULKOUT, /* High speed bulk OUT endpoint descriptor */ USBMSC_EPHSBULKIN /* High speed bulk IN endpoint descriptor */ #endif diff --git a/nuttx/drivers/usbdev/usbmsc_scsi.c b/nuttx/drivers/usbdev/usbmsc_scsi.c index c97f38881..479d7ed9d 100644 --- a/nuttx/drivers/usbdev/usbmsc_scsi.c +++ b/nuttx/drivers/usbdev/usbmsc_scsi.c @@ -664,7 +664,7 @@ static inline int usbmsc_cmdinquiry(FAR struct usbmsc_dev_s *priv, #endif response->version = 2; /* SCSI-2 */ response->flags2 = 2; /* SCSI-2 INQUIRY response data format */ - response->len = SCSIRESP_INQUIRY_SIZEOF - 5; + response->len = SCSIRESP_INQUIRY_SIZEOF - 5; /* Strings */ @@ -1997,12 +1997,12 @@ static int usbmsc_cmdparsestate(FAR struct usbmsc_dev_s *priv) } usbmsc_scsi_unlock(priv); - + /* Is a response required? (Not for read6/10/12 and write6/10/12). */ if (priv->thstate == USBMSC_STATE_CMDPARSE) { - /* All commands come through this path (EXCEPT read6/10/12 and write6/10/12). + /* All commands come through this path (EXCEPT read6/10/12 and write6/10/12). * For all other commands, the following setup is expected for the response * based on data direction: * @@ -2470,7 +2470,7 @@ static int usbmsc_cmdfinishstate(FAR struct usbmsc_dev_s *priv) /* Unprocessed incoming data: STALL and cancel requests. */ - else + else { usbtrace(TRACE_CLSERROR(USBMSC_TRACEERR_CMDFINSHSUBMIT), (uint16_t)priv->residue); EP_STALL(priv->epbulkout); @@ -2548,7 +2548,7 @@ static int usbmsc_cmdstatusstate(FAR struct usbmsc_dev_s *priv) { sd = lun->sd; } - else + else { sd = SCSI_KCQIR_INVALIDLUN; } diff --git a/nuttx/drivers/usbhost/hid_parser.c b/nuttx/drivers/usbhost/hid_parser.c index a0ca6066b..d20a080f6 100644 --- a/nuttx/drivers/usbhost/hid_parser.c +++ b/nuttx/drivers/usbhost/hid_parser.c @@ -44,7 +44,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - + /**************************************************************************** * Private Types ****************************************************************************/ @@ -296,7 +296,7 @@ int hid_parsereport(FAR const uint8_t *report, int rptlen, collectionpath = collectionpath->parent; break; - + case USBHID_MAIN_INPUT_PREFIX: case USBHID_MAIN_OUTPUT_PREFIX: case USBHID_MAIN_FEATURE_PREFIX: @@ -511,7 +511,7 @@ void hid_putitem(FAR uint8_t *report, struct hid_rptitem_s *item) * Size of the report in bytes, or 0 if the report does not exist. * ****************************************************************************/ - + size_t hid_reportsize(FAR struct hid_rptinfo_s *rptinfo, uint8_t id, uint8_t rpttype) { int i; diff --git a/nuttx/drivers/usbhost/usbhost_findclass.c b/nuttx/drivers/usbhost/usbhost_findclass.c index 3e38670cf..8172db434 100644 --- a/nuttx/drivers/usbhost/usbhost_findclass.c +++ b/nuttx/drivers/usbhost/usbhost_findclass.c @@ -124,7 +124,7 @@ static bool usbhost_idmatch(const struct usbhost_id_s *classid, return false; } - + /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/nuttx/drivers/usbhost/usbhost_hidmouse.c b/nuttx/drivers/usbhost/usbhost_hidmouse.c index aecb06157..0fa49c50b 100644 --- a/nuttx/drivers/usbhost/usbhost_hidmouse.c +++ b/nuttx/drivers/usbhost/usbhost_hidmouse.c @@ -1131,7 +1131,7 @@ static int usbhost_mouse_poll(int argc, char *argv[]) { /* We get here when either there is a meaning button change * and/or a significant movement of the mouse. We are going - * to report the mouse event. + * to report the mouse event. * * Snap to the new x/y position for subsequent thresholding */ diff --git a/nuttx/drivers/usbhost/usbhost_skeleton.c b/nuttx/drivers/usbhost/usbhost_skeleton.c index 53552c683..806990375 100644 --- a/nuttx/drivers/usbhost/usbhost_skeleton.c +++ b/nuttx/drivers/usbhost/usbhost_skeleton.c @@ -101,7 +101,7 @@ struct usbhost_state_s struct usbhost_driver_s *drvr; /* The remainder of the fields are provide to the class driver */ - + char devchar; /* Character identifying the /dev/skel[n] device */ volatile bool disconnected; /* TRUE: Device has been disconnected */ uint8_t ifno; /* Interface number */ @@ -158,7 +158,7 @@ static inline int usbhost_talloc(FAR struct usbhost_state_s *priv); static inline int usbhost_tfree(FAR struct usbhost_state_s *priv); /* struct usbhost_registry_s methods */ - + static struct usbhost_class_s *usbhost_create(FAR struct usbhost_driver_s *drvr, FAR const struct usbhost_id_s *id); @@ -175,7 +175,7 @@ static int usbhost_disconnected(FAR struct usbhost_class_s *class); * Private Data ****************************************************************************/ -/* This structure provides the registry entry ID informatino that will be +/* This structure provides the registry entry ID informatino that will be * used to associate the USB class driver to a connected USB device. */ @@ -353,7 +353,7 @@ static void usbhost_destroy(FAR void *arg) DEBUGASSERT(priv != NULL); uvdbg("crefs: %d\n", priv->crefs); - + /* Unregister the driver */ /* Release the device name used by this connection */ @@ -416,10 +416,10 @@ static inline int usbhost_cfgdesc(FAR struct usbhost_state_s *priv, uint8_t found = 0; int ret; - DEBUGASSERT(priv != NULL && + DEBUGASSERT(priv != NULL && configdesc != NULL && desclen >= sizeof(struct usb_cfgdesc_s)); - + /* Verify that we were passed a configuration descriptor */ cfgdesc = (FAR struct usb_cfgdesc_s *)configdesc; @@ -455,7 +455,7 @@ static inline int usbhost_cfgdesc(FAR struct usbhost_state_s *priv, case USB_DESC_TYPE_INTERFACE: { FAR struct usb_ifdesc_s *ifdesc = (FAR struct usb_ifdesc_s *)configdesc; - + uvdbg("Interface descriptor\n"); DEBUGASSERT(remaining >= USB_SIZEOF_IFDESC); @@ -527,7 +527,7 @@ static inline int usbhost_cfgdesc(FAR struct usbhost_state_s *priv, found |= USBHOST_BINFOUND; /* Save the bulk IN endpoint information */ - + bindesc.addr = epdesc->addr & USB_EP_ADDR_NUMBER_MASK; bindesc.in = 1; bindesc.funcaddr = funcaddr; @@ -557,13 +557,13 @@ static inline int usbhost_cfgdesc(FAR struct usbhost_state_s *priv, } /* Increment the address of the next descriptor */ - + configdesc += desc->len; remaining -= desc->len; } /* Sanity checking... did we find all of things that we need? */ - + if (found != USBHOST_ALLFOUND) { ulldbg("ERROR: Found IF:%s BIN:%s BOUT:%s\n", @@ -660,7 +660,7 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv) /* We don't have to give the semaphore because it will be * destroyed when usb_destroy is called. */ - + ret = -ENODEV; } else @@ -820,7 +820,7 @@ static inline int usbhost_tfree(FAR struct usbhost_state_s *priv) * Name: usbhost_create * * Description: - * This function implements the create() method of struct usbhost_registry_s. + * This function implements the create() method of struct usbhost_registry_s. * The create() method is a callback into the class implementation. It is * used to (1) create a new instance of the USB host class state and to (2) * bind a USB host driver "session" to the class instance. Use of this @@ -879,7 +879,7 @@ static FAR struct usbhost_class_s *usbhost_create(FAR struct usbhost_driver_s *d priv->drvr = drvr; /* Return the instance of the USB class driver */ - + return &priv->class; } } @@ -934,7 +934,7 @@ static int usbhost_connect(FAR struct usbhost_class_s *class, FAR struct usbhost_state_s *priv = (FAR struct usbhost_state_s *)class; int ret; - DEBUGASSERT(priv != NULL && + DEBUGASSERT(priv != NULL && configdesc != NULL && desclen >= sizeof(struct usb_cfgdesc_s)); @@ -955,7 +955,7 @@ static int usbhost_connect(FAR struct usbhost_class_s *class, udbg("usbhost_devinit() failed: %d\n", ret); } } - + return ret; } @@ -1025,7 +1025,7 @@ static int usbhost_disconnected(struct usbhost_class_s *class) } } - irqrestore(flags); + irqrestore(flags); return OK; } diff --git a/nuttx/drivers/video/ov2640.c b/nuttx/drivers/video/ov2640.c index ed611189d..7256fbc20 100644 --- a/nuttx/drivers/video/ov2640.c +++ b/nuttx/drivers/video/ov2640.c @@ -323,8 +323,8 @@ static const struct ovr2640_reg_s g_ov2640_initialregs[] = {0xd7, 0x03}, {0xd9, 0x10}, {0xd3, 0x82}, {0xc8, 0x08}, {0xc9, 0x80}, {0x7c, 0x00}, {0x7d, 0x00}, {0x7c, 0x03}, {0x7d, 0x48}, {0x7d, 0x48}, {0x7c, 0x08}, {0x7d, 0x20}, {0x7d, 0x10}, {0x7d, 0x0e}, {0x90, 0x00}, - {0x91, 0x0e}, {0x91, 0x1a}, {0x91, 0x31}, {0x91, 0x5a}, {0x91, 0x69}, - {0x91, 0x75}, {0x91, 0x7e}, {0x91, 0x88}, {0x91, 0x8f}, {0x91, 0x96}, + {0x91, 0x0e}, {0x91, 0x1a}, {0x91, 0x31}, {0x91, 0x5a}, {0x91, 0x69}, + {0x91, 0x75}, {0x91, 0x7e}, {0x91, 0x88}, {0x91, 0x8f}, {0x91, 0x96}, {0x91, 0xa3}, {0x91, 0xaf}, {0x91, 0xc4}, {0x91, 0xd7}, {0x91, 0xe8}, {0x91, 0x20}, {0x92, 0x00}, {0x93, 0x06}, {0x93, 0xe3}, {0x93, 0x03}, {0x93, 0x03}, {0x93, 0x00}, {0x93, 0x02}, {0x93, 0x00}, {0x93, 0x00}, @@ -332,11 +332,11 @@ static const struct ovr2640_reg_s g_ov2640_initialregs[] = {0x96, 0x00}, {0x97, 0x08}, {0x97, 0x19}, {0x97, 0x02}, {0x97, 0x0c}, {0x97, 0x24}, {0x97, 0x30}, {0x97, 0x28}, {0x97, 0x26}, {0x97, 0x02}, {0x97, 0x98}, {0x97, 0x80}, {0x97, 0x00}, {0x97, 0x00}, {0xa4, 0x00}, - {0xa8, 0x00}, {0xc5, 0x11}, {0xc6, 0x51}, {0xbf, 0x80}, {0xc7, 0x10}, - {0xb6, 0x66}, {0xb8, 0xa5}, {0xb7, 0x64}, {0xb9, 0x7c}, {0xb3, 0xaf}, - {0xb4, 0x97}, {0xb5, 0xff}, {0xb0, 0xc5}, {0xb1, 0x94}, {0xb2, 0x0f}, - {0xc4, 0x5c}, {0xa6, 0x00}, {0xa7, 0x20}, {0xa7, 0xd8}, {0xa7, 0x1b}, - {0xa7, 0x31}, {0xa7, 0x00}, {0xa7, 0x18}, {0xa7, 0x20}, {0xa7, 0xd8}, + {0xa8, 0x00}, {0xc5, 0x11}, {0xc6, 0x51}, {0xbf, 0x80}, {0xc7, 0x10}, + {0xb6, 0x66}, {0xb8, 0xa5}, {0xb7, 0x64}, {0xb9, 0x7c}, {0xb3, 0xaf}, + {0xb4, 0x97}, {0xb5, 0xff}, {0xb0, 0xc5}, {0xb1, 0x94}, {0xb2, 0x0f}, + {0xc4, 0x5c}, {0xa6, 0x00}, {0xa7, 0x20}, {0xa7, 0xd8}, {0xa7, 0x1b}, + {0xa7, 0x31}, {0xa7, 0x00}, {0xa7, 0x18}, {0xa7, 0x20}, {0xa7, 0xd8}, {0xa7, 0x19}, {0xa7, 0x31}, {0xa7, 0x00}, {0xa7, 0x18}, {0xa7, 0x20}, {0xa7, 0xd8}, {0xa7, 0x19}, {0xa7, 0x31}, {0xa7, 0x00}, {0xa7, 0x18}, {0x7f, 0x00}, {0xe5, 0x1f}, {0xe1, 0x77}, {0xdd, 0x7f}, {0xc2, 0x0e} diff --git a/nuttx/drivers/watchdog.c b/nuttx/drivers/watchdog.c index e3c09e671..31ae3685b 100644 --- a/nuttx/drivers/watchdog.c +++ b/nuttx/drivers/watchdog.c @@ -87,7 +87,7 @@ struct watchdog_upperhalf_s FAR char *path; /* Registration path */ /* The contained lower-half driver */ - + FAR struct watchdog_lowerhalf_s *lower; }; @@ -172,7 +172,7 @@ static int wdog_open(FAR struct file *filep) errout_with_sem: sem_post(&upper->exclsem); - + errout: return ret; } @@ -213,7 +213,7 @@ static int wdog_close(FAR struct file *filep) sem_post(&upper->exclsem); ret = OK; - + errout: return ret; } @@ -252,7 +252,7 @@ static ssize_t wdog_write(FAR struct file *filep, FAR const char *buffer, size_t * Description: * The standard ioctl method. This is where ALL of the watchdog timer work is * done. - * + * ************************************************************************************/ static int wdog_ioctl(FAR struct file *filep, int cmd, unsigned long arg) diff --git a/nuttx/drivers/wireless/cc3000/netapp.c b/nuttx/drivers/wireless/cc3000/netapp.c index aa83d30cb..b6a76ed4f 100644 --- a/nuttx/drivers/wireless/cc3000/netapp.c +++ b/nuttx/drivers/wireless/cc3000/netapp.c @@ -307,14 +307,14 @@ long netapp_ping_send(unsigned long *ip, unsigned long ulPingAttempts, * events: HCI_EVNT_WLAN_ASYNC_PING_REPORT. This event will carry the report * structure: netapp_pingreport_args_t. This structure is filled in with ping * results up till point of triggering API. - * + * * netapp_pingreport_args_t: * packets_sent - echo sent, * packets_received - echo reply * min_round_time - minimum round time, * max_round_time - max round time, * avg_round_time - average round time - * + * * NOTE: When a ping operation is not active, the returned structure fields * are 0. * diff --git a/nuttx/drivers/wireless/cc3000/nvmem.c b/nuttx/drivers/wireless/cc3000/nvmem.c index 95ac8916d..82fac1de6 100644 --- a/nuttx/drivers/wireless/cc3000/nvmem.c +++ b/nuttx/drivers/wireless/cc3000/nvmem.c @@ -323,7 +323,7 @@ uint8_t nvmem_read_sp_version(uint8_t *patchVer) * Create new file entry and allocate space on the NVMEM. Applies only to * user files. Modify the size of file. If the entry is unallocated - * allocate it to size ulNewLen (marked invalid). If it is allocated then - * deallocate it first. To just mark the file as invalid without resizing - + * deallocate it first. To just mark the file as invalid without resizing - * Set ulNewLen=0. * * Input Parameters: diff --git a/nuttx/include/inttypes.h b/nuttx/include/inttypes.h index caadbe5d1..57bf1184d 100644 --- a/nuttx/include/inttypes.h +++ b/nuttx/include/inttypes.h @@ -39,9 +39,9 @@ /**************************************************************************** * Included Files ****************************************************************************/ - + #include /* for wchar_t */ - + /* Notes from www.opengroup.org: * * "The header shall include the header." @@ -52,7 +52,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - + /* "The following macros shall be defined. Each expands to a character string * literal containing a conversion specifier, possibly modified by a lengt * modifier, suitable for use within the format argument of a formatted @@ -66,79 +66,79 @@ * format string to print the value of an integer of type int_fast32_t. * * "The fprintf() macros for signed integers are: - * + * * PRIdN * PRIdLEASTN * PRIdFASTN * PRIdMAX * PRIdPTR - * + * * PRIiN * PRIiLEASTN * PRIiFASTN * PRIiMAX * PRIiPTR - * + * * "The fprintf() macros for unsigned integers are: - * + * * PRIoN * PRIoLEASTN * PRIoFASTN * PRIoMAX * PRIoPTR - * + * * PRIuN * PRIuLEASTN * PRIuFASTN * PRIuMAX * PRIuPTR - * + * * PRIxN * PRIxLEASTN * PRIxFASTN * PRIxMAX * PRIxPTR - * + * * PRIXN * PRIXLEASTN * PRIXFASTN * PRIXMAX * PRIXPTR - * + * * "The fscanf() macros for signed integers are: - * + * * SCNdN * SCNdLEASTN * SCNdFASTN * SCNdMAX * SCNdPTR - * + * * SCNiN * SCNiLEASTN * SCNiFASTN * SCNiMAX * SCNiPTR - * + * * "The fscanf() macros for unsigned integers are: - * + * * SCNoN * SCNoLEASTN * SCNoFASTN * SCNoMAX * SCNoPTR - * + * * SCNuN * SCNuLEASTN * SCNuFASTN * SCNuMAX * SCNuPTR - * + * * SCNxN * SCNxLEASTN * SCNxFASTN * SCNxMAX * SCNxPTR - * + * * "For each type that the implementation provides in , the * corresponding fprintf() and fwprintf() macros shall be defined and the * corresponding fscanf() and fwscanf() macros shall be defined unless the @@ -152,7 +152,7 @@ /* "The header shall include a definition of at least the * following type: * - * imaxdiv_t + * imaxdiv_t * Structure type that is the type of the value returned by the imaxdiv() * function. */ diff --git a/nuttx/include/nuttx/analog/adc.h b/nuttx/include/nuttx/analog/adc.h index 44af05ef9..3d5aa1fb0 100644 --- a/nuttx/include/nuttx/analog/adc.h +++ b/nuttx/include/nuttx/analog/adc.h @@ -106,7 +106,7 @@ struct adc_ops_s CODE void (*ao_reset)(FAR struct adc_dev_s *dev); /* Configure the ADC. This method is called the first time that the ADC - * device is opened. This will occur when the port is first opened. + * device is opened. This will occur when the port is first opened. * This setup includes configuring and attaching ADC interrupts. Interrupts * are all disabled upon return. */ @@ -122,7 +122,7 @@ struct adc_ops_s /* Call to enable or disable RX interrupts */ CODE void (*ao_rxint)(FAR struct adc_dev_s *dev, bool enable); - + /* All ioctl calls will be routed through this method */ CODE int (*ao_ioctl)(FAR struct adc_dev_s *dev, int cmd, unsigned long arg); diff --git a/nuttx/include/nuttx/analog/dac.h b/nuttx/include/nuttx/analog/dac.h index ab410399e..4b37f15c8 100644 --- a/nuttx/include/nuttx/analog/dac.h +++ b/nuttx/include/nuttx/analog/dac.h @@ -103,7 +103,7 @@ struct dac_ops_s CODE void (*ao_reset)(FAR struct dac_dev_s *dev); /* Configure the DAC. This method is called the first time that the DAC - * device is opened. This will occur when the port is first opened. + * device is opened. This will occur when the port is first opened. * This setup includes configuring and attaching DAC interrupts. Interrupts * are all disabled upon return. */ diff --git a/nuttx/include/nuttx/audio/audio.h b/nuttx/include/nuttx/audio/audio.h index 280ad3e4d..128005b49 100644 --- a/nuttx/include/nuttx/audio/audio.h +++ b/nuttx/include/nuttx/audio/audio.h @@ -143,7 +143,7 @@ /* The following defines the audio data format types in NuttX. During a * format query, these will be converted to bit positions withing the * ac_format field, meaning we currently only support up to 16 formats. To - * support more than that, we will use the FMT_OTHER entry, and the + * support more than that, we will use the FMT_OTHER entry, and the * interfacing software can perform a second query to get the other formats. */ diff --git a/nuttx/include/nuttx/audio/i2s.h b/nuttx/include/nuttx/audio/i2s.h index ecf42f199..74bc4aba9 100644 --- a/nuttx/include/nuttx/audio/i2s.h +++ b/nuttx/include/nuttx/audio/i2s.h @@ -226,7 +226,7 @@ struct i2s_ops_s }; /* I2S private data. This structure only defines the initial fields of the - * structure visible to the I2S client. The specific implementation may + * structure visible to the I2S client. The specific implementation may * add additional, device specific fields */ diff --git a/nuttx/include/nuttx/binfmt/binfmt.h b/nuttx/include/nuttx/binfmt/binfmt.h index 385586b32..7eaa1248f 100644 --- a/nuttx/include/nuttx/binfmt/binfmt.h +++ b/nuttx/include/nuttx/binfmt/binfmt.h @@ -333,7 +333,7 @@ EXEPATH_HANDLE exepath_init(void); * * Input Parameters: * handle - The handle value returned by exepath_init - * relpath - The relative path to the file to be found. + * relpath - The relative path to the file to be found. * * Returned Value: * On success, a non-NULL pointer to a null-terminated string is provided. diff --git a/nuttx/include/nuttx/binfmt/elf.h b/nuttx/include/nuttx/binfmt/elf.h index cbd2f0fa7..bb21bdad0 100644 --- a/nuttx/include/nuttx/binfmt/elf.h +++ b/nuttx/include/nuttx/binfmt/elf.h @@ -103,7 +103,7 @@ struct elf_loadinfo_s * The alloc[] array in struct binary_s will hold memory that persists after * the ELF module has been loaded. */ - + uintptr_t elfalloc; /* Memory allocated when ELF file was loaded */ size_t elfsize; /* Size of the ELF memory allocation */ off_t filelen; /* Length of the entire ELF file */ @@ -112,7 +112,7 @@ struct elf_loadinfo_s uint8_t *iobuffer; /* File I/O buffer */ /* Constructors and destructors */ - + #ifdef CONFIG_BINFMT_CONSTRUCTORS FAR void *ctoralloc; /* Memory allocated for ctors */ FAR void *dtoralloc; /* Memory allocated dtors */ @@ -126,7 +126,7 @@ struct elf_loadinfo_s * * addrenv - This is the handle created by up_addrenv_create() that can be * used to manage the tasks address space. - * oldenv - This is a value returned by up_addrenv_select() that must be + * oldenv - This is a value returned by up_addrenv_select() that must be * used to restore the current hardware address environment. */ diff --git a/nuttx/include/nuttx/binfmt/nxflat.h b/nuttx/include/nuttx/binfmt/nxflat.h index 32f29401b..71b36a36a 100644 --- a/nuttx/include/nuttx/binfmt/nxflat.h +++ b/nuttx/include/nuttx/binfmt/nxflat.h @@ -98,7 +98,7 @@ struct nxflat_loadinfo_s * * addrenv - This is the handle created by up_addrenv_create() that can be * used to manage the tasks address space. - * oldenv - This is a value returned by up_addrenv_select() that must be + * oldenv - This is a value returned by up_addrenv_select() that must be * used to restore the current hardware address environment. */ diff --git a/nuttx/include/nuttx/can.h b/nuttx/include/nuttx/can.h index 3db7746ee..a191ac436 100644 --- a/nuttx/include/nuttx/can.h +++ b/nuttx/include/nuttx/can.h @@ -134,7 +134,7 @@ * Bits 0-3: Data Length Code (DLC) * Bit 4: Remote Tranmission Request (RTR) * Bits 5-15: The 11-bit CAN identifier - * + * * Bytes 2-9: CAN data * * CAN-message Format (with Extended ID suppport) @@ -224,7 +224,7 @@ struct can_ops_s CODE void (*co_reset)(FAR struct can_dev_s *dev); /* Configure the CAN. This method is called the first time that the CAN - * device is opened. This will occur when the port is first opened. + * device is opened. This will occur when the port is first opened. * This setup includes configuring and attaching CAN interrupts. All CAN * interrupts are disabled upon return. */ diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 8ed7e4ac5..9347c9bef 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -106,7 +106,7 @@ */ # define naked_function __attribute__ ((naked,no_instrument_function)) - + /* The inline_function attribute informs GCC that the function should always * be inlined, regardless of the level of optimization. The noinline_function * indicates that the function should never be inlined. @@ -278,7 +278,7 @@ #if defined(__SDCC_z80) || defined(__SDCC_z180) || defined(__SDCC_gbz80) # define FAR -# define NEAR +# define NEAR # define CODE # define DSEG #else diff --git a/nuttx/include/nuttx/fs/mksmartfs.h b/nuttx/include/nuttx/fs/mksmartfs.h index b22b7fcc3..afef22dfa 100644 --- a/nuttx/include/nuttx/fs/mksmartfs.h +++ b/nuttx/include/nuttx/fs/mksmartfs.h @@ -71,7 +71,7 @@ extern "C" { * Name: mksmartfs * * Description: - * Make a SMART (Sector Mapped Allocation for Really Tiny) Flash file + * Make a SMART (Sector Mapped Allocation for Really Tiny) Flash file * system image on the specified block device (must be a SMART device). * * Inputs: diff --git a/nuttx/include/nuttx/fs/nfs.h b/nuttx/include/nuttx/fs/nfs.h index 31f97bd63..67245ef2b 100644 --- a/nuttx/include/nuttx/fs/nfs.h +++ b/nuttx/include/nuttx/fs/nfs.h @@ -65,7 +65,7 @@ /* Default PMAP port number to provide */ #define NFS_PMAPPORT 111 - + /**************************************************************************** * Public Types ****************************************************************************/ @@ -104,5 +104,5 @@ extern "C" { #if defined(__cplusplus) } #endif - + #endif /* _NFS_NFS_H */ diff --git a/nuttx/include/nuttx/fs/procfs.h b/nuttx/include/nuttx/fs/procfs.h index c5c844c1c..35314f245 100644 --- a/nuttx/include/nuttx/fs/procfs.h +++ b/nuttx/include/nuttx/fs/procfs.h @@ -103,7 +103,7 @@ struct procfs_entry_s FAR const struct procfs_operations *ops; }; -/* Specifies the common elements for an open file in the procfs +/* Specifies the common elements for an open file in the procfs * file system. This structure should be sub-classed by handlers * to add their own specific data elements to the context. */ diff --git a/nuttx/include/nuttx/fs/smart.h b/nuttx/include/nuttx/fs/smart.h index 6553e3417..6b95a42bd 100644 --- a/nuttx/include/nuttx/fs/smart.h +++ b/nuttx/include/nuttx/fs/smart.h @@ -59,7 +59,7 @@ * Public Types ****************************************************************************/ -/* The following defines the format information for the device. This +/* The following defines the format information for the device. This * information is retrieved via the BIOC_GETFORMAT ioctl. */ @@ -69,7 +69,7 @@ struct smart_format_s uint16_t availbytes; /* Number of bytes available in each sector */ uint16_t nsectors; /* Total number of sectors on device */ uint16_t nfreesectors; /* Number of free sectors on device */ - uint8_t flags; /* Format flags (see above) */ + uint8_t flags; /* Format flags (see above) */ uint8_t namesize; /* Size of filenames on this volume */ #ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS uint8_t nrootdirentries; /* Number of root directories on this device */ diff --git a/nuttx/include/nuttx/i2c.h b/nuttx/include/nuttx/i2c.h index 1b246d583..5e3c3a107 100644 --- a/nuttx/include/nuttx/i2c.h +++ b/nuttx/include/nuttx/i2c.h @@ -133,9 +133,9 @@ * Set our own I2C address. Calling this function enables Slave mode and * disables Master mode on given instance (note that I2C is a bus, where * multiple masters and slave may be handled by one device driver). - * + * * One may register a callback to be notified about reception. During the - * slave mode reception, the function READ and WRITE must be used to + * slave mode reception, the function READ and WRITE must be used to * to handle reads and writes from a master. * * Input Parameters: @@ -199,7 +199,7 @@ * * Description: * Send a block of data on I2C using the previously selected I2C - * frequency and slave address, followed by restarted read access. + * frequency and slave address, followed by restarted read access. * It provides a convenient wrapper to the transfer function. * * Input Parameters: @@ -220,9 +220,9 @@ * Name: I2C_TRANSFER * * Description: - * Perform a sequence of I2C transfers, each transfer is started with a - * START and the final transfer is completed with a STOP. Each sequence - * will be an 'atomic' operation in the sense that any other I2C actions + * Perform a sequence of I2C transfers, each transfer is started with a + * START and the final transfer is completed with a STOP. Each sequence + * will be an 'atomic' operation in the sense that any other I2C actions * will be serialized and pend until this read completes. Optional. * * Input Parameters: @@ -278,7 +278,7 @@ struct i2c_msg_s }; /* I2C private data. This structure only defines the initial fields of the - * structure visible to the I2C client. The specific implementation may + * structure visible to the I2C client. The specific implementation may * add additional, device specific fields after the vtable. */ @@ -305,7 +305,7 @@ extern "C" { * Description: * Initialize the selected I2C port. And return a unique instance of struct * struct i2c_dev_s. This function may be called to obtain multiple - * instances of the interface, each of which may be set up with a + * instances of the interface, each of which may be set up with a * different frequency and slave address. * * Input Parameter: @@ -329,7 +329,7 @@ EXTERN FAR struct i2c_dev_s *up_i2cinitialize(int port); * * Returned Value: * OK on success, ERROR when internal reference count mismatch or dev - * points to invalid hardware device. + * points to invalid hardware device. * ****************************************************************************/ diff --git a/nuttx/include/nuttx/lcd/lcd.h b/nuttx/include/nuttx/lcd/lcd.h index 6cf614bad..daf8e9982 100644 --- a/nuttx/include/nuttx/lcd/lcd.h +++ b/nuttx/include/nuttx/lcd/lcd.h @@ -107,7 +107,7 @@ struct lcd_planeinfo_s * if there are multiple LCD devices, they must each have unique run buffers. */ - uint8_t *buffer; + uint8_t *buffer; /* This is the number of bits in one pixel. This may be one of {1, 2, 4, * 8, 16, 24, or 32} unless support for one or more of those resolutions diff --git a/nuttx/include/nuttx/lcd/mio283qt2.h b/nuttx/include/nuttx/lcd/mio283qt2.h index 0ae1c5fd7..e05fa4255 100644 --- a/nuttx/include/nuttx/lcd/mio283qt2.h +++ b/nuttx/include/nuttx/lcd/mio283qt2.h @@ -133,7 +133,7 @@ EXTERN FAR struct lcd_dev_s *mio283qt2_lcdinitialize(FAR struct mio283qt2_lcd_s * Description: * This is a non-standard LCD interface. Because of the various rotations, clearing * the display in the normal way by writing a sequences of runs that covers the - * entire display can be very slow. Here the display is cleared by simply setting + * entire display can be very slow. Here the display is cleared by simply setting * all GRAM memory to the specified color. * **************************************************************************************/ diff --git a/nuttx/include/nuttx/lcd/mio283qt9a.h b/nuttx/include/nuttx/lcd/mio283qt9a.h index 3d94d6b57..376bafa92 100644 --- a/nuttx/include/nuttx/lcd/mio283qt9a.h +++ b/nuttx/include/nuttx/lcd/mio283qt9a.h @@ -135,7 +135,7 @@ FAR struct lcd_dev_s *mio283qt2_lcdinitialize(FAR struct mio283qt9a_lcd_s *lcd); * Description: * This is a non-standard LCD interface. Because of the various rotations, clearing * the display in the normal way by writing a sequences of runs that covers the - * entire display can be very slow. Here the display is cleared by simply setting + * entire display can be very slow. Here the display is cleared by simply setting * all GRAM memory to the specified color. * **************************************************************************************/ diff --git a/nuttx/include/nuttx/lcd/ssd1289.h b/nuttx/include/nuttx/lcd/ssd1289.h index 5a113c09f..42156c866 100644 --- a/nuttx/include/nuttx/lcd/ssd1289.h +++ b/nuttx/include/nuttx/lcd/ssd1289.h @@ -133,7 +133,7 @@ EXTERN FAR struct lcd_dev_s *ssd1289_lcdinitialize(FAR struct ssd1289_lcd_s *lcd * Description: * This is a non-standard LCD interface. Because of the various rotations, clearing * the display in the normal way by writing a sequences of runs that covers the - * entire display can be very slow. Here the display is cleared by simply setting + * entire display can be very slow. Here the display is cleared by simply setting * all GRAM memory to the specified color. * **************************************************************************************/ diff --git a/nuttx/include/nuttx/lcd/ug-9664hswag01.h b/nuttx/include/nuttx/lcd/ug-9664hswag01.h index b781919d8..dc06bb0a3 100644 --- a/nuttx/include/nuttx/lcd/ug-9664hswag01.h +++ b/nuttx/include/nuttx/lcd/ug-9664hswag01.h @@ -59,7 +59,7 @@ * CONFIG_UG9664HSWAG01_POWER * If the hardware supports a controllable OLED a power supply, this * configuration shold be defined. (See ug_power() below). - * + * * Required LCD driver settings: * CONFIG_LCD_UG9664HSWAG01 - Enable UG-9664HSWAG01 support * CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted. diff --git a/nuttx/include/nuttx/mtd/mtd.h b/nuttx/include/nuttx/mtd/mtd.h index 5078d6590..ad1842074 100644 --- a/nuttx/include/nuttx/mtd/mtd.h +++ b/nuttx/include/nuttx/mtd/mtd.h @@ -404,7 +404,7 @@ FAR struct mtd_dev_s *up_flashinitialize(void); * * Description: * Registers MTD device with the procfs file system. This assigns a unique - * MTD number and associates the given device name, then add adds it to + * MTD number and associates the given device name, then add adds it to * the list of registered devices. * * In an embedded system, this all is really unnecessary, but is provided diff --git a/nuttx/include/nuttx/net/cs89x0.h b/nuttx/include/nuttx/net/cs89x0.h index 4b2a52a5c..2ba876f9b 100644 --- a/nuttx/include/nuttx/net/cs89x0.h +++ b/nuttx/include/nuttx/net/cs89x0.h @@ -43,7 +43,7 @@ #include #include #include - + /**************************************************************************** * Public Types ****************************************************************************/ diff --git a/nuttx/include/nuttx/net/enc28j60.h b/nuttx/include/nuttx/net/enc28j60.h index ea5601c31..e7612e201 100644 --- a/nuttx/include/nuttx/net/enc28j60.h +++ b/nuttx/include/nuttx/net/enc28j60.h @@ -42,7 +42,7 @@ #include #include - + #include /**************************************************************************** diff --git a/nuttx/include/nuttx/net/uip/uip-igmp.h b/nuttx/include/nuttx/net/uip/uip-igmp.h index 8b6d79e61..3a6a13a5b 100644 --- a/nuttx/include/nuttx/net/uip/uip-igmp.h +++ b/nuttx/include/nuttx/net/uip/uip-igmp.h @@ -12,30 +12,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -200,8 +200,8 @@ struct uip_igmp_stats_s /* This structure represents one group member. There is a list of groups * for each device interface structure. - * - * There will be a group for the all systems group address but this + * + * There will be a group for the all systems group address but this * will not run the state machine as it is used to kick off reports * from all the other groups */ diff --git a/nuttx/include/nuttx/net/uip/uip-ipopt.h b/nuttx/include/nuttx/net/uip/uip-ipopt.h index 2d7393c02..7aa4114db 100644 --- a/nuttx/include/nuttx/net/uip/uip-ipopt.h +++ b/nuttx/include/nuttx/net/uip/uip-ipopt.h @@ -67,7 +67,7 @@ * * The IP Option Type byte consists of the following subfields: */ - + #define IPOPT_TYPE_OPTION_SHIFT (0) /* Bits 0-5: Option number*/ #define IPOPT_TYPE_OPTION_MASK (0x1f << IPOPT_TYPE_OPTION_SHIFT) # define IPOPT_TYPE_OPTION_END (0 << IPOPT_TYPE_OPTION_SHIFT) /* End of options list (RFC 791) */ @@ -116,7 +116,7 @@ /* Option Copy Class Length Description References * ------ ---- ----- --------- ------------------------------------------------ * 0 0 0 1 End of options list (RFC 791) - * 1 0 0 1 NOP (RFC 791 + * 1 0 0 1 NOP (RFC 791 * 2 1 0 11 Security (RFC 791, RFC 1108) * 3 1 0 variable Loose Source Route (RFC 791) * 4 0 2 variable Time stamp (RFC 781, RFC 791) @@ -137,18 +137,18 @@ * 19 1 0 10 Address Extension (RFC 1475) * 20 1 0 4 Router Alert (RFC 2113) * 21 1 0 6-38 Selective Directed Broadcast Mode (RFC 1770) - * 22 1 0 + * 22 1 0 * 23 1 0 Dynamic Packet State * 24 1 0 Upstream Multicast Packet * 25 0 0 QS, Quick-Start (RFC 4782) * 26 * - - * 29 + * 29 * 30 0 0 EXP - RFC3692-style Experiment (RFC 4727) * 30 0 2 EXP - RFC3692-style Experiment (RFC 4727) * 30 1 0 EXP - RFC3692-style Experiment RFC 4727) * 30 1 2 EXP - RFC3692-style Experiment (RFC 4727) - * 31 + * 31 */ #define IPOTR_END_LEN 1 @@ -226,13 +226,13 @@ #define IPOPT_SDBM_TYPE \ IPOPT_MKTYPE(IPOPT_TYPE_COPIED, IPOPT_TYPE_CLASS_CTRL, IPOPT_TYPE_OPTION_SDBM) - + #define IPOPT_DPS_TYPE \ IPOPT_MKTYPE(IPOPT_TYPE_COPIED, IPOPT_TYPE_CLASS_CTRL, IPOPT_TYPE_OPTION_DPS) - + #define IPOPT_UMP_TYPE \ IPOPT_MKTYPE(IPOPT_TYPE_COPIED, IPOPT_TYPE_CLASS_CTRL, IPOPT_TYPE_OPTION_UMP) - + #define IPOPT_QS_TYPE \ IPOPT_MKTYPE(IPOPT_TYPE_NOTCOPIED, IPOPT_TYPE_CLASS_CTRL, IPOPT_TYPE_OPTION_QS) diff --git a/nuttx/include/nuttx/nx/nxconsole.h b/nuttx/include/nuttx/nx/nxconsole.h index 6ff719237..657df4af5 100644 --- a/nuttx/include/nuttx/nx/nxconsole.h +++ b/nuttx/include/nuttx/nx/nxconsole.h @@ -233,7 +233,7 @@ extern "C" { * minor - The device minor number * * Return: - * A non-NULL handle is returned on success. + * A non-NULL handle is returned on success. * ****************************************************************************/ @@ -256,7 +256,7 @@ EXTERN NXCONSOLE nx_register(NXWINDOW hwnd, FAR struct nxcon_window_s *wndo, * minor - The device minor number * * Return: - * A non-NULL handle is returned on success. + * A non-NULL handle is returned on success. * ****************************************************************************/ @@ -281,7 +281,7 @@ EXTERN NXCONSOLE nxtk_register(NXTKWINDOW hfwnd, * minor - The device minor number * * Return: - * A non-NULL handle is returned on success. + * A non-NULL handle is returned on success. * ****************************************************************************/ diff --git a/nuttx/include/nuttx/nx/nxfonts.h b/nuttx/include/nuttx/nx/nxfonts.h index 91bce0036..1d8f9748c 100644 --- a/nuttx/include/nuttx/nx/nxfonts.h +++ b/nuttx/include/nuttx/nx/nxfonts.h @@ -135,7 +135,7 @@ enum nx_fontid_e #ifdef CONFIG_NXFONT_MONO5X8 , FONTID_MONO5X8 = 18 /* The 5x8 monospace font */ #endif - + /* Sans Serif fonts */ #ifdef CONFIG_NXFONT_SANS17X22 diff --git a/nuttx/include/nuttx/nx/nxglib.h b/nuttx/include/nuttx/nx/nxglib.h index 77d5af71b..3670bbd62 100644 --- a/nuttx/include/nuttx/nx/nxglib.h +++ b/nuttx/include/nuttx/nx/nxglib.h @@ -515,7 +515,7 @@ EXTERN void nxgl_rectadd(FAR struct nxgl_rect_s *dest, * Name: nxgl_rectunion * * Description: - * Given two rectanges, src1 and src2, return the larger rectangle that + * Given two rectanges, src1 and src2, return the larger rectangle that * contains both, dest. * ****************************************************************************/ diff --git a/nuttx/include/nuttx/page.h b/nuttx/include/nuttx/page.h index 4d2353a60..7f4d79e62 100644 --- a/nuttx/include/nuttx/page.h +++ b/nuttx/include/nuttx/page.h @@ -172,7 +172,7 @@ * from the end of RAM for page tables or other system usage. The * configuration settings and linker directives must be cognizant of that: * CONFIG_PAGING_NDATA should be defined to prevent the data region from - * extending all the way to the end of memory. + * extending all the way to the end of memory. */ #define PG_RAM_PAGES (CONFIG_RAM_SIZE >> PAGESHIFT) @@ -213,7 +213,7 @@ * transfer is completed. Default: Undefined (non-blocking). * CONFIG_PAGING_WORKPERIOD - The page fill worker thread will wake periodically * even if there is no mapping to do. This selection controls that wake-up - * period (in microseconds). This wake-up a failsafe that will handle any + * period (in microseconds). This wake-up a failsafe that will handle any * cases where a single is lost (that would really be a bug and shouldn't * happen!) and also supports timeouts for case of non-blocking, asynchronous * fills (see CONFIG_PAGING_TIMEOUT_TICKS). @@ -315,7 +315,7 @@ void pg_miss(void); * Public Functions -- Provided by architecture-specific logic to common * paging logic. ****************************************************************************/ - + /**************************************************************************** * Name: up_checkmapping() * diff --git a/nuttx/include/nuttx/progmem.h b/nuttx/include/nuttx/progmem.h index 2da59eab1..46dd1db61 100644 --- a/nuttx/include/nuttx/progmem.h +++ b/nuttx/include/nuttx/progmem.h @@ -96,7 +96,7 @@ uint16_t up_progmem_pagesize(uint16_t page); * Name: up_progmem_getpage * * Description: - * Address to page conversion + * Address to page conversion * * Input Parameters: * addr - Address with of without flash offset (absolute or aligned to page0) @@ -118,7 +118,7 @@ int up_progmem_getpage(uint32_t addr); * Erase selected page. * * Input Parameters: - * page - + * page - * * Returned Value: * Page size or negative value on error. The following errors are reported @@ -142,7 +142,7 @@ int up_progmem_erasepage(uint16_t page); * Checks whether page is erased * * Input Parameters: - * page - + * page - * * Returned Value: * Returns number of bytes written or negative value on error. If it @@ -187,7 +187,7 @@ int up_progmem_ispageerased(uint16_t page); int up_progmem_write(uint32_t addr, const void *buf, size_t count); /* TODO: Define the following functions and their options: - * - up_progmem_protect() + * - up_progmem_protect() * - up_progmem_unprotect() */ diff --git a/nuttx/include/nuttx/pwm.h b/nuttx/include/nuttx/pwm.h index 69fa4fc4d..228e151d7 100644 --- a/nuttx/include/nuttx/pwm.h +++ b/nuttx/include/nuttx/pwm.h @@ -76,7 +76,7 @@ * CONFIG_DEBUG_VERBOSE), this will generate output that can be use dto * debug the PWM driver. */ - + /* IOCTL Commands ***********************************************************/ /* The PWM module uses a standard character driver framework. However, since * the PWM driver is a device control interface and not a data transfer diff --git a/nuttx/include/nuttx/rtc.h b/nuttx/include/nuttx/rtc.h index 28ae84513..1b5658f16 100644 --- a/nuttx/include/nuttx/rtc.h +++ b/nuttx/include/nuttx/rtc.h @@ -261,7 +261,7 @@ EXTERN int up_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback); * Name: up_rtc_cancelalarm * * Description: - * Cancel a pending alarm alarm + * Cancel a pending alarm alarm * * Input Parameters: * none diff --git a/nuttx/include/nuttx/sensors/lis331dl.h b/nuttx/include/nuttx/sensors/lis331dl.h index 2e83dbe1f..f90c17716 100644 --- a/nuttx/include/nuttx/sensors/lis331dl.h +++ b/nuttx/include/nuttx/sensors/lis331dl.h @@ -37,7 +37,7 @@ /** \file * \author Uros Platise * \brief ST LIS331DL I2C Device Driver - **/ + **/ #ifndef __INCLUDE_NUTTX_SENSORS_LIS331DL_H #define __INCLUDE_NUTTX_SENSORS_LIS331DL_H @@ -76,11 +76,11 @@ struct lis331dl_vector_s { ************************************************************************************/ /** Initialize ST LIS331DL Chip - * + * * \param i2c I2C Device Structure * \param address I2C Address of the proposed device * \return Pointer to newly allocated ST LIS331DL structure or NULL on error with errno set. - * + * * Possible errno as set by this function on error: * - ENODEV: When device addressed on given address is not compatible or it is not a LIS331DL * - EFAULT: When there is no device at given address. @@ -89,10 +89,10 @@ struct lis331dl_vector_s { EXTERN struct lis331dl_dev_s * lis331dl_init(struct i2c_dev_s * i2c, uint16_t address); /** Deinitialize ST LIS331DL Chip - * + * * \param dev Device to LIS331DL device structure, as returned by the lis331dl_init() * \return OK On success - * + * **/ EXTERN int lis331dl_deinit(struct lis331dl_dev_s * dev); @@ -102,8 +102,8 @@ EXTERN int lis331dl_powerup(struct lis331dl_dev_s * dev); /** Power down device, stop conversion */ EXTERN int lis331dl_powerdown(struct lis331dl_dev_s * dev); -/** Configure conversion - * +/** Configure conversion + * * \param dev Device to LIS331DL device structure * \param full When set, range of [-9g, 9g] is selected, otherwise [-2g, +2g] * \param fast When set, conversion operates at 400 Hz, otherwise at 100 Hz @@ -112,19 +112,19 @@ EXTERN int lis331dl_powerdown(struct lis331dl_dev_s * dev); EXTERN int lis331dl_setconversion(struct lis331dl_dev_s * dev, bool full, bool fast); /** Get precision - * + * * \return Precision of 1 LSB in terms of unit [mg] **/ EXTERN int lis331dl_getprecision(struct lis331dl_dev_s * dev); -/** Get sample rate - * +/** Get sample rate + * * \return Sample rate in unit of [Hz] **/ EXTERN int lis331dl_getsamplerate(struct lis331dl_dev_s * dev); /** Get readings, updates internal data structure - * + * * \param dev Device to LIS331DL device structure * \return Ptr to vector acceleration [x,y,z] on success, or NULL on error with errno set. * If data is not yet ready to be read from the LIS331 then errno is set to EAGAIN otherwise diff --git a/nuttx/include/nuttx/sensors/qencoder.h b/nuttx/include/nuttx/sensors/qencoder.h index d21fa1248..01cb900a1 100644 --- a/nuttx/include/nuttx/sensors/qencoder.h +++ b/nuttx/include/nuttx/sensors/qencoder.h @@ -53,7 +53,7 @@ */ /* IOCTL Commands ***********************************************************/ -/* The Quadrature Encode module uses a standard character driver framework. +/* The Quadrature Encode module uses a standard character driver framework. * However, since the driver is a devices control interface and not a data * transfer interface, the majority of the functionality is implemented in * driver ioctl calls. The PWM ioctal commands are lised below: diff --git a/nuttx/include/nuttx/spi/spi.h b/nuttx/include/nuttx/spi/spi.h index e17ad6d4d..ace8799cf 100644 --- a/nuttx/include/nuttx/spi/spi.h +++ b/nuttx/include/nuttx/spi/spi.h @@ -405,7 +405,7 @@ struct spi_ops_s }; /* SPI private data. This structure only defines the initial fields of the - * structure visible to the SPI client. The specific implementation may + * structure visible to the SPI client. The specific implementation may * add additional, device specific fields */ diff --git a/nuttx/include/nuttx/syslog/ramlog.h b/nuttx/include/nuttx/syslog/ramlog.h index 2777d3419..ab60426b1 100644 --- a/nuttx/include/nuttx/syslog/ramlog.h +++ b/nuttx/include/nuttx/syslog/ramlog.h @@ -37,7 +37,7 @@ * output (syslogging) when the normal serial output is not available. For * example, if you are using a telnet or USB serial console, the debug * output will get lost. - * + * * The RAM logging driver is similar to a pipe in that it saves the * debugging output in a FIFO in RAM. It differs from a pipe in numerous * details as needed to support logging. diff --git a/nuttx/include/nuttx/time.h b/nuttx/include/nuttx/time.h index 58caa3430..106eb7981 100644 --- a/nuttx/include/nuttx/time.h +++ b/nuttx/include/nuttx/time.h @@ -106,7 +106,7 @@ EXTERN int clock_daysbeforemonth(int month, bool leapyear); * Calendar/UTC conversion based on algorithms from p. 604 * of Seidelman, P. K. 1992. Explanatory Supplement to * the Astronomical Almanac. University Science Books, - * Mill Valley. + * Mill Valley. * ****************************************************************************/ diff --git a/nuttx/include/nuttx/usb/audio.h b/nuttx/include/nuttx/usb/audio.h index eb21bbdc1..44743874a 100644 --- a/nuttx/include/nuttx/usb/audio.h +++ b/nuttx/include/nuttx/usb/audio.h @@ -9,7 +9,7 @@ * documents for the Audio v2.0 package: * * 1. Universal Serial Bus Device Class Definition for Audio Devices, Release - * 2.0, May 31, 2006, + * 2.0, May 31, 2006, * 2. Universal Serial Bus Device Class Definition for Audio Data Formats, * Release 2.0, May 31, 2006 * 3. Universal Serial Bus Device Class Definition for Terminal Types,\ @@ -1178,7 +1178,7 @@ struct adc_mpeg_decoder_desc_s * 01 = Supported at Fs * 10 = Reserved * 11 = Supported at Fs and ½Fs. - * Bit 10: + * Bit 10: * Bit 11-15: Reserved */ uint8_t md_features; /* 7: MPEG features * Bits 0-3: Reserved @@ -1395,7 +1395,7 @@ struct adc_clustctrl_curparm_s uint8_t cc_nchan; /* 0: Number of logical channels */ uint8_t cc_config[4]; /* 1: Spatial location of channels */ uint8_t cc_names; /* 5: String index of first channel name */ -}; +}; #define USB_SIZEOF_ADC_CLUSTCTRL_CURPARM 6 @@ -1406,7 +1406,7 @@ struct adc_connctrl_curparm_s uint8_t cc_nchan; /* 0: Number of logical channels */ uint8_t cc_config[4]; /* 1: Spatial location of channels */ uint8_t cc_names; /* 5: String index of first channel name */ -}; +}; #define USB_SIZEOF_ADC_CONNCTRL_CURPARM 6 @@ -1416,7 +1416,7 @@ struct adc_equalizer_curparm_s { uint8_t eq_bands[4]; /* 0: A set bit indicates that the band is present */ uint8_t eq_cur[1]; /* 4: Setting for the band in bands bitset */ -}; +}; #define USB_SIZEOF_ADC_CONNCTRL_CURPARM(nbands) (4+(nbands)) @@ -1477,7 +1477,7 @@ struct adc_hilo_rangeparm_s struct adc_int_message_s { uint8_t im_info; /* 0: Bitmap - * Bit 0: Vender specific, + * Bit 0: Vender specific, * Bit 1: Interface or endpoint * Bits 2-7: Reserved */ uint8_t im_attr; /* 1: The attribute that cause the interrupt */ diff --git a/nuttx/include/nuttx/usb/cdc.h b/nuttx/include/nuttx/usb/cdc.h index 627dd77e3..f185d0a84 100644 --- a/nuttx/include/nuttx/usb/cdc.h +++ b/nuttx/include/nuttx/usb/cdc.h @@ -125,7 +125,7 @@ #define DLC_SET_PULSE_TIME 0x14 /* Setup value for time of make and break periods when * pulse dialing. (Optional) */ -#define DLC_RING_AUX_JACK 0x15 /* Request for a ring signal to be generated on secondary +#define DLC_RING_AUX_JACK 0x15 /* Request for a ring signal to be generated on secondary * phone jack. (Optional) */ /* Table 3: Notifications, Direct Line Control Model */ @@ -169,7 +169,7 @@ #define ACM_NETWORK_CONNECTION 0x00 /* Notification to host of network connection status. * (Optional) */ -#define ACM_RESPONSE_AVAILABLE 0x01 /* Notification to host to issue a GET_ENCAPSULATED_RESPONSE +#define ACM_RESPONSE_AVAILABLE 0x01 /* Notification to host to issue a GET_ENCAPSULATED_RESPONSE * request. (Required) */ #define ACM_SERIAL_STATE 0x20 /* Returns the current state of the carrier detect, DSR, diff --git a/nuttx/include/nuttx/usb/composite.h b/nuttx/include/nuttx/usb/composite.h index 98f992bf3..ae818ffbc 100644 --- a/nuttx/include/nuttx/usb/composite.h +++ b/nuttx/include/nuttx/usb/composite.h @@ -97,7 +97,7 @@ extern "C" { * Register USB composite device as configured. This function will call * board-specific implementations in order to obtain the class objects for * each of the members of the composite (see board_mscclassobject(), - * board_cdcclassobjec(), ...) + * board_cdcclassobjec(), ...) * * Input Parameter: * None @@ -122,7 +122,7 @@ EXTERN FAR void *composite_initialize(void); * class' device object as was returned by composite_initialize(). This * function will call board-specific implementations in order to free the * class objects for each of the members of the composite (see - * board_mscuninitialize(), board_cdcuninitialize(), ...) + * board_mscuninitialize(), board_cdcuninitialize(), ...) * * Input Parameters: * handle - The handle returned by a previous call to composite_initialize(). @@ -141,7 +141,7 @@ EXTERN void composite_uninitialize(FAR void *handle); * Register USB composite device as configured. This function will call * board-specific implementations in order to obtain the class objects for * each of the members of the composite (see board_mscclassobject(), - * board_cdcclassobjec(), ...) + * board_cdcclassobjec(), ...) * * Input Parameter: * None diff --git a/nuttx/include/nuttx/usb/hid.h b/nuttx/include/nuttx/usb/hid.h index c2c635c8d..a8b5facbd 100644 --- a/nuttx/include/nuttx/usb/hid.h +++ b/nuttx/include/nuttx/usb/hid.h @@ -104,7 +104,7 @@ /* Class-specific requests (HID 7.2) * - * bmRequestType ( USB_REQ_TYPE_CLASS | USB_REQ_RECIPIENT_INTERFACE) -or- + * bmRequestType ( USB_REQ_TYPE_CLASS | USB_REQ_RECIPIENT_INTERFACE) -or- * (USB_REQ_DIR_IN | USB_REQ_TYPE_CLASS | USB_REQ_RECIPIENT_INTERFACE) * bRequest Class-specific request * wValue Varies according to request @@ -112,7 +112,7 @@ * wLength Number of bytes to transfer in the data phase * Data Data */ - + #define USBHID_REQUEST_GETREPORT 0x01 #define USBHID_REQUEST_GETIDLE 0x02 #define USBHID_REQUEST_GETPROTOCOL 0x03 @@ -122,9 +122,9 @@ /* Report Type (MS byte of wValue for GET_REPORT) (HID 7.2.1) */ -#define USBHID_REPORTTYPE_INPUT 0x01 -#define USBHID_REPORTTYPE_OUTPUT 0x02 -#define USBHID_REPORTTYPE_FEATURE 0x03 +#define USBHID_REPORTTYPE_INPUT 0x01 +#define USBHID_REPORTTYPE_OUTPUT 0x02 +#define USBHID_REPORTTYPE_FEATURE 0x03 /* HID Descriptor ***********************************************************/ diff --git a/nuttx/include/nuttx/usb/hid_parser.h b/nuttx/include/nuttx/usb/hid_parser.h index 07e1e5765..9ec6c3600 100644 --- a/nuttx/include/nuttx/usb/hid_parser.h +++ b/nuttx/include/nuttx/usb/hid_parser.h @@ -109,7 +109,7 @@ #define HID_REPORT_ITEM_IN 0 #define HID_REPORT_ITEM_OUT 1 #define HID_REPORT_ITEM_FEATURE 2 - + /**************************************************************************** * Public Types ****************************************************************************/ @@ -209,7 +209,7 @@ struct hid_rptinfo_s /* All collection items, referenced by the report items. */ struct hid_collectionpath_s collectionpaths[CONFIG_HID_MAXCOLLECTIONS]; - + uint8_t nreports; /* Number of reports within the HID interface */ struct hid_rptsizeinfo_s rptsize[CONFIG_HID_MAXIDS]; /* Report sizes for each report in the interface */ uint16_t maxrptsize; /* Largest report that the attached device will generate, in bits */ @@ -337,7 +337,7 @@ EXTERN void hid_putitem(FAR uint8_t *report, FAR struct hid_rptitem_s *item); * Size of the report in bytes, or 0 if the report does not exist. * ****************************************************************************/ - + EXTERN size_t hid_reportsize(FAR struct hid_rptinfo_s *rptinfo, uint8_t id, uint8_t rpttype); diff --git a/nuttx/include/nuttx/usb/ohci.h b/nuttx/include/nuttx/usb/ohci.h index 9f5315bbf..c3250bd2c 100644 --- a/nuttx/include/nuttx/usb/ohci.h +++ b/nuttx/include/nuttx/usb/ohci.h @@ -45,7 +45,7 @@ ****************************************************************************/ #include - + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -411,14 +411,14 @@ struct ohci_itd_s }; /* Host Controller Communications Area Format (4.4.1) */ - + struct ohci_hcca_s { /* HccaInterrruptTable: 32x32-bit pointers to interrupt EDs */ volatile uint32_t inttbl[HCCA_INTTBL_WSIZE]; - /* HccaFrameNumber: Current frame number and + /* HccaFrameNumber: Current frame number and * HccaPad1: Zero when frame no. updated */ diff --git a/nuttx/include/nuttx/usb/usb.h b/nuttx/include/nuttx/usb/usb.h index 74b1f6a95..f4208bcd4 100644 --- a/nuttx/include/nuttx/usb/usb.h +++ b/nuttx/include/nuttx/usb/usb.h @@ -242,7 +242,7 @@ /* OTG Definitions */ /* OTG SET FEATURE Constants */ - + #define USBOTG_FEATURE_B_HNP_ENABLE 3 /* Enable B device to perform HNP */ #define USBOTG_FEATURE_A_HNP_SUPPORT 4 /* A device supports HNP */ #define USBOTG_FEATURE_A_ALT_HNP_SUPPORT 5 /* Another port on the A device supports HNP */ @@ -389,7 +389,7 @@ struct usb_qualdesc_s * the USB Device Working Group (DWG) created USB device classes that allow for * functions with multiple interfaces, and the USB Implementor's Forum issued an * Engineering Change Notification (ECN) that defines a mechanism for grouping - * interfaces. + * interfaces. */ struct usb_iaddesc_s diff --git a/nuttx/include/nuttx/usb/usbdev_trace.h b/nuttx/include/nuttx/usb/usbdev_trace.h index 2e210ac07..b05eaca21 100644 --- a/nuttx/include/nuttx/usb/usbdev_trace.h +++ b/nuttx/include/nuttx/usb/usbdev_trace.h @@ -435,7 +435,7 @@ typedef int (*trprintf_t)(const char *fmt, ...); /**************************************************************************** * Public Data ****************************************************************************/ - + #undef EXTERN #if defined(__cplusplus) # define EXTERN extern "C" diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index 761ce8ad3..91335d7a6 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -561,7 +561,7 @@ struct usbhost_registry_s * environments where there may be multiple USB ports and multiple USB devices * simultaneously connected (see the CLASS_CREATE() macro above). */ - + FAR struct usbhost_class_s *(*create)(FAR struct usbhost_driver_s *drvr, FAR const struct usbhost_id_s *id); diff --git a/nuttx/include/nuttx/vt100.h b/nuttx/include/nuttx/vt100.h index 132d6457f..1dca7619d 100644 --- a/nuttx/include/nuttx/vt100.h +++ b/nuttx/include/nuttx/vt100.h @@ -239,15 +239,15 @@ #define VT100_ALT_3 {ASCII_ESC, 'O', 's'} #define VT100_NUMERIC_4 {'4'} #define VT100_ALT_4 {ASCII_ESC, 'O', 't'} -#define VT100_NUMERIC_5 {'5'} +#define VT100_NUMERIC_5 {'5'} #define VT100_ALT_5 {ASCII_ESC, 'O', 'u'} -#define VT100_NUMERIC_6 {'6'} +#define VT100_NUMERIC_6 {'6'} #define VT100_ALT_6 {ASCII_ESC, 'O', 'v'} #define VT100_NUMERIC_7 {'7'} #define VT100_ALT_7 {ASCII_ESC, 'O', 'w'} -#define VT100_NUMERIC_8 {'8'} +#define VT100_NUMERIC_8 {'8'} #define VT100_ALT_8 {ASCII_ESC, 'O', 'x'} -#define VT100_NUMERIC_9 {'9', +#define VT100_NUMERIC_9 {'9', #define VT100_ALT_9 {ASCII_ESC, 'O', 'y'} #define VT100_NUMERIC_MINUS {'-'} #define VT100_ALT_MINUS {ASCII_ESC, 'O', 'm'} diff --git a/nuttx/include/nuttx/watchdog.h b/nuttx/include/nuttx/watchdog.h index bcf8b1522..1d9701294 100644 --- a/nuttx/include/nuttx/watchdog.h +++ b/nuttx/include/nuttx/watchdog.h @@ -75,7 +75,7 @@ * * WDIOC_MINTIME - Set the minimum ping time. If two keepalive ioctls * are received within this time, a reset event will - * be generated. This feature should assume to be + * be generated. This feature should assume to be * disabled after WDIOC_SETTIMEOUT. * Argument: A 32-bit time value in milliseconds. */ @@ -112,7 +112,7 @@ struct watchdog_capture_s * and returned by the "lower half" getstatus() method. */ -struct watchdog_status_s +struct watchdog_status_s { uint32_t flags; /* See WDFLAGS_* definitions above */ uint32_t timeout; /* The current timeout setting (in milliseconds) */ @@ -125,7 +125,7 @@ struct watchdog_status_s */ struct watchdog_lowerhalf_s; -struct watchdog_ops_s +struct watchdog_ops_s { /* Required methods ********************************************************/ /* Start the watchdog timer, resetting the time to the current timeout */ @@ -270,7 +270,7 @@ EXTERN void watchdog_unregister(FAR void *handle); * Perform architecture-specific initialization of the Watchdog hardware. * This interface should be provided by all configurations using * to avoid exposed platform-dependent logic. - * + * * At a minimum, this function should all watchdog_register() which is * described above. * diff --git a/nuttx/include/nuttx/wireless/cc3000/cc3000_common.h b/nuttx/include/nuttx/wireless/cc3000/cc3000_common.h index e0b154287..b28ef353c 100644 --- a/nuttx/include/nuttx/wireless/cc3000/cc3000_common.h +++ b/nuttx/include/nuttx/wireless/cc3000/cc3000_common.h @@ -11,23 +11,23 @@ * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the + * documentation and/or other materials provided with the * distribution. * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *****************************************************************************/ @@ -58,16 +58,16 @@ /* Common definitions */ -#define ERROR_SOCKET_INACTIVE -57 +#define ERROR_SOCKET_INACTIVE -57 -#define WLAN_ENABLE (1) +#define WLAN_ENABLE (1) #define WLAN_DISABLE (0) #define MAC_ADDR_LEN (6) #define SP_PORTION_SIZE (32) - -/* Defines for minimal and maximal RX buffer size. This size includes the spi + +/* Defines for minimal and maximal RX buffer size. This size includes the spi * header and hci header. * The maximal buffer size derives from: * MTU + HCI header + SPI header + sendto() agrs size @@ -75,9 +75,9 @@ * HCI header + SPI header + max args size * * This buffer is used for receiving events and data. - * The packet can not be longer than MTU size and CC3000 does not support - * fragmentation. Note that the same buffer is used for reception of the data - * and events from CC3000. That is why the minimum is defined. + * The packet can not be longer than MTU size and CC3000 does not support + * fragmentation. Note that the same buffer is used for reception of the data + * and events from CC3000. That is why the minimum is defined. * The calculation for the actual size of buffer for reception is: * Given the maximal data size MAX_DATA that is expected to be received by * application, the required buffer is: @@ -88,13 +88,13 @@ * * Using gethostbyname() with minimal buffer size will limit the host name * returned to 99 bytes only. - * The 1 is used for the overrun detection + * The 1 is used for the overrun detection * * Buffer size increased to 130 following the add_profile() with WEP security - * which requires TX buffer size of 130 bytes: + * which requires TX buffer size of 130 bytes: * HEADERS_SIZE_EVNT + WLAN_ADD_PROFILE_WEP_PARAM_LEN + MAX SSID LEN + 4 * MAX KEY LEN = 130 - * MAX SSID LEN = 32 - * MAX SSID LEN = 13 (with add_profile only ascii key setting is supported, + * MAX SSID LEN = 32 + * MAX SSID LEN = 13 (with add_profile only ascii key setting is supported, * therfore maximum key size is 13) */ @@ -103,7 +103,7 @@ /* Defines for minimal and maximal TX buffer size. * This buffer is used for sending events and data. - * The packet can not be longer than MTU size and CC3000 does not support + * The packet can not be longer than MTU size and CC3000 does not support * fragmentation. Note that the same buffer is used for transmission of the * data and commands. That is why the minimum is defined. * The calculation for the actual size of buffer for transmission is: @@ -119,9 +119,9 @@ * + HCI_CMND_SEND_ARG_LENGTH + SIMPLE_LINK_HCI_DATA_HEADER_SIZE + 1) * * The 1 is used for the overrun detection - */ + */ -#define CC3000_MINIMAL_TX_SIZE (130 + 1) +#define CC3000_MINIMAL_TX_SIZE (130 + 1) #define CC3000_MAXIMAL_TX_SIZE (1519 + 1) /* TX and RX buffer sizes, allow to receive and transmit maximum data at @@ -133,15 +133,15 @@ # define TINY_CC3000_MAXIMAL_TX_SIZE 59 #endif -/* In order to determine your preferred buffer size, +/* In order to determine your preferred buffer size, * change CC3000_MAXIMAL_RX_SIZE and CC3000_MAXIMAL_TX_SIZE to a value between - * the minimal and maximal specified above. + * the minimal and maximal specified above. * Note that the buffers are allocated by SPI. * In case you change the size of those buffers, you might need also to change * the linker file, since for example on MSP430 FRAM devices the buffers are * allocated in the FRAM section that is allocated manually and not by IDE. */ - + #ifndef CC3000_TINY_DRIVER # define CC3000_RX_BUFFER_SIZE (CC3000_MAXIMAL_RX_SIZE) # define CC3000_TX_BUFFER_SIZE (CC3000_MAXIMAL_TX_SIZE) @@ -153,7 +153,7 @@ #else # define CC3000_RX_BUFFER_SIZE (TINY_CC3000_MAXIMAL_RX_SIZE) # define CC3000_TX_BUFFER_SIZE (TINY_CC3000_MAXIMAL_TX_SIZE) -#endif +#endif /* This macro is used for copying 8 bit to stream while converting to little * endian format. diff --git a/nuttx/include/nuttx/wqueue.h b/nuttx/include/nuttx/wqueue.h index d1c36419a..bf9c56834 100644 --- a/nuttx/include/nuttx/wqueue.h +++ b/nuttx/include/nuttx/wqueue.h @@ -242,7 +242,7 @@ * * User Work Queue: * USRWORK: In the kernel phase a a kernel build, there should be no - * references to user-space work queues. That would be an error. + * references to user-space work queues. That would be an error. * Otherwise, in a flat build, user applications will use the lower * priority work queue (if there is one). */ diff --git a/nuttx/include/nxflat.h b/nuttx/include/nxflat.h index 82e667897..18d1b7165 100644 --- a/nuttx/include/nxflat.h +++ b/nuttx/include/nxflat.h @@ -93,7 +93,7 @@ struct nxflat_hdr_s * and bss regions (bss_end - data_start) as well as the size of the * stack. At run time, this region will also include program arguments * and environement variables. - * + * * The bss segment is data_end through bss_end. */ @@ -189,7 +189,7 @@ struct nxflat_reloc_s #define NXFLAT_RELOC_TYPE_NUM 2 /* Number of relocation types */ /**************************************************************************** - * NXFLAT Imported symbol type + * NXFLAT Imported symbol type * * The imported symbols are an array of the following type. The fields * in each element are stored in native machine order. diff --git a/nuttx/include/pthread.h b/nuttx/include/pthread.h index 586d1208e..78a8d939e 100644 --- a/nuttx/include/pthread.h +++ b/nuttx/include/pthread.h @@ -81,7 +81,7 @@ * PTHREAD_MUTEX_NORMAL: This type of mutex does not detect deadlock. A thread * attempting to relock this mutex without first unlocking it will deadlock. * Attempting to unlock a mutex locked by a different thread results in undefined - * behavior. Attempting to unlock an unlocked mutex results in undefined behavior. + * behavior. Attempting to unlock an unlocked mutex results in undefined behavior. * PTHREAD_MUTEX_ERRORCHECK * This type of mutex provides error checking. A thread attempting to relock this * mutex without first unlocking it will return with an error. A thread attempting @@ -94,7 +94,7 @@ * mutex require the same number of unlocks to release the mutex before another thread * can acquire the mutex. A thread attempting to unlock a mutex which another thread * has locked will return with an error. A thread attempting to unlock an unlocked - * mutex will return with an error. + * mutex will return with an error. * PTHREAD_MUTEX_DEFAULT * An implementation is allowed to map this mutex to one of the other mutex types. */ @@ -147,7 +147,7 @@ #define pthread_setname_np(thread, name) \ prctl((int)PR_SET_NAME, (char*)name, (int)thread) - + #define pthread_getname_np(thread, name) \ prctl((int)PR_GET_NAME, (char*)name, (int)thread) diff --git a/nuttx/include/stdlib.h b/nuttx/include/stdlib.h index 08d35e1c6..4ef0188be 100644 --- a/nuttx/include/stdlib.h +++ b/nuttx/include/stdlib.h @@ -66,7 +66,7 @@ #define MAX_RAND 32767 /* Integer expression whose value is the maximum number of bytes in a - * character specified by the current locale. + * character specified by the current locale. */ #define MB_CUR_MAX 1 diff --git a/nuttx/include/sys/mount.h b/nuttx/include/sys/mount.h index 4553618b4..f8c32df95 100644 --- a/nuttx/include/sys/mount.h +++ b/nuttx/include/sys/mount.h @@ -55,7 +55,7 @@ /**************************************************************************** * Public Function Prototypes ****************************************************************************/ - + #undef EXTERN #if defined(__cplusplus) #define EXTERN extern "C" diff --git a/nuttx/include/sys/prctl.h b/nuttx/include/sys/prctl.h index adabdf886..ed85e441e 100644 --- a/nuttx/include/sys/prctl.h +++ b/nuttx/include/sys/prctl.h @@ -67,7 +67,7 @@ #define PR_SET_NAME 1 #define PR_GET_NAME 2 - + /**************************************************************************** * Public Type Definitions ****************************************************************************/ @@ -75,7 +75,7 @@ /**************************************************************************** * Public Function Prototypes ****************************************************************************/ - + #undef EXTERN #if defined(__cplusplus) #define EXTERN extern "C" @@ -101,8 +101,8 @@ extern "C" * EINVAL The value of 'option' is not recognized. * EFAULT optional arg1 is not a valid address. * ESRCH No task/thread can be found corresponding to that specified - * by optional arg1. - * + * by optional arg1. + * ****************************************************************************/ int prctl(int option, ...); diff --git a/nuttx/include/sys/sendfile.h b/nuttx/include/sys/sendfile.h index 831c7b3d5..58eacd5de 100644 --- a/nuttx/include/sys/sendfile.h +++ b/nuttx/include/sys/sendfile.h @@ -78,7 +78,7 @@ extern "C" { * to perform a copy. It serves a purpose in systems where there is * a penalty for copies to between user and kernal space, but really * nothing in NuttX but provide some Linux compatible (and adding - * another 'almost standard' interface). + * another 'almost standard' interface). * * NOTE: This interface is *not* specified in POSIX.1-2001, or other * standards. The implementation here is very similar to the Linux diff --git a/nuttx/include/sys/sockio.h b/nuttx/include/sys/sockio.h index abfc2f562..997eb901e 100644 --- a/nuttx/include/sys/sockio.h +++ b/nuttx/include/sys/sockio.h @@ -91,7 +91,7 @@ struct ip_msfilter #else -struct ip_msfilter +struct ip_msfilter { char imsf_name[IMSFNAMSIZ]; /* Network device name, e.g., "eth0" */ struct in_addr imsf_multiaddr; /* IP multicast address of group */ diff --git a/nuttx/include/termios.h b/nuttx/include/termios.h index 95b20a3d3..c862f9db7 100644 --- a/nuttx/include/termios.h +++ b/nuttx/include/termios.h @@ -249,7 +249,7 @@ extern "C" { /* The cfgetspeed() function is a non-POSIX function will extract the baud * from the termios structure to which the termiosp argument points. NuttX - * does not control input/output baud independently. Both must be the same. + * does not control input/output baud independently. Both must be the same. * The POSIX standard interfaces, cfigetispeed() and cfigetospeed() are * supported by simply defining them to be cfgetspeed(). */ @@ -260,7 +260,7 @@ EXTERN speed_t cfgetspeed(FAR const struct termios *termiosp); /* The cfsetspeed() function is a non-POSIX function that sets the baud * stored in the structure pointed to by termiosp to speed. NuttX does - * not control input/output baud independently. Both must be the same. + * not control input/output baud independently. Both must be the same. * The POSIX standard interfaces, cfigetispeed() and cfigetospeed() are * supported by simply defining them to be cfsetspeed(). */ diff --git a/nuttx/libc/README.txt b/nuttx/libc/README.txt index 8b1ef9941..3997b6b3c 100644 --- a/nuttx/libc/README.txt +++ b/nuttx/libc/README.txt @@ -70,7 +70,7 @@ Each type field has a format as follows: type name: For all simpler types - formal type | actual type: + formal type | actual type: For array types where the form of the formal (eg. int parm[2]) differs from the type of actual passed parameter (eg. int*). This is necessary because you cannot do simple casts to array types. diff --git a/nuttx/libc/dirent/lib_readdirr.c b/nuttx/libc/dirent/lib_readdirr.c index 93c99ac28..ffbe91056 100644 --- a/nuttx/libc/dirent/lib_readdirr.c +++ b/nuttx/libc/dirent/lib_readdirr.c @@ -69,7 +69,7 @@ * enough for a dirent with an array of char d_name * members containing at least {NAME_MAX}+1 elements. * result -- Upon successful return, the pointer returned - * at *result shall have the same value as the + * at *result shall have the same value as the * argument entry. Upon reaching the end of the directory * stream, this pointer shall have the value NULL. * diff --git a/nuttx/libc/fixedmath/lib_b16atan2.c b/nuttx/libc/fixedmath/lib_b16atan2.c index 443ab7be3..f0a00f8df 100644 --- a/nuttx/libc/fixedmath/lib_b16atan2.c +++ b/nuttx/libc/fixedmath/lib_b16atan2.c @@ -91,7 +91,7 @@ b16_t b16atan2(b16_t y, b16_t x) t2 = ub16inv(t0); t2 = b16mulb16(t1, t2); - t3 = b16mulb16(t2, t2); + t3 = b16mulb16(t2, t2); t0 = - B16_C1; t0 = b16mulb16(t0, t3) + B16_C2; t0 = b16mulb16(t0, t3) - B16_C3; diff --git a/nuttx/libc/math/lib_acos.c b/nuttx/libc/math/lib_acos.c index 147003237..c1da957f9 100644 --- a/nuttx/libc/math/lib_acos.c +++ b/nuttx/libc/math/lib_acos.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_acosf.c b/nuttx/libc/math/lib_acosf.c index 447b2767f..e75325dc0 100644 --- a/nuttx/libc/math/lib_acosf.c +++ b/nuttx/libc/math/lib_acosf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_acosl.c b/nuttx/libc/math/lib_acosl.c index a0f226238..588d7ed58 100644 --- a/nuttx/libc/math/lib_acosl.c +++ b/nuttx/libc/math/lib_acosl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_asin.c b/nuttx/libc/math/lib_asin.c index d9941a7e5..9518fb69c 100644 --- a/nuttx/libc/math/lib_asin.c +++ b/nuttx/libc/math/lib_asin.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_asinf.c b/nuttx/libc/math/lib_asinf.c index 57e518acb..1da555ab8 100644 --- a/nuttx/libc/math/lib_asinf.c +++ b/nuttx/libc/math/lib_asinf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_asinl.c b/nuttx/libc/math/lib_asinl.c index 19f284e53..f51e7deb3 100644 --- a/nuttx/libc/math/lib_asinl.c +++ b/nuttx/libc/math/lib_asinl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atan.c b/nuttx/libc/math/lib_atan.c index 44d68ece2..daf5b2603 100644 --- a/nuttx/libc/math/lib_atan.c +++ b/nuttx/libc/math/lib_atan.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atan2.c b/nuttx/libc/math/lib_atan2.c index 6d7d2ad48..f78484d39 100644 --- a/nuttx/libc/math/lib_atan2.c +++ b/nuttx/libc/math/lib_atan2.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atan2f.c b/nuttx/libc/math/lib_atan2f.c index 7ff9af130..f3a92ff53 100644 --- a/nuttx/libc/math/lib_atan2f.c +++ b/nuttx/libc/math/lib_atan2f.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atan2l.c b/nuttx/libc/math/lib_atan2l.c index 48bfd06f3..e2a576e58 100644 --- a/nuttx/libc/math/lib_atan2l.c +++ b/nuttx/libc/math/lib_atan2l.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atanf.c b/nuttx/libc/math/lib_atanf.c index a84605787..2f3638d17 100644 --- a/nuttx/libc/math/lib_atanf.c +++ b/nuttx/libc/math/lib_atanf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_atanl.c b/nuttx/libc/math/lib_atanl.c index 752d49307..48dcb03e2 100644 --- a/nuttx/libc/math/lib_atanl.c +++ b/nuttx/libc/math/lib_atanl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ceil.c b/nuttx/libc/math/lib_ceil.c index 3c6678dc1..73e4b8ee4 100644 --- a/nuttx/libc/math/lib_ceil.c +++ b/nuttx/libc/math/lib_ceil.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ceilf.c b/nuttx/libc/math/lib_ceilf.c index afbe2cf13..850e762f2 100644 --- a/nuttx/libc/math/lib_ceilf.c +++ b/nuttx/libc/math/lib_ceilf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ceill.c b/nuttx/libc/math/lib_ceill.c index 757016b53..3e15ee302 100644 --- a/nuttx/libc/math/lib_ceill.c +++ b/nuttx/libc/math/lib_ceill.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_cos.c b/nuttx/libc/math/lib_cos.c index 4b4e1a20b..cfa0a9a4b 100644 --- a/nuttx/libc/math/lib_cos.c +++ b/nuttx/libc/math/lib_cos.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_cosf.c b/nuttx/libc/math/lib_cosf.c index d9ac951f6..2e23419a1 100644 --- a/nuttx/libc/math/lib_cosf.c +++ b/nuttx/libc/math/lib_cosf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_cosh.c b/nuttx/libc/math/lib_cosh.c index 3246ea5f9..40d9ce0c1 100644 --- a/nuttx/libc/math/lib_cosh.c +++ b/nuttx/libc/math/lib_cosh.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_coshf.c b/nuttx/libc/math/lib_coshf.c index f0c28ab2e..9a3f72853 100644 --- a/nuttx/libc/math/lib_coshf.c +++ b/nuttx/libc/math/lib_coshf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_coshl.c b/nuttx/libc/math/lib_coshl.c index 957ec61a7..b7e58ec7e 100644 --- a/nuttx/libc/math/lib_coshl.c +++ b/nuttx/libc/math/lib_coshl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_cosl.c b/nuttx/libc/math/lib_cosl.c index 972d4aa9d..f328b994a 100644 --- a/nuttx/libc/math/lib_cosl.c +++ b/nuttx/libc/math/lib_cosl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_exp.c b/nuttx/libc/math/lib_exp.c index 62494251d..c528d375b 100644 --- a/nuttx/libc/math/lib_exp.c +++ b/nuttx/libc/math/lib_exp.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_expf.c b/nuttx/libc/math/lib_expf.c index 3e43c54a6..8e223049c 100644 --- a/nuttx/libc/math/lib_expf.c +++ b/nuttx/libc/math/lib_expf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_expl.c b/nuttx/libc/math/lib_expl.c index 231faa35f..a5c1d6f53 100644 --- a/nuttx/libc/math/lib_expl.c +++ b/nuttx/libc/math/lib_expl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fabs.c b/nuttx/libc/math/lib_fabs.c index 774755087..635be443f 100644 --- a/nuttx/libc/math/lib_fabs.c +++ b/nuttx/libc/math/lib_fabs.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fabsf.c b/nuttx/libc/math/lib_fabsf.c index 4c8ebae62..629846af3 100644 --- a/nuttx/libc/math/lib_fabsf.c +++ b/nuttx/libc/math/lib_fabsf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fabsl.c b/nuttx/libc/math/lib_fabsl.c index 96ac7d5db..0ce73a674 100644 --- a/nuttx/libc/math/lib_fabsl.c +++ b/nuttx/libc/math/lib_fabsl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_floor.c b/nuttx/libc/math/lib_floor.c index 3330607ce..ba6278239 100644 --- a/nuttx/libc/math/lib_floor.c +++ b/nuttx/libc/math/lib_floor.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_floorf.c b/nuttx/libc/math/lib_floorf.c index 81483d4c9..63a2fa722 100644 --- a/nuttx/libc/math/lib_floorf.c +++ b/nuttx/libc/math/lib_floorf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_floorl.c b/nuttx/libc/math/lib_floorl.c index 0d9ec43b4..28c7e0029 100644 --- a/nuttx/libc/math/lib_floorl.c +++ b/nuttx/libc/math/lib_floorl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fmod.c b/nuttx/libc/math/lib_fmod.c index c66210cde..1bdf3134d 100644 --- a/nuttx/libc/math/lib_fmod.c +++ b/nuttx/libc/math/lib_fmod.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fmodf.c b/nuttx/libc/math/lib_fmodf.c index d70bb791c..ee1b9070c 100644 --- a/nuttx/libc/math/lib_fmodf.c +++ b/nuttx/libc/math/lib_fmodf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_fmodl.c b/nuttx/libc/math/lib_fmodl.c index 1299bf6e8..c5b14e859 100644 --- a/nuttx/libc/math/lib_fmodl.c +++ b/nuttx/libc/math/lib_fmodl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_frexp.c b/nuttx/libc/math/lib_frexp.c index b9576dfd4..3319a6bf3 100644 --- a/nuttx/libc/math/lib_frexp.c +++ b/nuttx/libc/math/lib_frexp.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_frexpf.c b/nuttx/libc/math/lib_frexpf.c index d93ffb173..9cab980fb 100644 --- a/nuttx/libc/math/lib_frexpf.c +++ b/nuttx/libc/math/lib_frexpf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_frexpl.c b/nuttx/libc/math/lib_frexpl.c index 90993b137..627f0e0b5 100644 --- a/nuttx/libc/math/lib_frexpl.c +++ b/nuttx/libc/math/lib_frexpl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ldexp.c b/nuttx/libc/math/lib_ldexp.c index 9b74d53d7..1d6eded8a 100644 --- a/nuttx/libc/math/lib_ldexp.c +++ b/nuttx/libc/math/lib_ldexp.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ldexpf.c b/nuttx/libc/math/lib_ldexpf.c index f3aaf555b..e1500d77e 100644 --- a/nuttx/libc/math/lib_ldexpf.c +++ b/nuttx/libc/math/lib_ldexpf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_ldexpl.c b/nuttx/libc/math/lib_ldexpl.c index 29764aaba..cf12370e0 100644 --- a/nuttx/libc/math/lib_ldexpl.c +++ b/nuttx/libc/math/lib_ldexpl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_libexpi.c b/nuttx/libc/math/lib_libexpi.c index 33ba537b1..9abc30274 100644 --- a/nuttx/libc/math/lib_libexpi.c +++ b/nuttx/libc/math/lib_libexpi.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_libsqrtapprox.c b/nuttx/libc/math/lib_libsqrtapprox.c index b6a9b0d54..a153f6ed9 100644 --- a/nuttx/libc/math/lib_libsqrtapprox.c +++ b/nuttx/libc/math/lib_libsqrtapprox.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log.c b/nuttx/libc/math/lib_log.c index 7156f6b41..764726bae 100644 --- a/nuttx/libc/math/lib_log.c +++ b/nuttx/libc/math/lib_log.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log10.c b/nuttx/libc/math/lib_log10.c index 9daa91492..321b53f20 100644 --- a/nuttx/libc/math/lib_log10.c +++ b/nuttx/libc/math/lib_log10.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log10f.c b/nuttx/libc/math/lib_log10f.c index 778daedd5..3f4ba1328 100644 --- a/nuttx/libc/math/lib_log10f.c +++ b/nuttx/libc/math/lib_log10f.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log10l.c b/nuttx/libc/math/lib_log10l.c index efbeb721b..713e007de 100644 --- a/nuttx/libc/math/lib_log10l.c +++ b/nuttx/libc/math/lib_log10l.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log2.c b/nuttx/libc/math/lib_log2.c index 4da39acdc..e929b70cc 100644 --- a/nuttx/libc/math/lib_log2.c +++ b/nuttx/libc/math/lib_log2.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log2f.c b/nuttx/libc/math/lib_log2f.c index f514e5a9e..58d291f6c 100644 --- a/nuttx/libc/math/lib_log2f.c +++ b/nuttx/libc/math/lib_log2f.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_log2l.c b/nuttx/libc/math/lib_log2l.c index 21e80a930..e130fe6c8 100644 --- a/nuttx/libc/math/lib_log2l.c +++ b/nuttx/libc/math/lib_log2l.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_logf.c b/nuttx/libc/math/lib_logf.c index 3815fef84..cc4f850d0 100644 --- a/nuttx/libc/math/lib_logf.c +++ b/nuttx/libc/math/lib_logf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_logl.c b/nuttx/libc/math/lib_logl.c index 612816011..9426a506a 100644 --- a/nuttx/libc/math/lib_logl.c +++ b/nuttx/libc/math/lib_logl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_modf.c b/nuttx/libc/math/lib_modf.c index f3f25f6fb..eb56e9c0e 100644 --- a/nuttx/libc/math/lib_modf.c +++ b/nuttx/libc/math/lib_modf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_modff.c b/nuttx/libc/math/lib_modff.c index 28d3a3ae0..81b799253 100644 --- a/nuttx/libc/math/lib_modff.c +++ b/nuttx/libc/math/lib_modff.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_modfl.c b/nuttx/libc/math/lib_modfl.c index 77bba0e0c..f4c30ae05 100644 --- a/nuttx/libc/math/lib_modfl.c +++ b/nuttx/libc/math/lib_modfl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_pow.c b/nuttx/libc/math/lib_pow.c index a19d491fa..f8fe18b5e 100644 --- a/nuttx/libc/math/lib_pow.c +++ b/nuttx/libc/math/lib_pow.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_powf.c b/nuttx/libc/math/lib_powf.c index 570904898..1797324d4 100644 --- a/nuttx/libc/math/lib_powf.c +++ b/nuttx/libc/math/lib_powf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_powl.c b/nuttx/libc/math/lib_powl.c index 81438217c..7d943c58a 100644 --- a/nuttx/libc/math/lib_powl.c +++ b/nuttx/libc/math/lib_powl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_round.c b/nuttx/libc/math/lib_round.c index 6191cee5b..1cf8ba43b 100644 --- a/nuttx/libc/math/lib_round.c +++ b/nuttx/libc/math/lib_round.c @@ -29,7 +29,7 @@ double round(double x) { x -= 1.0; } - + if (x >= 0.0 && f >= 0.5) { x += 1.0; diff --git a/nuttx/libc/math/lib_roundf.c b/nuttx/libc/math/lib_roundf.c index 145cf3df6..b4c0050c0 100644 --- a/nuttx/libc/math/lib_roundf.c +++ b/nuttx/libc/math/lib_roundf.c @@ -28,7 +28,7 @@ float roundf(float x) { x -= 1.0f; } - + if (x >= 0.0f && f >= 0.5f) { x += 1.0f; diff --git a/nuttx/libc/math/lib_roundl.c b/nuttx/libc/math/lib_roundl.c index b2ddba670..b75bb61f5 100644 --- a/nuttx/libc/math/lib_roundl.c +++ b/nuttx/libc/math/lib_roundl.c @@ -29,7 +29,7 @@ long double roundl(long double x) { x -= 1.0; } - + if (x >= 0.0 && f >= 0.5) { x += 1.0; diff --git a/nuttx/libc/math/lib_sin.c b/nuttx/libc/math/lib_sin.c index e005d98cb..c4950426b 100644 --- a/nuttx/libc/math/lib_sin.c +++ b/nuttx/libc/math/lib_sin.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sinf.c b/nuttx/libc/math/lib_sinf.c index 9e493d8ef..680debcf2 100644 --- a/nuttx/libc/math/lib_sinf.c +++ b/nuttx/libc/math/lib_sinf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sinh.c b/nuttx/libc/math/lib_sinh.c index 0c3e2d11d..da79e7cfd 100644 --- a/nuttx/libc/math/lib_sinh.c +++ b/nuttx/libc/math/lib_sinh.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sinhf.c b/nuttx/libc/math/lib_sinhf.c index e9d198440..b7fc5af13 100644 --- a/nuttx/libc/math/lib_sinhf.c +++ b/nuttx/libc/math/lib_sinhf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sinhl.c b/nuttx/libc/math/lib_sinhl.c index a1bcad81e..b6ee9764e 100644 --- a/nuttx/libc/math/lib_sinhl.c +++ b/nuttx/libc/math/lib_sinhl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sinl.c b/nuttx/libc/math/lib_sinl.c index 6ed539a39..7c83496e7 100644 --- a/nuttx/libc/math/lib_sinl.c +++ b/nuttx/libc/math/lib_sinl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sqrt.c b/nuttx/libc/math/lib_sqrt.c index dbab598bc..9190ac42b 100644 --- a/nuttx/libc/math/lib_sqrt.c +++ b/nuttx/libc/math/lib_sqrt.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sqrtf.c b/nuttx/libc/math/lib_sqrtf.c index e70a1de72..a2089c13f 100644 --- a/nuttx/libc/math/lib_sqrtf.c +++ b/nuttx/libc/math/lib_sqrtf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_sqrtl.c b/nuttx/libc/math/lib_sqrtl.c index 181adf0c8..010d36489 100644 --- a/nuttx/libc/math/lib_sqrtl.c +++ b/nuttx/libc/math/lib_sqrtl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009-2011 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tan.c b/nuttx/libc/math/lib_tan.c index 4c091c09b..02f4d6b8e 100644 --- a/nuttx/libc/math/lib_tan.c +++ b/nuttx/libc/math/lib_tan.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tanf.c b/nuttx/libc/math/lib_tanf.c index 0c9110a0b..4e0e502d5 100644 --- a/nuttx/libc/math/lib_tanf.c +++ b/nuttx/libc/math/lib_tanf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tanh.c b/nuttx/libc/math/lib_tanh.c index 3b9ea0f41..6bed476e2 100644 --- a/nuttx/libc/math/lib_tanh.c +++ b/nuttx/libc/math/lib_tanh.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tanhf.c b/nuttx/libc/math/lib_tanhf.c index 43d418204..15a57bd8b 100644 --- a/nuttx/libc/math/lib_tanhf.c +++ b/nuttx/libc/math/lib_tanhf.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tanhl.c b/nuttx/libc/math/lib_tanhl.c index 5aafd1e7b..c74ec27ca 100644 --- a/nuttx/libc/math/lib_tanhl.c +++ b/nuttx/libc/math/lib_tanhl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/math/lib_tanl.c b/nuttx/libc/math/lib_tanl.c index e77abe0f1..bc32b9b49 100644 --- a/nuttx/libc/math/lib_tanl.c +++ b/nuttx/libc/math/lib_tanl.c @@ -10,11 +10,11 @@ * a compatibile, MIT-style license: * * Copyright (C) 2009, 2010 Nick Johnson - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/nuttx/libc/misc/lib_crc32.c b/nuttx/libc/misc/lib_crc32.c index ae73ba3d7..0c111a882 100644 --- a/nuttx/libc/misc/lib_crc32.c +++ b/nuttx/libc/misc/lib_crc32.c @@ -50,7 +50,7 @@ /************************************************************************************************ * Private Data ************************************************************************************************/ - + static const uint32_t crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, diff --git a/nuttx/libc/misc/lib_kbddecode.c b/nuttx/libc/misc/lib_kbddecode.c index 7bbf64062..7ffc71b61 100644 --- a/nuttx/libc/misc/lib_kbddecode.c +++ b/nuttx/libc/misc/lib_kbddecode.c @@ -74,7 +74,7 @@ * Name: kbd_reget * * Description: - * We have unused characters from the last, unsuccessful decode attempt. + * We have unused characters from the last, unsuccessful decode attempt. * Return one of these instead of the new character from the stream. * * Input Parameters: diff --git a/nuttx/libc/misc/lib_kbdencode.c b/nuttx/libc/misc/lib_kbdencode.c index 80138ca80..dfd7bb518 100644 --- a/nuttx/libc/misc/lib_kbdencode.c +++ b/nuttx/libc/misc/lib_kbdencode.c @@ -99,7 +99,7 @@ static void kbd_encode(uint8_t keycode, FAR struct lib_outstream_s *stream, void kbd_release(uint8_t ch, FAR struct lib_outstream_s *stream) { - kbd_encode(ch, stream, ('a' + KBD_RELEASE)); + kbd_encode(ch, stream, ('a' + KBD_RELEASE)); } /**************************************************************************** @@ -123,7 +123,7 @@ void kbd_specpress(enum kbd_keycode_e keycode, FAR struct lib_outstream_s *stream) { DEBUGASSERT(stream && keycode >= KEYCODE_FWDDEL && keycode <= LAST_KEYCODE); - kbd_encode((uint8_t)keycode, stream, ('a' + KBD_SPECPRESS)); + kbd_encode((uint8_t)keycode, stream, ('a' + KBD_SPECPRESS)); } /**************************************************************************** @@ -147,5 +147,5 @@ void kbd_specrel(enum kbd_keycode_e keycode, FAR struct lib_outstream_s *stream) { DEBUGASSERT(stream && keycode >= KEYCODE_FWDDEL && keycode <= LAST_KEYCODE); - kbd_encode((uint8_t)keycode, stream, ('a' + KBD_SPECREL)); + kbd_encode((uint8_t)keycode, stream, ('a' + KBD_SPECREL)); } diff --git a/nuttx/libc/misc/lib_sendfile.c b/nuttx/libc/misc/lib_sendfile.c index 181fd9395..56651674f 100644 --- a/nuttx/libc/misc/lib_sendfile.c +++ b/nuttx/libc/misc/lib_sendfile.c @@ -78,7 +78,7 @@ * to perform a copy. It serves a purpose in systems where there is * a penalty for copies to between user and kernal space, but really * nothing in NuttX but provide some Linux compatible (and adding - * another 'almost standard' interface). + * another 'almost standard' interface). * * NOTE: This interface is *not* specified in POSIX.1-2001, or other * standards. The implementation here is very similar to the Linux diff --git a/nuttx/libc/net/lib_inetaddr.c b/nuttx/libc/net/lib_inetaddr.c index 46c6c548d..c05b59697 100644 --- a/nuttx/libc/net/lib_inetaddr.c +++ b/nuttx/libc/net/lib_inetaddr.c @@ -55,7 +55,7 @@ * The inet_addr() function converts the string pointed to by cp, in the * standard IPv4 dotted decimal notation, to an integer value suitable for * use as an Internet address. - + ****************************************************************************/ in_addr_t inet_addr(FAR const char *cp) diff --git a/nuttx/libc/net/lib_inetntop.c b/nuttx/libc/net/lib_inetntop.c index 25c32c48c..ffa7ba26d 100644 --- a/nuttx/libc/net/lib_inetntop.c +++ b/nuttx/libc/net/lib_inetntop.c @@ -116,7 +116,7 @@ FAR const char *inet_ntop(int af, FAR const void *src, FAR char *dst, socklen_t int count; int maxentry; int maxcount; - + DEBUGASSERT(src && dst); if (af != AF_INET6) diff --git a/nuttx/libc/pthread/pthread_attrinit.c b/nuttx/libc/pthread/pthread_attrinit.c index 427a582b9..a2d6bf938 100644 --- a/nuttx/libc/pthread/pthread_attrinit.c +++ b/nuttx/libc/pthread/pthread_attrinit.c @@ -61,7 +61,7 @@ /* Default pthread attributes (see included/nuttx/pthread.h). When configured * to build separate kernel- and user-address spaces, this global is * duplicated in each address spaced. This copy can only be shared within - * the user address space. + * the user address space. */ #if defined(CONFIG_NUTTX_KERNEL) && !defined(__KERNEL__) diff --git a/nuttx/libc/pthread/pthread_condattrinit.c b/nuttx/libc/pthread/pthread_condattrinit.c index 511376f2e..1cc0a93e7 100644 --- a/nuttx/libc/pthread/pthread_condattrinit.c +++ b/nuttx/libc/pthread/pthread_condattrinit.c @@ -73,7 +73,7 @@ int pthread_condattr_init(FAR pthread_condattr_t *attr) { ret = EINVAL; } - else + else { *attr = 0; } diff --git a/nuttx/libc/queue/dq_rem.c b/nuttx/libc/queue/dq_rem.c index 9d0e84cbe..2c6176ae1 100644 --- a/nuttx/libc/queue/dq_rem.c +++ b/nuttx/libc/queue/dq_rem.c @@ -60,7 +60,7 @@ void dq_rem(FAR dq_entry_t *node, dq_queue_t *queue) { queue->head = next; } - else + else { prev->flink = next; } @@ -69,7 +69,7 @@ void dq_rem(FAR dq_entry_t *node, dq_queue_t *queue) { queue->tail = prev; } - else + else { next->blink = prev; } diff --git a/nuttx/libc/spawn/lib_psfa_addopen.c b/nuttx/libc/spawn/lib_psfa_addopen.c index d9f5b849f..4be80ff1c 100644 --- a/nuttx/libc/spawn/lib_psfa_addopen.c +++ b/nuttx/libc/spawn/lib_psfa_addopen.c @@ -112,7 +112,7 @@ int posix_spawn_file_actions_addopen(FAR posix_spawn_file_actions_t *file_action entry->oflags = oflags; entry->mode = mode; strncpy(entry->path, path, len+1); - + /* And add it to the file action list */ add_file_action(file_actions, (FAR struct spawn_general_file_action_s *)entry); diff --git a/nuttx/libc/spawn/lib_psfa_dump.c b/nuttx/libc/spawn/lib_psfa_dump.c index 49a0f97a5..45ca67107 100644 --- a/nuttx/libc/spawn/lib_psfa_dump.c +++ b/nuttx/libc/spawn/lib_psfa_dump.c @@ -56,7 +56,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: posix_spawn_file_actions_dump + * Name: posix_spawn_file_actions_dump * * Description: * Show the entryent file actions. @@ -81,7 +81,7 @@ void posix_spawn_file_actions_dump(FAR posix_spawn_file_actions_t *file_actions) dbg(" NONE\n"); return; } - + /* Destroy each file action, one at a time */ for (entry = (FAR struct spawn_general_file_action_s *)*file_actions; diff --git a/nuttx/libc/stdio/lib_avsprintf.c b/nuttx/libc/stdio/lib_avsprintf.c index 15a97f188..29ea969d4 100644 --- a/nuttx/libc/stdio/lib_avsprintf.c +++ b/nuttx/libc/stdio/lib_avsprintf.c @@ -106,7 +106,7 @@ int avsprintf(FAR char **ptr, const char *fmt, va_list ap) /* First, use a nullstream to get the size of the buffer. The number * of bytes returned may or may not include the null terminator. */ - + lib_nulloutstream(&nulloutstream); nbytes = lib_vsprintf((FAR struct lib_outstream_s *)&nulloutstream, fmt, ap); diff --git a/nuttx/libc/stdio/lib_fgetpos.c b/nuttx/libc/stdio/lib_fgetpos.c index 7663ca2db..0d1f53e96 100644 --- a/nuttx/libc/stdio/lib_fgetpos.c +++ b/nuttx/libc/stdio/lib_fgetpos.c @@ -96,7 +96,7 @@ * stream. * * Returned Value: - * Zero on succes; -1 on failure with errno set appropriately. + * Zero on succes; -1 on failure with errno set appropriately. * ****************************************************************************/ diff --git a/nuttx/libc/stdio/lib_fsetpos.c b/nuttx/libc/stdio/lib_fsetpos.c index 3d79a1877..31964337e 100644 --- a/nuttx/libc/stdio/lib_fsetpos.c +++ b/nuttx/libc/stdio/lib_fsetpos.c @@ -98,7 +98,7 @@ * only way to portably reposition a stream. * * Returned Value: - * Zero on succes; -1 on failure with errno set appropriately. + * Zero on succes; -1 on failure with errno set appropriately. * ****************************************************************************/ diff --git a/nuttx/libc/stdio/lib_libvsprintf.c b/nuttx/libc/stdio/lib_libvsprintf.c index 325df47b8..3d96e8806 100644 --- a/nuttx/libc/stdio/lib_libvsprintf.c +++ b/nuttx/libc/stdio/lib_libvsprintf.c @@ -125,7 +125,7 @@ # define FMT_NEXT src++ /* Advance to the next character */ # define FMT_PREV src-- /* Backup to the previous character */ #endif - + /**************************************************************************** * Private Type Declarations ****************************************************************************/ @@ -225,7 +225,7 @@ static const char g_nullstring[] = "(null)"; ****************************************************************************/ /* Include floating point functions */ - + #ifdef CONFIG_LIBC_FLOATINGPOINT # include "stdio/lib_libdtoa.c" #endif diff --git a/nuttx/libc/stdio/lib_perror.c b/nuttx/libc/stdio/lib_perror.c index 16589e428..e551db0c3 100644 --- a/nuttx/libc/stdio/lib_perror.c +++ b/nuttx/libc/stdio/lib_perror.c @@ -51,7 +51,7 @@ * be defined, however, to provide perror output that is serialized with * other stdout messages. */ - + #ifdef CONFIG_LIBC_PERROR_STDOUT # define PERROR_STREAM stdout #else diff --git a/nuttx/libc/stdio/lib_stdinstream.c b/nuttx/libc/stdio/lib_stdinstream.c index 261b26634..cf9654465 100644 --- a/nuttx/libc/stdio/lib_stdinstream.c +++ b/nuttx/libc/stdio/lib_stdinstream.c @@ -63,7 +63,7 @@ static int stdinstream_getc(FAR struct lib_instream_s *this) { this->nget++; } - + return ret; } diff --git a/nuttx/libc/stdlib/lib_checkbase.c b/nuttx/libc/stdlib/lib_checkbase.c index 4583caf0f..83199bcfa 100644 --- a/nuttx/libc/stdlib/lib_checkbase.c +++ b/nuttx/libc/stdlib/lib_checkbase.c @@ -64,7 +64,7 @@ * *ptr points to the first, non-whitespace character in the string. * ****************************************************************************/ - + int lib_checkbase(int base, FAR const char **pptr) { const char *ptr = *pptr; @@ -88,7 +88,7 @@ int lib_checkbase(int base, FAR const char **pptr) /* Check for hexadecimal */ - if ((*ptr == 'X' || *ptr == 'x') && + if ((*ptr == 'X' || *ptr == 'x') && lib_isbasedigit(ptr[1], 16, NULL)) { base = 16; diff --git a/nuttx/libc/stdlib/lib_itoa.c b/nuttx/libc/stdlib/lib_itoa.c index a1afeaaa8..553591c09 100644 --- a/nuttx/libc/stdlib/lib_itoa.c +++ b/nuttx/libc/stdlib/lib_itoa.c @@ -65,7 +65,7 @@ char *itoa(int val, char *str, int base) *buf++ = digits[digit]; } while (intval > 0); - + if (val < 0) { *buf++ = '-'; diff --git a/nuttx/libc/stdlib/lib_strtol.c b/nuttx/libc/stdlib/lib_strtol.c index 2ed17b8dd..dd17691a0 100644 --- a/nuttx/libc/stdlib/lib_strtol.c +++ b/nuttx/libc/stdlib/lib_strtol.c @@ -63,7 +63,7 @@ * Warning: does not check for integer overflow! * ****************************************************************************/ - + long strtol(const char *nptr, char **endptr, int base) { unsigned long accum = 0; diff --git a/nuttx/libc/stdlib/lib_strtoll.c b/nuttx/libc/stdlib/lib_strtoll.c index 77ac82000..af4afb90d 100644 --- a/nuttx/libc/stdlib/lib_strtoll.c +++ b/nuttx/libc/stdlib/lib_strtoll.c @@ -65,7 +65,7 @@ * Warning: does not check for integer overflow! * ****************************************************************************/ - + long long strtoll(const char *nptr, char **endptr, int base) { unsigned long long accum = 0; diff --git a/nuttx/libc/stdlib/lib_strtoul.c b/nuttx/libc/stdlib/lib_strtoul.c index 38c8209ba..c9b0915e6 100644 --- a/nuttx/libc/stdlib/lib_strtoul.c +++ b/nuttx/libc/stdlib/lib_strtoul.c @@ -62,7 +62,7 @@ * Warning: does not check for integer overflow! * ****************************************************************************/ - + unsigned long strtoul(const char *nptr, char **endptr, int base) { unsigned long accum = 0; diff --git a/nuttx/libc/stdlib/lib_strtoull.c b/nuttx/libc/stdlib/lib_strtoull.c index 0a50a90be..7e961d733 100644 --- a/nuttx/libc/stdlib/lib_strtoull.c +++ b/nuttx/libc/stdlib/lib_strtoull.c @@ -63,7 +63,7 @@ * must be between 2 and 36 inclusive, or be the special value 0. * ****************************************************************************/ - + unsigned long long strtoull(const char *nptr, char **endptr, int base) { unsigned long long accum = 0; diff --git a/nuttx/libc/string/lib_strpbrk.c b/nuttx/libc/string/lib_strpbrk.c index ef9b0f3e9..3f19dec6e 100644 --- a/nuttx/libc/string/lib_strpbrk.c +++ b/nuttx/libc/string/lib_strpbrk.c @@ -55,7 +55,7 @@ char *strpbrk(const char *str, const char *charset) return NULL; } #endif - + /* Check each character in the string */ while (*str) diff --git a/nuttx/libc/string/lib_strtok.c b/nuttx/libc/string/lib_strtok.c index 85d6597d7..937326555 100644 --- a/nuttx/libc/string/lib_strtok.c +++ b/nuttx/libc/string/lib_strtok.c @@ -56,7 +56,7 @@ static char *g_saveptr = NULL; * The strtok() function parses a string into a * sequence of tokens. On the first call to strtok() the * string to be parsed should be specified in 'str'. In - * each subsequent call that should parse the same string, + * each subsequent call that should parse the same string, * 'str' should be NULL. * * The 'delim' argument specifies a set of characters that diff --git a/nuttx/libc/string/lib_strtokr.c b/nuttx/libc/string/lib_strtokr.c index c7845be64..22579f91e 100644 --- a/nuttx/libc/string/lib_strtokr.c +++ b/nuttx/libc/string/lib_strtokr.c @@ -64,7 +64,7 @@ * that parse the same string. * * On the first call to strtok_r(), 'str' should point to the - * string to be parsed, and the value of 'saveptr' is + * string to be parsed, and the value of 'saveptr' is * ignored. In subsequent calls, 'str' should be NULL, and * saveptr should be unchanged since the previous call. * diff --git a/nuttx/libc/string/lib_vikmemcpy.c b/nuttx/libc/string/lib_vikmemcpy.c index 28bf4a4ce..264b2f251 100644 --- a/nuttx/libc/string/lib_vikmemcpy.c +++ b/nuttx/libc/string/lib_vikmemcpy.c @@ -11,27 +11,27 @@ * - Use of types defined in stdint.h * - Integration with the NuttX configuration system * - Other cosmetic changes for consistency with NuttX coding standards - * + * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any * damages arising from the use of this software. * Permission is granted to anyone to use this software for any * purpose, including commercial applications, and to alter it and * redistribute it freely, subject to the following restrictions: - * + * * 1. The origin of this software must not be misrepresented; you * must not claim that you wrote the original software. If you * use this software in a product, an acknowledgment in the * use this software in a product, an acknowledgment in the * product documentation would be appreciated but is not * required. - * + * * 2. Altered source versions must be plainly marked as such, and * must not be misrepresented as being the original software. - * + * * 3. This notice may not be removed or altered from any source * distribution. - * + * * Description: Implementation of the standard library function memcpy. * This implementation of memcpy() is ANSI-C89 compatible. * @@ -310,7 +310,7 @@ typedef uint32_t UIntN; * *******************************************************************/ -void *memcpy(void *dest, const void *src, size_t count) +void *memcpy(void *dest, const void *src, size_t count) { uint8_t *dst8 = (uint8_t*)dest; uint8_t *src8 = (uint8_t*)src; diff --git a/nuttx/libc/termios/lib_cfgetspeed.c b/nuttx/libc/termios/lib_cfgetspeed.c index da10daac1..1cd5ee96d 100644 --- a/nuttx/libc/termios/lib_cfgetspeed.c +++ b/nuttx/libc/termios/lib_cfgetspeed.c @@ -82,7 +82,7 @@ * termiosp - The termiosp argument is a pointer to a termios structure. * * Returned Value: - * Encoded baud value from the termios structure. + * Encoded baud value from the termios structure. * ****************************************************************************/ diff --git a/nuttx/libc/termios/lib_cfsetspeed.c b/nuttx/libc/termios/lib_cfsetspeed.c index a2a9475c4..bb1bde701 100644 --- a/nuttx/libc/termios/lib_cfsetspeed.c +++ b/nuttx/libc/termios/lib_cfsetspeed.c @@ -69,7 +69,7 @@ * stored in the structure pointed to by termiosp to speed. * * There is no effect on the baud set in the hardware until a subsequent - * successful call to tcsetattr() on the same termios structure. + * successful call to tcsetattr() on the same termios structure. * * NOTE 1: NuttX does not control input/output baud independently. Both * must be the same. The POSIX standard interfaces, cfisetispeed() and @@ -104,7 +104,7 @@ * * Returned Value: * Baud is not checked... OK is always returned (this is non-standard - * behavior). + * behavior). * ****************************************************************************/ diff --git a/nuttx/libc/termios/lib_tcgetattr.c b/nuttx/libc/termios/lib_tcgetattr.c index e8d311260..631bb6063 100644 --- a/nuttx/libc/termios/lib_tcgetattr.c +++ b/nuttx/libc/termios/lib_tcgetattr.c @@ -82,8 +82,8 @@ * Upon successful completion, 0 is returned. Otherwise, -1 is returned and * errno is set to indicate the error. The following errors may be reported: * - * - EBADF: The 'fd' argument is not a valid file descriptor. - * - ENOTTY: The file associated with 'fd' is not a terminal. + * - EBADF: The 'fd' argument is not a valid file descriptor. + * - ENOTTY: The file associated with 'fd' is not a terminal. * ****************************************************************************/ diff --git a/nuttx/libc/termios/lib_tcsetattr.c b/nuttx/libc/termios/lib_tcsetattr.c index 901f2a136..ec38ec845 100644 --- a/nuttx/libc/termios/lib_tcsetattr.c +++ b/nuttx/libc/termios/lib_tcsetattr.c @@ -103,12 +103,12 @@ * and errno is set to indicate the error. The following errors may be * reported: * - * - EBADF: The 'fd' argument is not a valid file descriptor. - * - EINTR: A signal interrupted tcsetattr(). + * - EBADF: The 'fd' argument is not a valid file descriptor. + * - EINTR: A signal interrupted tcsetattr(). * - EINVAL: The 'options' argument is not a supported value, or * an attempt was made to change an attribute represented in the - * termios structure to an unsupported value. - * - ENOTTY: The file associated with 'fd' is not a terminal. + * termios structure to an unsupported value. + * - ENOTTY: The file associated with 'fd' is not a terminal. * ****************************************************************************/ diff --git a/nuttx/libc/time/lib_calendar2utc.c b/nuttx/libc/time/lib_calendar2utc.c index 1b8c40a9e..847d31661 100644 --- a/nuttx/libc/time/lib_calendar2utc.c +++ b/nuttx/libc/time/lib_calendar2utc.c @@ -80,7 +80,7 @@ * UTC conversion routines. These conversions are based * on algorithms from p. 604 of Seidelman, P. K. 1992. * Explanatory Supplement to the Astronomical Almanac. - * University Science Books, Mill Valley. + * University Science Books, Mill Valley. * ****************************************************************************/ @@ -120,7 +120,7 @@ static time_t clock_julian2utc(int year, int month, int day) * Calendar/UTC conversion based on algorithms from p. 604 * of Seidelman, P. K. 1992. Explanatory Supplement to * the Astronomical Almanac. University Science Books, - * Mill Valley. + * Mill Valley. * ****************************************************************************/ diff --git a/nuttx/libc/time/lib_gmtimer.c b/nuttx/libc/time/lib_gmtimer.c index d98620527..b4d1452bb 100644 --- a/nuttx/libc/time/lib_gmtimer.c +++ b/nuttx/libc/time/lib_gmtimer.c @@ -97,7 +97,7 @@ static void clock_utc2julian(time_t jdn, int *year, int *month, int *day); * Calendar to UTC conversion routines. These conversions * are based on algorithms from p. 604 of Seidelman, P. K. * 1992. Explanatory Supplement to the Astronomical - * Almanac. University Science Books, Mill Valley. + * Almanac. University Science Books, Mill Valley. * ****************************************************************************/ diff --git a/nuttx/libc/time/lib_time.c b/nuttx/libc/time/lib_time.c index 673f6fdcd..6335d354f 100644 --- a/nuttx/libc/time/lib_time.c +++ b/nuttx/libc/time/lib_time.c @@ -51,7 +51,7 @@ /**************************************************************************** * Private Data ****************************************************************************/ - + /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/nuttx/libc/unistd/lib_getcwd.c b/nuttx/libc/unistd/lib_getcwd.c index 717ef2971..5820a7c04 100644 --- a/nuttx/libc/unistd/lib_getcwd.c +++ b/nuttx/libc/unistd/lib_getcwd.c @@ -89,7 +89,7 @@ * EACCES * Read or search permission was denied for a component of the pathname. * ENOMEM - * Insufficient storage space is available. + * Insufficient storage space is available. * ****************************************************************************/ diff --git a/nuttx/libc/wqueue/work_thread.c b/nuttx/libc/wqueue/work_thread.c index f9de89976..285f7183c 100644 --- a/nuttx/libc/wqueue/work_thread.c +++ b/nuttx/libc/wqueue/work_thread.c @@ -182,7 +182,7 @@ static void work_process(FAR struct wqueue_s *wqueue) next = remaining; } - + /* Then try the next in the list. */ work = (FAR struct work_s *)work->dq.flink; diff --git a/nuttx/libnx/nxfonts/nxfonts_convert.c b/nuttx/libnx/nxfonts/nxfonts_convert.c index 7f61f8cc8..a223c7f0a 100644 --- a/nuttx/libnx/nxfonts/nxfonts_convert.c +++ b/nuttx/libnx/nxfonts/nxfonts_convert.c @@ -234,7 +234,7 @@ int NXF_FUNCNAME(nxf_convert,NXFONTS_SUFFIX) } /* The entire glyph row has been rendered. Handle any fractional bytes at - * the end of the row + * the end of the row */ if (nbits > 0) diff --git a/nuttx/libnx/nxfonts/nxfonts_getfont.c b/nuttx/libnx/nxfonts/nxfonts_getfont.c index f0b65fd91..d914e2b08 100644 --- a/nuttx/libnx/nxfonts/nxfonts_getfont.c +++ b/nuttx/libnx/nxfonts/nxfonts_getfont.c @@ -150,7 +150,7 @@ static FAR const struct nx_fontpackage_s *g_fontpackages[] = #ifdef CONFIG_NXFONT_MONO5X8 &g_mono5x8_package, #endif - + /* SANS */ #ifdef CONFIG_NXFONT_SANS17X22 @@ -336,7 +336,7 @@ NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid) return (NXHANDLE)package; } - + /* No.. is it the default font? */ else if (package->id == NXFONT_DEFAULT) diff --git a/nuttx/libnx/nxfonts/nxfonts_mono5x8.h b/nuttx/libnx/nxfonts/nxfonts_mono5x8.h index e2fa23b39..9d0fc49db 100644 --- a/nuttx/libnx/nxfonts/nxfonts_mono5x8.h +++ b/nuttx/libnx/nxfonts/nxfonts_mono5x8.h @@ -3,7 +3,7 @@ * * Copyright (C) 2011-2012 NX Engineering, S.A., All rights reserved. * Author: Petteri Aimonen - * + * * Based on 5x8.pcf.gz from xfonts-base. The file is marked as * COPYRIGHT "Public domain font. Share and enjoy." * diff --git a/nuttx/libnx/nxfonts/nxfonts_sans17x22.h b/nuttx/libnx/nxfonts/nxfonts_sans17x22.h index 712cf4a13..992c21850 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans17x22.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans17x22.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 22 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans17x23b.h b/nuttx/libnx/nxfonts/nxfonts_sans17x23b.h index 709e7f9e5..1d7928849 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans17x23b.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans17x23b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 23 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans20x26.h b/nuttx/libnx/nxfonts/nxfonts_sans20x26.h index fa1b2f8a9..4fd32774f 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans20x26.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans20x26.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 26 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans20x27b.h b/nuttx/libnx/nxfonts/nxfonts_sans20x27b.h index b904b29c1..cbc03b278 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans20x27b.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans20x27b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 27 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans22x29.h b/nuttx/libnx/nxfonts/nxfonts_sans22x29.h index a60145c6c..082d9e283 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans22x29.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans22x29.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 29 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans22x29b.h b/nuttx/libnx/nxfonts/nxfonts_sans22x29b.h index 5e836773c..0228b021b 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans22x29b.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans22x29b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 29 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans28x37.h b/nuttx/libnx/nxfonts/nxfonts_sans28x37.h index 85408b8c7..81c08caa6 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans28x37.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans28x37.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 37 diff --git a/nuttx/libnx/nxfonts/nxfonts_sans39x48.h b/nuttx/libnx/nxfonts/nxfonts_sans39x48.h index 6a0f749ca..405f5d01b 100644 --- a/nuttx/libnx/nxfonts/nxfonts_sans39x48.h +++ b/nuttx/libnx/nxfonts/nxfonts_sans39x48.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 48 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif22x28b.h b/nuttx/libnx/nxfonts/nxfonts_serif22x28b.h index 8dac8d2aa..345f798d8 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif22x28b.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif22x28b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 28 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif22x29.h b/nuttx/libnx/nxfonts/nxfonts_serif22x29.h index eec8ec338..b9299994b 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif22x29.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif22x29.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 29 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif27x38b.h b/nuttx/libnx/nxfonts/nxfonts_serif27x38b.h index 8d1a34441..7fd61db05 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif27x38b.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif27x38b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 38 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif29x37.h b/nuttx/libnx/nxfonts/nxfonts_serif29x37.h index f6648fa44..8627bd8b3 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif29x37.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif29x37.h @@ -32,7 +32,7 @@ * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ - + #ifndef __GRAPHICS_NXFONTS_NXFONTS_SERIF29X37_H #define __GRAPHICS_NXFONTS_NXFONTS_SERIF29X37_H @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 37 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif38x48.h b/nuttx/libnx/nxfonts/nxfonts_serif38x48.h index 7603e3091..466ce8ad7 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif38x48.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif38x48.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 48 diff --git a/nuttx/libnx/nxfonts/nxfonts_serif38x49b.h b/nuttx/libnx/nxfonts/nxfonts_serif38x49b.h index 9d9ae4679..3bfe9cb72 100644 --- a/nuttx/libnx/nxfonts/nxfonts_serif38x49b.h +++ b/nuttx/libnx/nxfonts/nxfonts_serif38x49b.h @@ -55,7 +55,7 @@ #define NXFONT_MIN8BIT 161 #define NXFONT_MAX8BIT 255 - + /* Maximum height and width of any glyph in the set */ #define NXFONT_MAXHEIGHT 49 diff --git a/nuttx/libnx/nxglib/nxglib_circlepts.c b/nuttx/libnx/nxglib/nxglib_circlepts.c index 811953dfc..9822b1248 100644 --- a/nuttx/libnx/nxglib/nxglib_circlepts.c +++ b/nuttx/libnx/nxglib/nxglib_circlepts.c @@ -59,7 +59,7 @@ /* Named indices into the 16 circle points generated by nxgl_circlepts */ -#define POINT_0p0 0 +#define POINT_0p0 0 #define POINT_22p5 1 #define POINT_45p0 2 #define POINT_67p5 3 diff --git a/nuttx/libnx/nxglib/nxglib_circletraps.c b/nuttx/libnx/nxglib/nxglib_circletraps.c index 8ee287795..6e49e4d83 100644 --- a/nuttx/libnx/nxglib/nxglib_circletraps.c +++ b/nuttx/libnx/nxglib/nxglib_circletraps.c @@ -165,7 +165,7 @@ void nxgl_circletraps(FAR const struct nxgl_point_s *center, nxgl_coord_t radius circle[2].top.x1 = circle[1].bot.x1; circle[2].top.x2 = circle[1].bot.x2; circle[2].top.y = circle[1].bot.y; - + circle[5].bot.x1 = circle[1].bot.x1; circle[5].bot.x2 = circle[1].bot.x2; circle[5].bot.y = center->y + xoffs; diff --git a/nuttx/libnx/nxglib/nxglib_rectunion.c b/nuttx/libnx/nxglib/nxglib_rectunion.c index 9d805aad0..89b3a7957 100644 --- a/nuttx/libnx/nxglib/nxglib_rectunion.c +++ b/nuttx/libnx/nxglib/nxglib_rectunion.c @@ -69,7 +69,7 @@ * Name: nxgl_rectunion * * Description: - * Given two rectanges, src1 and src2, return the larger rectangle that + * Given two rectanges, src1 and src2, return the larger rectangle that * contains both, dest. * ****************************************************************************/ diff --git a/nuttx/libnx/nxmu/nx_bitmap.c b/nuttx/libnx/nxmu/nx_bitmap.c index 8969f3e11..6ed0096b7 100644 --- a/nuttx/libnx/nxmu/nx_bitmap.c +++ b/nuttx/libnx/nxmu/nx_bitmap.c @@ -125,32 +125,32 @@ int nx_bitmap(NXWINDOW hwnd, FAR const struct nxgl_rect_s *dest, outmsg.origin.y = origin->y; nxgl_rectcopy(&outmsg.dest, dest); - + /* Create a semaphore for tracking command completion */ outmsg.sem_done = &sem_done; ret = sem_init(&sem_done, 0, 0); - + if (ret != OK) { gdbg("sem_init failed: %d\n", errno); return ret; } - + /* Forward the fill command to the server */ ret = nxmu_sendwindow(wnd, &outmsg, sizeof(struct nxsvrmsg_bitmap_s)); - + /* Wait that the command is completed, so that caller can release the buffer. */ - + if (ret == OK) { ret = sem_wait(&sem_done); } - + /* Destroy the semaphore and return. */ - + sem_destroy(&sem_done); - + return ret; } diff --git a/nuttx/libnx/nxmu/nx_getrectangle.c b/nuttx/libnx/nxmu/nx_getrectangle.c index 2adc719a7..a3b9a3a24 100644 --- a/nuttx/libnx/nxmu/nx_getrectangle.c +++ b/nuttx/libnx/nxmu/nx_getrectangle.c @@ -100,7 +100,7 @@ int nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, struct nxsvrmsg_getrectangle_s outmsg; int ret; sem_t sem_done; - + #ifdef CONFIG_DEBUG if (!hwnd || !rect || !dest) { @@ -124,27 +124,27 @@ int nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, outmsg.sem_done = &sem_done; ret = sem_init(&sem_done, 0, 0); - + if (ret != OK) { gdbg("sem_init failed: %d\n", errno); return ret; } - + /* Forward the fill command to the server */ ret = nxmu_sendwindow(wnd, &outmsg, sizeof(struct nxsvrmsg_getrectangle_s)); - + /* Wait that the command is completed, so that caller can release the buffer. */ - + if (ret == OK) { ret = sem_wait(&sem_done); } - + /* Destroy the semaphore and return. */ - + sem_destroy(&sem_done); - + return ret; } diff --git a/nuttx/libnx/nxtk/nxtk_drawcircletoolbar.c b/nuttx/libnx/nxtk/nxtk_drawcircletoolbar.c index 99b1094b7..fa7905cd4 100644 --- a/nuttx/libnx/nxtk/nxtk_drawcircletoolbar.c +++ b/nuttx/libnx/nxtk/nxtk_drawcircletoolbar.c @@ -51,7 +51,7 @@ ****************************************************************************/ /* Named indices into the 16 circle points generated by nxgl_circlepts */ -#define POINT_0p0 0 +#define POINT_0p0 0 #define POINT_22p5 1 #define POINT_45p0 2 #define POINT_67p5 3 diff --git a/nuttx/libnx/nxtk/nxtk_drawcirclewindow.c b/nuttx/libnx/nxtk/nxtk_drawcirclewindow.c index be6bc713f..ec0fe6312 100644 --- a/nuttx/libnx/nxtk/nxtk_drawcirclewindow.c +++ b/nuttx/libnx/nxtk/nxtk_drawcirclewindow.c @@ -51,7 +51,7 @@ ****************************************************************************/ /* Named indices into the 16 circle points generated by nxgl_circlepts */ -#define POINT_0p0 0 +#define POINT_0p0 0 #define POINT_22p5 1 #define POINT_45p0 2 #define POINT_67p5 3 diff --git a/nuttx/libnx/nxtk/nxtk_drawframe.c b/nuttx/libnx/nxtk/nxtk_drawframe.c index e30377dd3..74b23453e 100644 --- a/nuttx/libnx/nxtk/nxtk_drawframe.c +++ b/nuttx/libnx/nxtk/nxtk_drawframe.c @@ -115,7 +115,7 @@ int nxtk_drawframe(FAR struct nxtk_framedwindow_s *fwnd, struct nxgl_size_s tbsize; nxgl_coord_t thickness; - /* Shiny edge: + /* Shiny edge: * Thickness: 1 * Color: CONFIG_NXTK_BORDERCOLOR3; * Condition: CONFIG_NXTK_BORDERWIDTH > 2 diff --git a/nuttx/libnx/nxtk/nxtk_filltrapwindow.c b/nuttx/libnx/nxtk/nxtk_filltrapwindow.c index e28f0d3bc..66aef4184 100644 --- a/nuttx/libnx/nxtk/nxtk_filltrapwindow.c +++ b/nuttx/libnx/nxtk/nxtk_filltrapwindow.c @@ -109,11 +109,11 @@ int nxtk_filltrapwindow(NXTKWINDOW hfwnd, nxgl_trapoffset(&reltrap, trap, fwnd->fwrect.pt1.x - fwnd->wnd.bounds.pt1.x, fwnd->fwrect.pt1.y - fwnd->wnd.bounds.pt1.y); - + /* Perform the fill, clipping to the client window */ nxgl_rectoffset(&relclip, &fwnd->fwrect, -fwnd->wnd.bounds.pt1.x, -fwnd->wnd.bounds.pt1.y); - + return nx_filltrapezoid((NXWINDOW)hfwnd, &relclip, &reltrap, color); } diff --git a/nuttx/libnx/nxtk/nxtk_movetoolbar.c b/nuttx/libnx/nxtk/nxtk_movetoolbar.c index b5f05c096..275bb46e6 100644 --- a/nuttx/libnx/nxtk/nxtk_movetoolbar.c +++ b/nuttx/libnx/nxtk/nxtk_movetoolbar.c @@ -108,7 +108,7 @@ int nxtk_movetoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, #endif /* Make sure that both the source and dest rectangle lie within the - * toolbar sub-window + * toolbar sub-window */ nxtk_subwindowmove(fwnd, &srcrect, &clipoffset, rect, offset, &fwnd->tbrect); diff --git a/nuttx/libnx/nxtk/nxtk_movewindow.c b/nuttx/libnx/nxtk/nxtk_movewindow.c index f9bbbac41..66aed9d16 100644 --- a/nuttx/libnx/nxtk/nxtk_movewindow.c +++ b/nuttx/libnx/nxtk/nxtk_movewindow.c @@ -107,7 +107,7 @@ int nxtk_movewindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, #endif /* Make sure that both the source and dest rectangle lie within the - * client sub-window + * client sub-window */ nxtk_subwindowmove(fwnd, &srcrect, &clipoffset, rect, offset, &fwnd->fwrect); diff --git a/nuttx/mm/Makefile b/nuttx/mm/Makefile index 67b824f22..d1d0204a1 100644 --- a/nuttx/mm/Makefile +++ b/nuttx/mm/Makefile @@ -50,7 +50,7 @@ endif # Core allocator logic -ASRCS = +ASRCS = CSRCS = mm_initialize.c mm_sem.c mm_addfreechunk.c mm_size2ndx.c CSRCS += mm_shrinkchunk.c mm_malloc.c mm_zalloc.c mm_calloc.c mm_realloc.c CSRCS += mm_memalign.c mm_free.c mm_mallinfo.c @@ -83,7 +83,7 @@ KBIN = libkmm$(LIBEXT) BIN ?= libmm$(LIBEXT) all: $(BIN) -.PHONY: clean distclean +.PHONY: clean distclean $(AOBJS): $(BINDIR)$(DELIM)%$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/nuttx/mm/mm_granalloc.c b/nuttx/mm/mm_granalloc.c index e95709b31..f92e44ef0 100644 --- a/nuttx/mm/mm_granalloc.c +++ b/nuttx/mm/mm_granalloc.c @@ -225,7 +225,7 @@ static inline FAR void *gran_common_alloc(FAR struct gran_s *priv, size_t size) { break; } - + /* Check for the first zero bit in the lower or upper 16-bits. * From the test above, we know that at least one of the 32- * bits in 'curr' is zero. diff --git a/nuttx/mm/mm_graninit.c b/nuttx/mm/mm_graninit.c index 30ec5f9dd..89ccd7166 100644 --- a/nuttx/mm/mm_graninit.c +++ b/nuttx/mm/mm_graninit.c @@ -115,7 +115,7 @@ gran_common_initialize(FAR void *heapstart, size_t heapsize, uint8_t log2gran, mask = (1 << log2align) - 1; alignedstart = ((uintptr_t)heapstart + mask) & ~mask; - + /* Determine the number of granules */ mask = (1 << log2gran) - 1; diff --git a/nuttx/mm/mm_initialize.c b/nuttx/mm/mm_initialize.c index 6246cfc4b..6107a7b7d 100644 --- a/nuttx/mm/mm_initialize.c +++ b/nuttx/mm/mm_initialize.c @@ -117,7 +117,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart, /* Create two "allocated" guard nodes at the beginning and end of * the heap. These only serve to keep us from allocating outside * of the heap. - * + * * And create one free node between the guard nodes that contains * all available memory. */ diff --git a/nuttx/mm/mm_mallinfo.c b/nuttx/mm/mm_mallinfo.c index 578eadd27..acda75d8f 100644 --- a/nuttx/mm/mm_mallinfo.c +++ b/nuttx/mm/mm_mallinfo.c @@ -71,7 +71,7 @@ static inline int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info) { struct mm_allocnode_s *node; - size_t mxordblk = 0; + size_t mxordblk = 0; int ordblks = 0; /* Number of non-inuse chunks */ size_t uordblks = 0; /* Total allocated space */ size_t fordblks = 0; /* Total non-inuse space */ @@ -92,7 +92,7 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info) /* Visit each node in the region * Retake the semaphore for each region to reduce latencies */ - + mm_takesemaphore(heap); for (node = heap->mm_heapstart[region]; @@ -116,7 +116,7 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info) } mm_givesemaphore(heap); - + mvdbg("region=%d node=%p heapend=%p\n", region, node, heap->mm_heapend[region]); DEBUGASSERT(node == heap->mm_heapend[region]); uordblks += SIZEOF_MM_ALLOCNODE; /* account for the tail node */ diff --git a/nuttx/mm/mm_memalign.c b/nuttx/mm/mm_memalign.c index a420afe5e..9c0a29546 100644 --- a/nuttx/mm/mm_memalign.c +++ b/nuttx/mm/mm_memalign.c @@ -68,7 +68,7 @@ * Description: * memalign requests more than enough space from malloc, finds a region * within that chunk that meets the alignment request and then frees any - * leading or trailing space. + * leading or trailing space. * * The alignment argument must be a power of two (not checked). 8-byte * alignment is guaranteed by normal malloc calls. @@ -233,7 +233,7 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment, * Description: * memalign requests more than enough space from malloc, finds a region * within that chunk that meets the alignment request and then frees any - * leading or trailing space. + * leading or trailing space. * * The alignment argument must be a power of two (not checked). 8-byte * alignment is guaranteed by normal malloc calls. diff --git a/nuttx/net/net_allocroute.c b/nuttx/net/net_allocroute.c index a13b81d6e..8ae0938e8 100644 --- a/nuttx/net/net_allocroute.c +++ b/nuttx/net/net_allocroute.c @@ -106,7 +106,7 @@ void net_initroute(void) { sq_addlast((FAR sq_entry_t *)&g_preallocroutes[i], (FAR sq_queue_t *)&g_freeroutes); - } + } } /**************************************************************************** diff --git a/nuttx/net/net_close.c b/nuttx/net/net_close.c index 9e3b7c50a..fdb60c694 100644 --- a/nuttx/net/net_close.c +++ b/nuttx/net/net_close.c @@ -221,8 +221,8 @@ static uint16_t netclose_interrupt(FAR struct uip_driver_s *dev, * do not yet report UIP_CLOSE in the response. */ - dev->d_len = 0; - flags = (flags & ~UIP_NEWDATA); + dev->d_len = 0; + flags = (flags & ~UIP_NEWDATA); } #endif /* CONFIG_NET_TCP_WRITE_BUFFERS */ diff --git a/nuttx/net/net_dup.c b/nuttx/net/net_dup.c index 300459544..9ab36b920 100644 --- a/nuttx/net/net_dup.c +++ b/nuttx/net/net_dup.c @@ -98,7 +98,7 @@ int net_dup(int sockfd, int minsd) /* Get the socket structure underlying sockfd */ psock1 = sockfd_socket(sockfd); - + /* Verify that the sockfd corresponds to valid, allocated socket */ if (!psock1 || psock1->s_crefs <= 0) @@ -132,7 +132,7 @@ int net_dup(int sockfd, int minsd) { err = -ret; goto errout; - + } sched_unlock(); diff --git a/nuttx/net/net_sockets.c b/nuttx/net/net_sockets.c index 6e4a69235..a81620a71 100644 --- a/nuttx/net/net_sockets.c +++ b/nuttx/net/net_sockets.c @@ -187,7 +187,7 @@ int sockfd_allocate(int minsd) } _net_semgive(list); } - + return ERROR; } diff --git a/nuttx/net/uip/uip_igmpgroup.c b/nuttx/net/uip/uip_igmpgroup.c index 9953f5026..617e47dbe 100644 --- a/nuttx/net/uip/uip_igmpgroup.c +++ b/nuttx/net/uip/uip_igmpgroup.c @@ -11,30 +11,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -358,11 +358,11 @@ void uip_grpfree(FAR struct uip_driver_s *dev, FAR struct igmp_group_s *group) flags = uip_lock(); wd_cancel(group->wdog); - + /* Remove the group structure from the group list in the device structure */ sq_rem((FAR sq_entry_t*)group, &dev->grplist); - + /* Destroy the wait semaphore */ (void)sem_destroy(&group->sem); @@ -370,7 +370,7 @@ void uip_grpfree(FAR struct uip_driver_s *dev, FAR struct igmp_group_s *group) /* Destroy the wdog */ wd_delete(group->wdog); - + /* Then release the group structure resources. Check first if this is one * of the pre-allocated group structures that we will retain in a free list. */ diff --git a/nuttx/net/uip/uip_igmpinit.c b/nuttx/net/uip/uip_igmpinit.c index 75de2846e..4e3b07c50 100644 --- a/nuttx/net/uip/uip_igmpinit.c +++ b/nuttx/net/uip/uip_igmpinit.c @@ -11,30 +11,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ diff --git a/nuttx/net/uip/uip_igmpinput.c b/nuttx/net/uip/uip_igmpinput.c index 919bebb09..ca766ae8b 100644 --- a/nuttx/net/uip/uip_igmpinput.c +++ b/nuttx/net/uip/uip_igmpinput.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ diff --git a/nuttx/net/uip/uip_igmpjoin.c b/nuttx/net/uip/uip_igmpjoin.c index c02b0bb8f..8227dba15 100644 --- a/nuttx/net/uip/uip_igmpjoin.c +++ b/nuttx/net/uip/uip_igmpjoin.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -127,18 +127,18 @@ int igmp_joingroup(struct uip_driver_s *dev, FAR const struct in_addr *grpaddr) DEBUGASSERT(dev && grpaddr); /* Check if a this address is already in the group */ - + group = uip_grpfind(dev, &grpaddr->s_addr); if (!group) { /* No... allocate a new entry */ - + nvdbg("Join to new group: %08x\n", grpaddr->s_addr); group = uip_grpalloc(dev, &grpaddr->s_addr); IGMP_STATINCR(uip_stat.igmp.joins); /* Send the Membership Report */ - + IGMP_STATINCR(uip_stat.igmp.report_sched); uip_igmpwaitmsg(group, IGMPv2_MEMBERSHIP_REPORT); diff --git a/nuttx/net/uip/uip_igmpleave.c b/nuttx/net/uip/uip_igmpleave.c index 4e08df576..b5a0fddde 100644 --- a/nuttx/net/uip/uip_igmpleave.c +++ b/nuttx/net/uip/uip_igmpleave.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -145,7 +145,7 @@ int igmp_leavegroup(struct uip_driver_s *dev, FAR const struct in_addr *grpaddr) * clearing the flags will discard any pending Membership Reports that * could interfere with the Leave Group. */ - + flags = uip_lock(); wd_cancel(group->wdog); CLR_SCHEDMSG(group->flags); diff --git a/nuttx/net/uip/uip_igmpmsg.c b/nuttx/net/uip/uip_igmpmsg.c index 5209eaf7a..aa6c0318b 100644 --- a/nuttx/net/uip/uip_igmpmsg.c +++ b/nuttx/net/uip/uip_igmpmsg.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -125,7 +125,7 @@ void uip_igmpwaitmsg(FAR struct igmp_group_s *group, uint8_t msgid) /* The only error that should occur from uip_lockedwait() is if * the wait is awakened by a signal. */ - + ASSERT(errno == EINTR); } } diff --git a/nuttx/net/uip/uip_igmppoll.c b/nuttx/net/uip/uip_igmppoll.c index 9201cd6e6..b72143374 100644 --- a/nuttx/net/uip/uip_igmppoll.c +++ b/nuttx/net/uip/uip_igmppoll.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ diff --git a/nuttx/net/uip/uip_igmpsend.c b/nuttx/net/uip/uip_igmpsend.c index e36dc499b..26fcad382 100644 --- a/nuttx/net/uip/uip_igmpsend.c +++ b/nuttx/net/uip/uip_igmpsend.c @@ -86,7 +86,7 @@ /**************************************************************************** * Private Functions ****************************************************************************/ - + static uint16_t uip_igmpchksum(FAR uint8_t *buffer, int buflen) { uint16_t sum = uip_chksum((FAR uint16_t*)buffer, buflen); diff --git a/nuttx/net/uip/uip_igmptimer.c b/nuttx/net/uip/uip_igmptimer.c index 2aee84c8e..d6c5dabdd 100644 --- a/nuttx/net/uip/uip_igmptimer.c +++ b/nuttx/net/uip/uip_igmptimer.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ @@ -202,7 +202,7 @@ void uip_igmpstarttimer(FAR struct igmp_group_s *group, uint8_t decisecs) /* Convert the decisec value to system clock ticks and start the timer. * Important!! this should be a random timer from 0 to decisecs */ - + gtmrdbg("decisecs: %d\n", decisecs); uip_igmpstartticks(group, uip_decisec2tick(decisecs)); } diff --git a/nuttx/net/uip/uip_lock.c b/nuttx/net/uip/uip_lock.c index 5abcda269..594390a44 100644 --- a/nuttx/net/uip/uip_lock.c +++ b/nuttx/net/uip/uip_lock.c @@ -190,7 +190,7 @@ int uip_lockedwait(sem_t *sem) if (g_holder == me) { /* Release the uIP semaphore, remembering the count */ - + count = g_count; g_holder = NO_HOLDER; g_count = 0; diff --git a/nuttx/net/uip/uip_mcastmac.c b/nuttx/net/uip/uip_mcastmac.c index 9bd146198..b8d2a1dd3 100644 --- a/nuttx/net/uip/uip_mcastmac.c +++ b/nuttx/net/uip/uip_mcastmac.c @@ -10,30 +10,30 @@ * Copyright (c) 2002 CITEL Technologies Ltd. * All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. * ****************************************************************************/ diff --git a/nuttx/net/uip/uip_send.c b/nuttx/net/uip/uip_send.c index cd5712b40..0b799f203 100644 --- a/nuttx/net/uip/uip_send.c +++ b/nuttx/net/uip/uip_send.c @@ -94,7 +94,7 @@ void uip_send(struct uip_driver_s *dev, const void *buf, int len) { - /* Some sanity checks -- note that the actually available length in the + /* Some sanity checks -- note that the actually available length in the * buffer is considerably less than CONFIG_NET_BUFSIZE. */ diff --git a/nuttx/net/uip/uip_tcpseqno.c b/nuttx/net/uip/uip_tcpseqno.c index 2eca06e85..ea0aac443 100644 --- a/nuttx/net/uip/uip_tcpseqno.c +++ b/nuttx/net/uip/uip_tcpseqno.c @@ -111,7 +111,7 @@ void uip_tcpsetsequence(FAR uint8_t *seqno, uint32_t value) uint32_t uip_tcpgetsequence(FAR uint8_t *seqno) { uint32_t value; - + /* Combine the sequence number from network (big-endian) order */ value = (uint32_t)seqno[0] << 24 | diff --git a/nuttx/sched/atexit.c b/nuttx/sched/atexit.c index 4539aa8ff..7faa52d44 100644 --- a/nuttx/sched/atexit.c +++ b/nuttx/sched/atexit.c @@ -149,7 +149,7 @@ int atexit(void (*func)(void)) break; } } - + sched_unlock(); } diff --git a/nuttx/sched/clock_settime.c b/nuttx/sched/clock_settime.c index ce809aa11..d7048b09d 100644 --- a/nuttx/sched/clock_settime.c +++ b/nuttx/sched/clock_settime.c @@ -130,7 +130,7 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp) if (g_rtc_enabled && clock_id != CLOCK_ACTIVETIME) { up_rtc_settime(tp); - } + } #endif irqrestore(flags); @@ -138,7 +138,7 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp) (int)g_basetime.tv_sec, (int)g_basetime.tv_nsec, (int)g_tickbias); } - else + else { sdbg("Returning ERROR\n"); set_errno(EINVAL); diff --git a/nuttx/sched/env_getenv.c b/nuttx/sched/env_getenv.c index 0b847950a..6c4a22038 100644 --- a/nuttx/sched/env_getenv.c +++ b/nuttx/sched/env_getenv.c @@ -65,7 +65,7 @@ * matches the string pointed to by name. * * Parameters: - * name - The name of the variable to find. + * name - The name of the variable to find. * * Return Value: * The value of the valiable (read-only) or NULL on failure diff --git a/nuttx/sched/group_childstatus.c b/nuttx/sched/group_childstatus.c index 233649baf..5a5ffe4ab 100644 --- a/nuttx/sched/group_childstatus.c +++ b/nuttx/sched/group_childstatus.c @@ -399,7 +399,7 @@ FAR struct child_status_s *group_removechild(FAR struct task_group_s *group, curr->flink = NULL; group_dumpchildren(group, "group_removechild"); } - + return curr; } diff --git a/nuttx/sched/group_find.c b/nuttx/sched/group_find.c index 4c1205bea..94836e206 100644 --- a/nuttx/sched/group_find.c +++ b/nuttx/sched/group_find.c @@ -80,7 +80,7 @@ * * Description: * Given a group ID, find the group task structure with that ID. IDs are - * used instead of pointers to group structures. This is done because a + * used instead of pointers to group structures. This is done because a * group can disappear at any time leaving a stale pointer; an ID is cleaner * because if the group disappears, this function will fail gracefully. * diff --git a/nuttx/sched/group_join.c b/nuttx/sched/group_join.c index e760a62d2..58d08e8e3 100644 --- a/nuttx/sched/group_join.c +++ b/nuttx/sched/group_join.c @@ -74,7 +74,7 @@ * Name: group_addmember * * Description: - * Add a new member to a group. + * Add a new member to a group. * * Parameters: * group - The task group to add the new member @@ -131,7 +131,7 @@ static inline int group_addmember(FAR struct task_group_s *group, pid_t pid) irqrestore(flags); } - /* Assign this new pid to the group; group->tg_nmembers will be incremented + /* Assign this new pid to the group; group->tg_nmembers will be incremented * by the caller. */ @@ -153,7 +153,7 @@ static inline int group_addmember(FAR struct task_group_s *group, pid_t pid) * this (at the return from group_join, things are a little unstable: The * group has been bound, but tg_nmembers hs not yet been incremented). * Then, after the new thread is initialized and has a PID assigned to it, - * group_join() is called, incrementing the tg_nmembers count on the group. + * group_join() is called, incrementing the tg_nmembers count on the group. * * Parameters: * tcb - The TCB of the new "child" task that need to join the group. @@ -190,7 +190,7 @@ int group_bind(FAR struct pthread_tcb_s *tcb) * this (at the return from group_join, things are a little unstable: The * group has been bound, but tg_nmembers hs not yet been incremented). * Then, after the new thread is initialized and has a PID assigned to it, - * group_join() is called, incrementing the tg_nmembers count on the group. + * group_join() is called, incrementing the tg_nmembers count on the group. * * Parameters: * tcb - The TCB of the new "child" task that need to join the group. diff --git a/nuttx/sched/group_leave.c b/nuttx/sched/group_leave.c index ceac10c38..15bbea740 100644 --- a/nuttx/sched/group_leave.c +++ b/nuttx/sched/group_leave.c @@ -100,9 +100,9 @@ void group_remove(FAR struct task_group_s *group) /* Let's be especially careful while access the global task group list. * This is probably un-necessary. */ - + flags = irqsave(); - + /* Find the task group structure */ for (prev = NULL, curr = g_grouphead; diff --git a/nuttx/sched/group_setupidlefiles.c b/nuttx/sched/group_setupidlefiles.c index 2589dc637..67001c1fb 100644 --- a/nuttx/sched/group_setupidlefiles.c +++ b/nuttx/sched/group_setupidlefiles.c @@ -122,7 +122,7 @@ int group_setupidlefiles(FAR struct task_tcb_s *tcb) /* We failed to open /dev/console OR for some reason, we opened * it and got some file descriptor other than 0. */ - + if (fd > 0) { slldbg("Open /dev/console fd: %d\n", fd); diff --git a/nuttx/sched/group_signal.c b/nuttx/sched/group_signal.c index 663441898..e46b190fd 100644 --- a/nuttx/sched/group_signal.c +++ b/nuttx/sched/group_signal.c @@ -280,7 +280,7 @@ errout: #else return -ENOSYS; - + #endif } diff --git a/nuttx/sched/irq_attach.c b/nuttx/sched/irq_attach.c index 3f27a0530..bf272f469 100644 --- a/nuttx/sched/irq_attach.c +++ b/nuttx/sched/irq_attach.c @@ -94,7 +94,7 @@ int irq_attach(int irq, xcpt_t isr) if (isr == NULL) { /* Disable the interrupt if we can before detaching it. We might - * not be able to do this if: (1) the device does not have a + * not be able to do this if: (1) the device does not have a * centralized interrupt controller (so up_disable_irq() is not * supported). Or (2) if the device has different number for vector * numbers and IRQ numbers (in that case, we don't know the correct diff --git a/nuttx/sched/mq_notify.c b/nuttx/sched/mq_notify.c index 3cff48a2b..ee4ddcdd1 100644 --- a/nuttx/sched/mq_notify.c +++ b/nuttx/sched/mq_notify.c @@ -99,12 +99,12 @@ * On success mq_notify() returns 0; on error, -1 is returned, with * errno set to indicate the error. * - * EBADF The descriptor specified in mqdes is invalid. + * EBADF The descriptor specified in mqdes is invalid. * EBUSY Another process has already registered to receive notification - * for this message queue. + * for this message queue. * EINVAL sevp->sigev_notify is not one of the permitted values; or * sevp->sigev_notify is SIGEV_SIGNAL and sevp->sigev_signo is not a - * valid signal number. + * valid signal number. * ENOMEM * Insufficient memory. * diff --git a/nuttx/sched/mq_recover.c b/nuttx/sched/mq_recover.c index 8f908395e..4c3dbed47 100644 --- a/nuttx/sched/mq_recover.c +++ b/nuttx/sched/mq_recover.c @@ -95,7 +95,7 @@ void mq_recover(FAR struct tcb_s *tcb) * timer was canceled and deleted in task_recover() before this * function was called. */ - + /* Was the task waiting for a message queue to become non-empty? */ if (tcb->task_state == TSTATE_WAIT_MQNOTEMPTY) diff --git a/nuttx/sched/mq_send.c b/nuttx/sched/mq_send.c index 40628e924..661cbbe87 100644 --- a/nuttx/sched/mq_send.c +++ b/nuttx/sched/mq_send.c @@ -93,7 +93,7 @@ * * If the message queue is full and O_NONBLOCK is set, the message is not * queued and ERROR is returned. - * + * * Parameters: * mqdes - Message queue descriptor * msg - Message to send diff --git a/nuttx/sched/mq_sndinternal.c b/nuttx/sched/mq_sndinternal.c index 9b004ef91..21468de1c 100644 --- a/nuttx/sched/mq_sndinternal.c +++ b/nuttx/sched/mq_sndinternal.c @@ -86,7 +86,7 @@ * * Description: * This is internal, common logic shared by both mq_send and mq_timesend. - * This function verifies the input parameters that are common to both + * This function verifies the input parameters that are common to both * functions. * * Parameters: @@ -147,7 +147,7 @@ int mq_verifysend(mqd_t mqdes, const void *msg, size_t msglen, int prio) * continue. * * If the list is empty AND the message IS being allocated from the - * interrupt level. This function will attempt to get a message from + * interrupt level. This function will attempt to get a message from * the g_msgfreeirq list. If this is unsuccessful, the calling interrupt * handler will be notified. * @@ -268,7 +268,7 @@ int mq_waitsend(mqd_t mqdes) else { - /* Loop until there are fewer than max allowable messages in the + /* Loop until there are fewer than max allowable messages in the * receiving message queue */ @@ -310,7 +310,7 @@ int mq_waitsend(mqd_t mqdes) * (mqdes). Then it notifies any tasks that were waiting for message * queue notifications setup by mq_notify. And, finally, it awakens any * tasks that were waiting for the message not empty event. - * + * * Parameters: * mqdes - Message queue descriptor * msg - Message to send diff --git a/nuttx/sched/mq_timedsend.c b/nuttx/sched/mq_timedsend.c index 31de84fc4..d36daf819 100644 --- a/nuttx/sched/mq_timedsend.c +++ b/nuttx/sched/mq_timedsend.c @@ -155,7 +155,7 @@ static void mq_sndtimeout(int argc, uint32_t pid) * * If the message queue is full, and the timeout has already expired by * the time of the call, mq_timedsend() returns immediately. - * + * * Parameters: * mqdes - Message queue descriptor * msg - Message to send diff --git a/nuttx/sched/mq_unlink.c b/nuttx/sched/mq_unlink.c index 1fa25dfa8..82db5a7c1 100644 --- a/nuttx/sched/mq_unlink.c +++ b/nuttx/sched/mq_unlink.c @@ -78,7 +78,7 @@ * or more tasks have the message queue open when mq_unlink() is called, * removal of the message queue is postponed until all references to the * message queue have been closed. - * + * * Parameters: * mq_name - Name of the message queue * diff --git a/nuttx/sched/on_exit.c b/nuttx/sched/on_exit.c index ef3c31631..d5f180412 100644 --- a/nuttx/sched/on_exit.c +++ b/nuttx/sched/on_exit.c @@ -91,7 +91,7 @@ * * NOTE 1: This function comes from SunOS 4, but is also present in * libc4, libc5 and glibc. It no longer occurs in Solaris (SunOS 5). - * Avoid this function, and use the standard atexit() instead. + * Avoid this function, and use the standard atexit() instead. * * NOTE 2: CONFIG_SCHED_ONEXIT must be defined to enable this function * diff --git a/nuttx/sched/os_bringup.c b/nuttx/sched/os_bringup.c index 6a41b4248..776c789b9 100644 --- a/nuttx/sched/os_bringup.c +++ b/nuttx/sched/os_bringup.c @@ -125,7 +125,7 @@ * symbols: * * - USER_ENTRYPOINT: This is the default user application entry point. - * + * ****************************************************************************/ int os_bringup(void) diff --git a/nuttx/sched/pause.c b/nuttx/sched/pause.c index 607c4c775..f75afa6c9 100644 --- a/nuttx/sched/pause.c +++ b/nuttx/sched/pause.c @@ -77,7 +77,7 @@ * None * * Returned Value: - * Since pause() suspends thread execution indefinitely unless interrupted + * Since pause() suspends thread execution indefinitely unless interrupted * a signal, there is no successful completion return value. A value of -1 * will always be returned and errno set to indicate the error (EINTR). * @@ -94,7 +94,7 @@ int pause(void) { sigset_t set; struct siginfo value; - + /* Set up for the sleep. Using the empty set means that we are not * waiting for any particular signal. However, any unmasked signal * can still awaken sigtimedwait(). diff --git a/nuttx/sched/pg_internal.h b/nuttx/sched/pg_internal.h index ecece8650..e2063aec6 100644 --- a/nuttx/sched/pg_internal.h +++ b/nuttx/sched/pg_internal.h @@ -39,7 +39,7 @@ /**************************************************************************** * Included Files ****************************************************************************/ - + #include #include diff --git a/nuttx/sched/pg_worker.c b/nuttx/sched/pg_worker.c index b1380111a..13f7fe1d9 100644 --- a/nuttx/sched/pg_worker.c +++ b/nuttx/sched/pg_worker.c @@ -130,7 +130,7 @@ status uint32_t g_starttime; * NOTE: pg_callback() must also be locked in memory. * * When pg_callback() is called, it will perform the following operations: - * + * * - Verify that g_pftcb is non-NULL. * - Find the higher priority between the task waiting for the fill to * complete in g_pftcb and the task waiting at the head of the @@ -176,7 +176,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result) { priority = htcb->sched_priority; } - + /* If this higher priority is higher than current page fill worker * thread, then boost worker thread's priority to that level. Thus, * the page fill worker thread will always run at the priority of @@ -201,7 +201,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result) } /* Signal the page fill worker thread (in any event) */ - + pglldbg("Signaling worker. PID: %d\n", g_pgworker); kill(g_pgworker, SIGWORK); } @@ -223,7 +223,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result) * * The result (NULL or a TCB pointer) will be returned in the global * variable, g_pftcb. - * + * * Input parameters: * None * @@ -234,7 +234,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result) * assertions and this function will not return). * * Assumptions: - * Executing in the context of the page fill worker thread with all + * Executing in the context of the page fill worker thread with all * interrupts disabled. * ****************************************************************************/ @@ -278,7 +278,7 @@ static inline bool pg_dequeue(void) * fill (this priority can get re-boosted by pg_miss() * if a new higher priority fill is required). */ - + FAR struct tcb_s *wtcb = (FAR struct tcb_s *)g_readytorun.head; if (wtcb->sched_priority > CONFIG_PAGING_DEFPRIO && wtcb->sched_priority > g_pftcb->sched_priority) @@ -334,7 +334,7 @@ static inline bool pg_dequeue(void) * is notified that there is a new page fill TCB in the g_waitingforfill * prioritized list, or (2) when a page fill completes and there are more * pages to be filled in g_waitingforfill list. - * + * * Input parameters: * None * @@ -345,7 +345,7 @@ static inline bool pg_dequeue(void) * assertions and this function will not return). * * Assumptions: - * Executing in the context of the page fill worker thread with all + * Executing in the context of the page fill worker thread with all * interrupts disabled. * ****************************************************************************/ @@ -402,7 +402,7 @@ static inline bool pg_startfill(void) pgllvdbg("Call up_fillpage(%p)\n", g_pftcb); result = up_fillpage(g_pftcb, vpage, pg_callback); DEBUGASSERT(result == OK); - + /* Save the time that the fill was started. These will be used to check for * timeouts. */ diff --git a/nuttx/sched/prctl.c b/nuttx/sched/prctl.c index c4cc13c6c..cf40708fa 100644 --- a/nuttx/sched/prctl.c +++ b/nuttx/sched/prctl.c @@ -73,8 +73,8 @@ * EINVAL The value of 'option' is not recognized. * EFAULT optional arg1 is not a valid address. * ESRCH No task/thread can be found corresponding to that specified - * by optional arg1. - * + * by optional arg1. + * ****************************************************************************/ int prctl(int option, ...) diff --git a/nuttx/sched/pthread_condsignal.c b/nuttx/sched/pthread_condsignal.c index 48ff4cf20..c7120d104 100644 --- a/nuttx/sched/pthread_condsignal.c +++ b/nuttx/sched/pthread_condsignal.c @@ -116,7 +116,7 @@ int pthread_cond_signal(FAR pthread_cond_t *cond) * usable from interrupt handlers. However, from interrupt handlers, * you cannot take the associated mutex before signaling the condition. * As a result, I think that there could be a race condition with - * the following logic which assumes that the if sval < 0 then the + * the following logic which assumes that the if sval < 0 then the * thread is waiting. Without the mutex, there is no atomic, protected * operation that will guarantee this to be so. */ diff --git a/nuttx/sched/pthread_internal.h b/nuttx/sched/pthread_internal.h index 285cd11e6..d600e2481 100644 --- a/nuttx/sched/pthread_internal.h +++ b/nuttx/sched/pthread_internal.h @@ -65,7 +65,7 @@ * always be created in a montonically increasing fashion. */ -struct join_s +struct join_s { FAR struct join_s *next; /* Implements link list */ uint8_t crefs; /* Reference count */ diff --git a/nuttx/sched/pthread_mutexlock.c b/nuttx/sched/pthread_mutexlock.c index 7681d771a..d4e4237a5 100644 --- a/nuttx/sched/pthread_mutexlock.c +++ b/nuttx/sched/pthread_mutexlock.c @@ -145,7 +145,7 @@ int pthread_mutex_lock(FAR pthread_mutex_t *mutex) if (mutex->type == PTHREAD_MUTEX_RECURSIVE) { /* Yes... just increment the number of locks held and return success */ - + mutex->nlocks++; } else diff --git a/nuttx/sched/pthread_mutexunlock.c b/nuttx/sched/pthread_mutexunlock.c index 34846f952..0a3757e98 100644 --- a/nuttx/sched/pthread_mutexunlock.c +++ b/nuttx/sched/pthread_mutexunlock.c @@ -125,7 +125,7 @@ int pthread_mutex_unlock(FAR pthread_mutex_t *mutex) sdbg("Holder=%d returning EPERM\n", mutex->pid); ret = EPERM; } - + /* Yes, the caller owns the semaphore.. Is this a recursive mutex? */ diff --git a/nuttx/sched/sched_addblocked.c b/nuttx/sched/sched_addblocked.c index 66b10619b..70191797e 100644 --- a/nuttx/sched/sched_addblocked.c +++ b/nuttx/sched/sched_addblocked.c @@ -72,7 +72,7 @@ * Name: sched_addblocked * * Description: - * This function adds a TCB to one of the blocked state task lists as + * This function adds a TCB to one of the blocked state task lists as * inferred from task_state. * * Inputs: diff --git a/nuttx/sched/sched_cpuload.c b/nuttx/sched/sched_cpuload.c index 95a8b59e2..5a6bf6cc6 100644 --- a/nuttx/sched/sched_cpuload.c +++ b/nuttx/sched/sched_cpuload.c @@ -197,7 +197,7 @@ int clock_cpuload(int pid, FAR struct cpuload_s *cpuload) * on all threads during timer interrupt handling. sched_foreach() could * do this too, but this would require a little more overhead. */ - + if (g_pidhash[hash_index].tcb && g_pidhash[hash_index].pid == pid) { cpuload->total = g_cpuload_total; diff --git a/nuttx/sched/sched_garbage.c b/nuttx/sched/sched_garbage.c index d11a0df96..8609bb27d 100644 --- a/nuttx/sched/sched_garbage.c +++ b/nuttx/sched/sched_garbage.c @@ -84,7 +84,7 @@ static inline void sched_kucleanup(void) /* Test if the delayed deallocation queue is empty. No special protection * is needed because this is an atomic test. */ - + while (g_delayed_kufree.head) { /* Remove the first delayed deallocation. This is not atomic and so @@ -131,7 +131,7 @@ static inline void sched_kcleanup(void) /* Test if the delayed deallocation queue is empty. No special protection * is needed because this is an atomic test. */ - + while (g_delayed_kfree.head) { /* Remove the first delayed deallocation. This is not atomic and so diff --git a/nuttx/sched/sched_getstreams.c b/nuttx/sched/sched_getstreams.c index 9f0820a48..3d9e0e3d1 100644 --- a/nuttx/sched/sched_getstreams.c +++ b/nuttx/sched/sched_getstreams.c @@ -79,6 +79,6 @@ FAR struct streamlist *sched_getstreams(void) #else return &group->tg_streamlist; #endif -} +} #endif /* CONFIG_NFILE_DESCRIPTORS && CONFIG_NFILE_STREAMS */ diff --git a/nuttx/sched/sched_mergepending.c b/nuttx/sched/sched_mergepending.c index c400fee4d..885fec832 100644 --- a/nuttx/sched/sched_mergepending.c +++ b/nuttx/sched/sched_mergepending.c @@ -110,7 +110,7 @@ bool sched_mergepending(void) { pndnext = pndtcb->flink; - /* Search the g_readytorun list to find the location to insert the + /* Search the g_readytorun list to find the location to insert the * new pndtcb. Each is list is maintained in ascending sched_priority * order. */ diff --git a/nuttx/sched/sched_processtimer.c b/nuttx/sched/sched_processtimer.c index 6ca5981fb..60c2e6702 100644 --- a/nuttx/sched/sched_processtimer.c +++ b/nuttx/sched/sched_processtimer.c @@ -53,7 +53,7 @@ /************************************************************************ * Pre-processor Definitions ************************************************************************/ - + #ifndef CONFIG_SCHED_CPULOAD_TIMECONSTANT # define CONFIG_SCHED_CPULOAD_TIMECONSTANT 2 #endif diff --git a/nuttx/sched/sched_releasetcb.c b/nuttx/sched/sched_releasetcb.c index 21854c83d..96f9acff7 100644 --- a/nuttx/sched/sched_releasetcb.c +++ b/nuttx/sched/sched_releasetcb.c @@ -63,7 +63,7 @@ static void sched_releasepid(pid_t pid) { int hash_ndx = PIDHASH(pid); - /* Make any pid associated with this hash available. Note: + /* Make any pid associated with this hash available. Note: * no special precautions need be taken here because the * following action is atomic */ diff --git a/nuttx/sched/sched_removereadytorun.c b/nuttx/sched/sched_removereadytorun.c index 15dec43e0..b1f215a92 100644 --- a/nuttx/sched/sched_removereadytorun.c +++ b/nuttx/sched/sched_removereadytorun.c @@ -79,7 +79,7 @@ * rtcb - Points to the TCB that is ready-to-run * * Return Value: - * true if the currently active task (the head of the + * true if the currently active task (the head of the * g_readytorun list) has changed. * * Assumptions: diff --git a/nuttx/sched/sched_setpriority.c b/nuttx/sched/sched_setpriority.c index 4b5b9ccc1..13f177271 100644 --- a/nuttx/sched/sched_setpriority.c +++ b/nuttx/sched/sched_setpriority.c @@ -109,7 +109,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority) /* Verify that the requested priority is in the valid range */ - if (sched_priority < SCHED_PRIORITY_MIN || + if (sched_priority < SCHED_PRIORITY_MIN || sched_priority > SCHED_PRIORITY_MAX) { errno = EINVAL; @@ -128,7 +128,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority) switch (task_state) { /* CASE 1. The task is running or ready-to-run and a context switch - * may be caused by the re-prioritization + * may be caused by the re-prioritization */ case TSTATE_TASK_RUNNING: @@ -162,7 +162,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority) case TSTATE_TASK_READYTORUN: /* A context switch will occur if the new priority of the ready-to - * run task is (strictly) greater than the current running task + * run task is (strictly) greater than the current running task */ if (sched_priority > rtcb->sched_priority) diff --git a/nuttx/sched/sched_waitid.c b/nuttx/sched/sched_waitid.c index 9bb6c200d..385dfa55a 100644 --- a/nuttx/sched/sched_waitid.c +++ b/nuttx/sched/sched_waitid.c @@ -117,21 +117,21 @@ static void exited_child(FAR struct tcb_s *rtcb, FAR struct child_status_s *chil * will will wait for. It is formed by OR-ing together one or more of the * following flags: * - * WEXITED - Wait for processes that have exited. + * WEXITED - Wait for processes that have exited. * WSTOPPED - Status will be returned for any child that has stopped - * upon receipt of a signal. + * upon receipt of a signal. * WCONTINUED - Status will be returned for any child that was stopped - * and has been continued. - * WNOHANG - Return immediately if there are no children to wait for. + * and has been continued. + * WNOHANG - Return immediately if there are no children to wait for. * WNOWAIT - Keep the process whose status is returned in 'info' in a * waitable state. This will not affect the state of the process; the - * process may be waited for again after this call completes. + * process may be waited for again after this call completes. * * The 'info' argument must point to a siginfo_t structure. If waitid() * returns because a child process was found that satisfied the conditions * indicated by the arguments idtype and options, then the structure pointed * to by 'info' will be filled in by the system with the status of the - * process. The si_signo member will always be equal to SIGCHLD. + * process. The si_signo member will always be equal to SIGCHLD. * * Input Parameters: * See description. @@ -139,15 +139,15 @@ static void exited_child(FAR struct tcb_s *rtcb, FAR struct child_status_s *chil * Returned Value: * If waitid() returns due to the change of state of one of its children, * 0 is returned. Otherwise, -1 is returned and errno is set to indicate - * the error. + * the error. * * The waitid() function will fail if: * * ECHILD - The calling process has no existing unwaited-for child - * processes. - * EINTR - The waitid() function was interrupted by a signal. + * processes. + * EINTR - The waitid() function was interrupted by a signal. * EINVAL - An invalid value was specified for options, or idtype and id - * specify an invalid set of processes. + * specify an invalid set of processes. * *****************************************************************************/ @@ -297,7 +297,7 @@ int waitid(idtype_t idtype, id_t id, FAR siginfo_t *info, int options) child = group_findchild(rtcb->group, (pid_t)id); DEBUGASSERT(child); - + /* Did the child exit? */ if ((child->ch_flags & CHILD_FLAG_EXITED) != 0) diff --git a/nuttx/sched/sched_waitpid.c b/nuttx/sched/sched_waitpid.c index 7d1196350..fbed490c1 100644 --- a/nuttx/sched/sched_waitpid.c +++ b/nuttx/sched/sched_waitpid.c @@ -93,19 +93,19 @@ * * WCONTINUED - The waitpid() function will report the status of any * continued child process specified by pid whose status has not been - * reported since it continued from a job control stop. + * reported since it continued from a job control stop. * WNOHANG - The waitpid() function will not suspend execution of the * calling thread if status is not immediately available for one of the - * child processes specified by pid. + * child processes specified by pid. * WUNTRACED - The status of any child processes specified by pid that are * stopped, and whose status has not yet been reported since they stopped, - * will also be reported to the requesting process. + * will also be reported to the requesting process. * * If the calling process has SA_NOCLDWAIT set or has SIGCHLD set to * SIG_IGN, and the process has no unwaited-for children that were * transformed into zombie processes, the calling thread will block until all * of the children of the process containing the calling thread terminate, and - * waitpid() will fail and set errno to ECHILD. + * waitpid() will fail and set errno to ECHILD. * * If waitpid() returns because the status of a child process is available, * these functions will return a value equal to the process ID of the child @@ -125,22 +125,22 @@ * to by stat_loc. * * WIFEXITED(stat_val) - Evaluates to a non-zero value if status was - * returned for a child process that terminated normally. + * returned for a child process that terminated normally. * WEXITSTATUS(stat_val) - If the value of WIFEXITED(stat_val) is non-zero, * this macro evaluates to the low-order 8 bits of the status argument * that the child process passed to _exit() or exit(), or the value the - * child process returned from main(). + * child process returned from main(). * WIFSIGNALED(stat_val) - Evaluates to a non-zero value if status was * returned for a child process that terminated due to the receipt of a - * signal that was not caught (see ). + * signal that was not caught (see ). * WTERMSIG(stat_val) - If the value of WIFSIGNALED(stat_val) is non-zero, * this macro evaluates to the number of the signal that caused the - * termination of the child process. + * termination of the child process. * WIFSTOPPED(stat_val) - Evaluates to a non-zero value if status was - * returned for a child process that is currently stopped. + * returned for a child process that is currently stopped. * WSTOPSIG(stat_val) - If the value of WIFSTOPPED(stat_val) is non-zero, * this macro evaluates to the number of the signal that caused the child - * process to stop. + * process to stop. * WIFCONTINUED(stat_val) - Evaluates to a non-zero value if status was * returned for a child process that has continued from a job control stop. * @@ -165,10 +165,10 @@ * * ECHILD - The process specified by pid does not exist or is not a child of * the calling process, or the process group specified by pid does not exist - * or does not have any member process that is a child of the calling process. + * or does not have any member process that is a child of the calling process. * EINTR - The function was interrupted by a signal. The value of the location - * pointed to by stat_loc is undefined. - * EINVAL - The options argument is not valid. + * pointed to by stat_loc is undefined. + * EINVAL - The options argument is not valid. * * Assumptions: * @@ -231,7 +231,7 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options) } /* Then wait for the task to exit */ - + ret = sem_wait(&group->tg_exitsem); if (ret < 0) { diff --git a/nuttx/sched/sem_holder.c b/nuttx/sched/sem_holder.c index b88bebf36..5a399f7aa 100644 --- a/nuttx/sched/sem_holder.c +++ b/nuttx/sched/sem_holder.c @@ -324,7 +324,7 @@ static int sem_boostholderprio(FAR struct semholder_s *pholder, else { sdbg("CONFIG_SEM_NNESTPRIO exceeded\n"); - } + } } /* Raise the priority of the thread holding of the semaphore. @@ -503,13 +503,13 @@ static int sem_restoreholderprio(FAR struct semholder_s *pholder, FAR sem_t *sem /* And apply that priority to the thread (while retaining the base_priority) */ sched_setpriority(htcb, rpriority); - } + } else { /* The holder thread has been boosted to a higher priority than the * waiter task. The pending priority should be in the list (unless it * was lost because of of list overflow or because the holder was - * reporioritize again unbeknownst to the priority inheritance logic). + * reprioritize again unbeknownst to the priority inheritance logic). * * Search the list for the matching priority. */ @@ -517,7 +517,7 @@ static int sem_restoreholderprio(FAR struct semholder_s *pholder, FAR sem_t *sem for (i = 0; i < htcb->npend_reprio; i++) { /* Does this pending priority match the priority of the thread - * that just received the count? + * that just received the count? */ if (htcb->pend_reprios[i] == stcb->sched_priority) @@ -723,7 +723,7 @@ static inline void sem_restorebaseprio_task(FAR struct tcb_s *stcb, FAR sem_t *s } #endif - /* In any case, the currently executing task should have an entry in the + /* In any case, the currently executing task should have an entry in the * list. Its counts were previously decremented; if it now holds no * counts, then we need to remove it from the list of holders. */ @@ -862,7 +862,7 @@ void sem_addholder(FAR sem_t *sem) * Name: void sem_boostpriority(sem_t *sem) * * Description: - * + * * * Parameters: * None @@ -1057,7 +1057,7 @@ int sem_nfreeholders(void) #if CONFIG_SEM_PREALLOCHOLDERS > 0 FAR struct semholder_s *pholder; int n; - + for (pholder = g_freeholders, n = 0; pholder; pholder = pholder->flink) n++; return n; #else diff --git a/nuttx/sched/sem_open.c b/nuttx/sched/sem_open.c index b2b76fe38..d3ebede82 100644 --- a/nuttx/sched/sem_open.c +++ b/nuttx/sched/sem_open.c @@ -142,7 +142,7 @@ FAR sem_t *sem_open (FAR const char *name, int oflag, ...) psem = sem_findnamed(name); if (psem) { - /* It does. Check if the caller wanted to created + /* It does. Check if the caller wanted to created * a new semahore with this name. */ diff --git a/nuttx/sched/sem_timedwait.c b/nuttx/sched/sem_timedwait.c index f375ac06c..572d77960 100644 --- a/nuttx/sched/sem_timedwait.c +++ b/nuttx/sched/sem_timedwait.c @@ -113,7 +113,7 @@ static void sem_timeout(int argc, uint32_t pid) if (wtcb && wtcb->task_state == TSTATE_WAIT_SEM) { /* Cancel the semaphore wait */ - + sem_waitirq(wtcb, ETIMEDOUT); } @@ -252,7 +252,7 @@ int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime) /* Start the watchdog */ - err = OK; + err = OK; wd_start(rtcb->waitdog, ticks, (wdentry_t)sem_timeout, 1, getpid()); /* Now perform the blocking wait */ diff --git a/nuttx/sched/sem_waitirq.c b/nuttx/sched/sem_waitirq.c index 5c28a78a0..b86daaa5d 100644 --- a/nuttx/sched/sem_waitirq.c +++ b/nuttx/sched/sem_waitirq.c @@ -121,7 +121,7 @@ void sem_waitirq(FAR struct tcb_s *wtcb, int errcode) * that was taken by sem_post(). This count decremented the semaphore * count to negative and caused the thread to be blocked in the first * place. - */ + */ sem->semcount++; diff --git a/nuttx/sched/sig_action.c b/nuttx/sched/sig_action.c index 84a7ff6b6..049a85823 100644 --- a/nuttx/sched/sig_action.c +++ b/nuttx/sched/sig_action.c @@ -204,7 +204,7 @@ int sigaction(int signo, FAR const struct sigaction *act, FAR struct sigaction * /* If the argument act is a null pointer, signal handling is unchanged; * thus, the call can be used to enquire about the current handling of - * a given signal. + * a given signal. */ if (!act) diff --git a/nuttx/sched/sig_pending.c b/nuttx/sched/sig_pending.c index 8d39f19a4..07a79f85f 100644 --- a/nuttx/sched/sig_pending.c +++ b/nuttx/sched/sig_pending.c @@ -76,7 +76,7 @@ * This function stores the returns the set of signals that are blocked * for delivery and that are pending for the calling process in the space * pointed to by set. - * + * * Parameters: * set - The location to return the pending signal set. * diff --git a/nuttx/sched/sig_procmask.c b/nuttx/sched/sig_procmask.c index ea64f4685..aa738aa9a 100644 --- a/nuttx/sched/sig_procmask.c +++ b/nuttx/sched/sig_procmask.c @@ -163,7 +163,7 @@ int sigprocmask(int how, FAR const sigset_t *set, FAR sigset_t *oset) rtcb->sigprocmask = *set; break; - default: + default: ret = ERROR; break; } diff --git a/nuttx/sched/sig_removependingsignal.c b/nuttx/sched/sig_removependingsignal.c index 9e9711b09..656cf726a 100644 --- a/nuttx/sched/sig_removependingsignal.c +++ b/nuttx/sched/sig_removependingsignal.c @@ -100,7 +100,7 @@ FAR sigpendq_t *sig_removependingsignal(FAR struct tcb_s *stcb, int signo) (currsig && currsig->info.si_signo != signo); prevsig = currsig, currsig = currsig->flink); - if (currsig) + if (currsig) { if (prevsig) { diff --git a/nuttx/sched/sig_suspend.c b/nuttx/sched/sig_suspend.c index e57ac4396..7342d124c 100644 --- a/nuttx/sched/sig_suspend.c +++ b/nuttx/sched/sig_suspend.c @@ -148,7 +148,7 @@ int sigsuspend(FAR const sigset_t *set) else { /* Its time to wait. Save a copy of the old sigprocmask and install - * the new (temporary) sigprocmask + * the new (temporary) sigprocmask */ saved_sigprocmask = rtcb->sigprocmask; diff --git a/nuttx/sched/task_posixspawn.c b/nuttx/sched/task_posixspawn.c index 7fc90c9fa..bc6f8dccc 100644 --- a/nuttx/sched/task_posixspawn.c +++ b/nuttx/sched/task_posixspawn.c @@ -268,7 +268,7 @@ static int posix_spawn_proxy(int argc, FAR char *argv[]) * CONFIG_BINFMT_EXEPATH is defined, then only posix_spawnp() behavior * is supported; otherwise, only posix_spawn behavior is supported. * - * file_actions - If 'file_actions' is a null pointer, then file + * file_actions - If 'file_actions' is a null pointer, then file * descriptors open in the calling process will remain open in the * child process (unless CONFIG_FDCLONE_STDIO is defined). If * 'file_actions' is not NULL, then the file descriptors open in the diff --git a/nuttx/sched/task_reparent.c b/nuttx/sched/task_reparent.c index e47fbfee5..d5c03b347 100644 --- a/nuttx/sched/task_reparent.c +++ b/nuttx/sched/task_reparent.c @@ -199,10 +199,10 @@ int task_reparent(pid_t ppid, pid_t chpid) ret = OK; #endif /* CONFIG_SCHED_CHILD_STATUS */ - + errout_with_ints: irqrestore(flags); - return ret; + return ret; } #else int task_reparent(pid_t ppid, pid_t chpid) @@ -254,7 +254,7 @@ int task_reparent(pid_t ppid, pid_t chpid) { ppid = otcb->ppid; } - + /* Get the new parent task's TCB (ptcb) */ ptcb = sched_gettcb(ppid); @@ -311,10 +311,10 @@ int task_reparent(pid_t ppid, pid_t chpid) ret = OK; #endif /* CONFIG_SCHED_CHILD_STATUS */ - + errout_with_ints: irqrestore(flags); - return ret; + return ret; } #endif #endif /* CONFIG_SCHED_HAVE_PARENT */ diff --git a/nuttx/sched/task_restart.c b/nuttx/sched/task_restart.c index 27bc4fc47..e47c12822 100644 --- a/nuttx/sched/task_restart.c +++ b/nuttx/sched/task_restart.c @@ -145,7 +145,7 @@ int task_restart(pid_t pid) } /* Try to recover from any bad states */ - + task_recover((FAR struct tcb_s *)tcb); /* Kill any children of this thread */ @@ -155,7 +155,7 @@ int task_restart(pid_t pid) #endif /* Remove the TCB from whatever list it is in. At this point, the - * TCB should no longer be accessible to the system + * TCB should no longer be accessible to the system */ state = irqsave(); diff --git a/nuttx/sched/task_spawn.c b/nuttx/sched/task_spawn.c index 70f20e0b4..e14bb271d 100644 --- a/nuttx/sched/task_spawn.c +++ b/nuttx/sched/task_spawn.c @@ -288,7 +288,7 @@ static int task_spawn_proxy(int argc, FAR char *argv[]) * * entry - The child task's entry point (an address in memory) * - * file_actions - If 'file_actions' is a null pointer, then file + * file_actions - If 'file_actions' is a null pointer, then file * descriptors open in the calling process will remain open in the * child process (unless CONFIG_FDCLONE_STDIO is defined). If * 'file_actions' is not NULL, then the file descriptors open in the diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c index c552f278a..09d71cd26 100644 --- a/nuttx/sched/task_vfork.c +++ b/nuttx/sched/task_vfork.c @@ -75,7 +75,7 @@ * any data other than a variable of type pid_t used to store the return * value from vfork(), or returns from the function in which vfork() was * called, or calls any other function before successfully calling _exit() - * or one of the exec family of functions. + * or one of the exec family of functions. * * This functin provides one step in the overall vfork() sequence: It * Allocates and initializes the child task's TCB. The overall sequence is: @@ -198,7 +198,7 @@ errout_with_tcb: * any data other than a variable of type pid_t used to store the return * value from vfork(), or returns from the function in which vfork() was * called, or calls any other function before successfully calling _exit() - * or one of the exec family of functions. + * or one of the exec family of functions. * * This functin provides one step in the overall vfork() sequence: It * starts execution of the previously initialized TCB. The overall @@ -228,7 +228,7 @@ errout_with_tcb: * Upon successful completion, vfork() returns 0 to the child process and * returns the process ID of the child process to the parent process. * Otherwise, -1 is returned to the parent, no child process is created, - * and errno is set to indicate the error. + * and errno is set to indicate the error. * ****************************************************************************/ diff --git a/nuttx/sched/timer_create.c b/nuttx/sched/timer_create.c index edfb01080..8b620502a 100644 --- a/nuttx/sched/timer_create.c +++ b/nuttx/sched/timer_create.c @@ -90,7 +90,7 @@ static struct posix_timer_s *timer_allocate(void) irqrestore(flags); /* Did we get one? */ - + if (ret) { pt_flags = PT_FLAGS_PREALLOCATED; diff --git a/nuttx/sched/timer_getoverrun.c b/nuttx/sched/timer_getoverrun.c index 6d5a47465..f80499259 100644 --- a/nuttx/sched/timer_getoverrun.c +++ b/nuttx/sched/timer_getoverrun.c @@ -78,7 +78,7 @@ * timer_getoverrun() function will return the timer expiration overrun count for * the specified timer. The overrun count returned contains the number of extra * timer expirations that occurred between the time the signal was generated - * (queued) and when it was delivered or accepted, up to but not including an + * (queued) and when it was delivered or accepted, up to but not including an * implementation-defined maximum of DELAYTIMER_MAX. If the number of such * extra expirations is greater than or equal to DELAYTIMER_MAX, then the * overrun count will be set to DELAYTIMER_MAX. The value returned by diff --git a/nuttx/sched/wd_create.c b/nuttx/sched/wd_create.c index 61385b71a..2f9108335 100644 --- a/nuttx/sched/wd_create.c +++ b/nuttx/sched/wd_create.c @@ -74,7 +74,7 @@ /**************************************************************************** * Name: wd_create * - * Description: + * Description: * The wd_create function will create a watchdog by allocating it from the * list of free watchdogs. * diff --git a/nuttx/sched/wd_delete.c b/nuttx/sched/wd_delete.c index 16c123e13..ff9e0a1f0 100644 --- a/nuttx/sched/wd_delete.c +++ b/nuttx/sched/wd_delete.c @@ -74,7 +74,7 @@ /**************************************************************************** * Name: wd_delete * - * Description: + * Description: * The wd_delete function will deallocate a watchdog by returning it to * the free pool of watchdogs. The watchdog will be removed from the timer * queue if has been started.