From ebb35cf4af9c395e12f1a56a0d68655f50674168 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 1 Jan 2014 10:29:44 -0600 Subject: Make sure that the Z16F build still builds and runs --- nuttx/configs/pcduino-a10/README.txt | 30 +++ nuttx/configs/z16f2800100zcog/ostest/README.txt | 35 ++- nuttx/configs/z16f2800100zcog/ostest/defconfig | 172 ++++++++++++--- nuttx/configs/z16f2800100zcog/ostest/ostest.zdsbak | 238 +++++++++++++++++++++ .../configs/z16f2800100zcog/ostest/ostest.zfpproj | 2 +- nuttx/include/nuttx/sched.h | 2 +- nuttx/include/sys/types.h | 2 +- nuttx/sched/task_setup.c | 24 +-- 8 files changed, 460 insertions(+), 45 deletions(-) create mode 100755 nuttx/configs/z16f2800100zcog/ostest/ostest.zdsbak diff --git a/nuttx/configs/pcduino-a10/README.txt b/nuttx/configs/pcduino-a10/README.txt index 28c51a0f3..f39f3eecd 100644 --- a/nuttx/configs/pcduino-a10/README.txt +++ b/nuttx/configs/pcduino-a10/README.txt @@ -101,6 +101,7 @@ Contents - Serial Console - LEDs - Buttons + - JTAG - Booting NuttX from an SD card pcDuino v1 Connectors @@ -250,6 +251,35 @@ Buttons SW4 Key_Home LCD1_D18/ATAD14/KP_OUT0/SMC_SLK/EINT18/CSI1_D18/PH18 SW5 Key_Menu LCD1_D19/ATAD15/KP_OUT1/SMC_SDA/EINT19/CSI1_D19/PH19 +JTAG +==== + + A. I didn't get success testing J-Link with pcDuino, it is reading TDI + always as 1. + + I think the main problem is because pcDuino JTAG doesn't have RESET + (no trst or srst). I tried to connect the JTAG reset to Power_Reset + of pcDuino, but it didn't work. + + B. Notice that the OlinuxIno JTAG does have a reset line called RESET_N. + But it is nothing special. It just connects to the RESET# pin C14 on + the A10. The pcDuino also brings out the RESET# on several connectors. + + So it seems like you could get the reset line if you need it, just not + from the set of JTAG pads. + + A. I discovered the issue in the JTAG, it was not working because + JTAG_SEL was not tied to GND. + + I compared the Olimex schematic with pcDuino and noticed there is a + R64 resister that is not placed in the board. + + It was a little bit difficult to find this resistor, because it is + "hidden" among the capacitors in the bottom of the board. + + After short circuiting the resistor PADs the JTAG started to work, + well, JLinkExe now recognize it, but OpenOCD is not working yet. + Booting NuttX from an SD card ============================= diff --git a/nuttx/configs/z16f2800100zcog/ostest/README.txt b/nuttx/configs/z16f2800100zcog/ostest/README.txt index 214c3a9f1..ad4a1b1cd 100644 --- a/nuttx/configs/z16f2800100zcog/ostest/README.txt +++ b/nuttx/configs/z16f2800100zcog/ostest/README.txt @@ -1,12 +1,37 @@ README.txt ^^^^^^^^^^ -ostest.zfpproj is a simple ZDS-II project that will allow you - to use the ZDS-II debugger. Before using, copy the following - files from the toplevel directory: +OSTEST Project +-------------- + +ostest.zfpproj is a simple ZDS II - ZNEO 5.0.1 project that will allow you + to use the ZDS-II debugger. Before using, copy the following files from + the toplevel directory: - nuttx.hex, nuttx.map, nuttx.lod + nuttx.hex, nuttx.map, nuttx.lod to this directory as: - ostest.hex, ostest.map, ostest.lod + ostest.hex, ostest.map, ostest.lod + +ostest.zdzbak is a project file for an older ZDS-II 4.0 version (There is no + difference in the files other than for some versioning information at the + top). + +Loading and Executing Code +-------------------------- + +1. Copy the files to this directory as described above +2. Connect the ZiLOG XTools USB debugger. +3. Install the USB driver from the ZDS-II device_drivers directory +4. Start ZDS-II and load the ostest.zfpproj project +5. In the debug tab, connect to the debugger +6. In the debug tab, load code, reset, and go + +Hmmm... it appears that the code does not run if started by a hardware reset. +It runs only when started via the debugger. What is up with that? + +Console Output +-------------- + +OS test results will be provided on the serial console at 57600 8N1 baud. diff --git a/nuttx/configs/z16f2800100zcog/ostest/defconfig b/nuttx/configs/z16f2800100zcog/ostest/defconfig index 73cc42e40..7ad42d9f2 100644 --- a/nuttx/configs/z16f2800100zcog/ostest/defconfig +++ b/nuttx/configs/z16f2800100zcog/ostest/defconfig @@ -43,8 +43,9 @@ CONFIG_WINDOWS_CYGWIN=y # Debug Options # CONFIG_DEBUG=y +# CONFIG_ARCH_HAVE_STACKCHECK is not set +# CONFIG_ARCH_HAVE_HEAPCHECK is not set # CONFIG_DEBUG_VERBOSE is not set -# CONFIG_SYSLOG_ENABLE is not set # # Subsystem Debug Options @@ -55,13 +56,17 @@ CONFIG_DEBUG=y # CONFIG_DEBUG_LIB is not set # CONFIG_DEBUG_BINFMT is not set # CONFIG_DEBUG_GRAPHICS is not set +# CONFIG_DEBUG_IRQ is not set # # Driver Debug Options # +# CONFIG_DEBUG_LEDS is not set # CONFIG_DEBUG_ANALOG is not set -# CONFIG_DEBUG_DMA is not set +# CONFIG_DEBUG_GPIO is not set +# CONFIG_DEBUG_AUDIO is not set # CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_DEBUG_NOOPT is not set # # System Type @@ -79,7 +84,6 @@ CONFIG_ARCH_Z16=y # CONFIG_ARCH_Z80 is not set CONFIG_ARCH="z16" CONFIG_ARCH_CHIP="z16f" -CONFIG_BOARD_LOOPSPERMSEC=1250 # # Z16 Configuration Options @@ -104,16 +108,29 @@ CONFIG_Z16F_UART1=y # Architecture Options # # CONFIG_ARCH_NOINTC is not set +# CONFIG_ARCH_VECNOTIRQ is not set # CONFIG_ARCH_DMA is not set +CONFIG_ARCH_HAVE_IRQPRIO=y +# CONFIG_CUSTOM_STACK is not set +# CONFIG_ADDRENV is not set +# CONFIG_ARCH_HAVE_VFORK is not set CONFIG_ARCH_IRQPRIO=y # CONFIG_ARCH_STACKDUMP is not set CONFIG_ENDIAN_BIG=y +# CONFIG_ARCH_HAVE_RAMFUNCS is not set +# CONFIG_ARCH_HAVE_RAMVECTORS is not set # # Board Settings # -CONFIG_RAM_START= -CONFIG_RAM_SIZE=65536 +CONFIG_BOARD_LOOPSPERMSEC=1250 +# CONFIG_ARCH_CALIBRATION is not set + +# +# Interrupt options +# +# CONFIG_ARCH_HAVE_INTERRUPTSTACK is not set +# CONFIG_ARCH_HAVE_HIPRI_INTERRUPT is not set # # Boot options @@ -124,6 +141,12 @@ CONFIG_BOOT_RUNFROMFLASH=y # CONFIG_BOOT_RUNFROMSDRAM is not set # CONFIG_BOOT_COPYTORAM is not set +# +# Boot Memory Configuration +# +CONFIG_RAM_START=0x0 +CONFIG_RAM_SIZE=65536 + # # Board Selection # @@ -144,10 +167,13 @@ CONFIG_ARCH_LEDS=y # # RTOS Features # +# CONFIG_BOARD_INITIALIZE is not set CONFIG_MSEC_PER_TICK=10 +# CONFIG_SYSTEM_TIME64 is not set CONFIG_RR_INTERVAL=200 # CONFIG_SCHED_INSTRUMENTATION is not set CONFIG_TASK_NAME_SIZE=0 +# CONFIG_SCHED_HAVE_PARENT is not set # CONFIG_JULIAN_TIME is not set CONFIG_START_YEAR=2012 CONFIG_START_MONTH=11 @@ -158,8 +184,8 @@ CONFIG_DEV_CONSOLE=y # CONFIG_FDCLONE_DISABLE is not set # CONFIG_FDCLONE_STDIO is not set CONFIG_SDCLONE_DISABLE=y -# CONFIG_SCHED_WORKQUEUE is not set # CONFIG_SCHED_WAITPID is not set +# CONFIG_SCHED_STARTHOOK is not set # CONFIG_SCHED_ATEXIT is not set # CONFIG_SCHED_ONEXIT is not set CONFIG_USER_ENTRYPOINT="ostest_main" @@ -169,9 +195,15 @@ CONFIG_DISABLE_OS_API=y # CONFIG_DISABLE_PTHREAD is not set # CONFIG_DISABLE_SIGNALS is not set # CONFIG_DISABLE_MQUEUE is not set -# CONFIG_DISABLE_MOUNTPOINT is not set # CONFIG_DISABLE_ENVIRON is not set -CONFIG_DISABLE_POLL=y + +# +# Signal Numbers +# +CONFIG_SIG_SIGUSR1=1 +CONFIG_SIG_SIGUSR2=2 +CONFIG_SIG_SIGALARM=3 +CONFIG_SIG_SIGCONDTIMEDOUT=16 # # Sizes of configurable things (0 disables) @@ -191,7 +223,6 @@ CONFIG_PREALLOC_TIMERS=4 # # Stack and heap information # -# CONFIG_CUSTOM_STACK is not set CONFIG_IDLETHREAD_STACKSIZE=4096 CONFIG_USERMAIN_STACKSIZE=4096 CONFIG_PTHREAD_STACK_MIN=256 @@ -200,17 +231,23 @@ CONFIG_PTHREAD_STACK_DEFAULT=4096 # # Device Drivers # +CONFIG_DISABLE_POLL=y CONFIG_DEV_NULL=y # CONFIG_DEV_ZERO is not set # CONFIG_LOOP is not set # CONFIG_RAMDISK is not set # CONFIG_CAN is not set +# CONFIG_ARCH_HAVE_PWM_PULSECOUNT is not set # CONFIG_PWM is not set +# CONFIG_ARCH_HAVE_I2CRESET is not set # CONFIG_I2C is not set # CONFIG_SPI is not set +# CONFIG_I2S is not set # CONFIG_RTC is not set # CONFIG_WATCHDOG is not set # CONFIG_ANALOG is not set +# CONFIG_AUDIO_DEVICES is not set +# CONFIG_VIDEO_DEVICES is not set # CONFIG_BCH is not set # CONFIG_INPUT is not set # CONFIG_LCD is not set @@ -226,8 +263,12 @@ CONFIG_DEV_LOWCONSOLE=y # CONFIG_16550_UART is not set CONFIG_ARCH_HAVE_UART0=y CONFIG_ARCH_HAVE_UART1=y + +# +# USART Configuration +# CONFIG_MCU_SERIAL=y -CONFIG_STANDARD_SERIAL=y +# CONFIG_SERIAL_TIOCSERGSTRUCT is not set CONFIG_UART0_SERIAL_CONSOLE=y # CONFIG_UART1_SERIAL_CONSOLE is not set # CONFIG_NO_SERIAL_CONSOLE is not set @@ -241,6 +282,8 @@ CONFIG_UART0_BAUD=57600 CONFIG_UART0_BITS=8 CONFIG_UART0_PARITY=0 CONFIG_UART0_2STOP=0 +# CONFIG_UART0_IFLOWCONTROL is not set +# CONFIG_UART0_OFLOWCONTROL is not set # # UART1 Configuration @@ -251,6 +294,10 @@ CONFIG_UART1_BAUD=57600 CONFIG_UART1_BITS=8 CONFIG_UART1_PARITY=0 CONFIG_UART1_2STOP=0 +# CONFIG_UART1_IFLOWCONTROL is not set +# CONFIG_UART1_OFLOWCONTROL is not set +# CONFIG_SERIAL_IFLOWCONTROL is not set +# CONFIG_SERIAL_OFLOWCONTROL is not set # CONFIG_USBDEV is not set # CONFIG_USBHOST is not set # CONFIG_WIRELESS is not set @@ -267,6 +314,8 @@ CONFIG_UART1_2STOP=0 # # Networking Support # +# CONFIG_ARCH_HAVE_NET is not set +# CONFIG_ARCH_HAVE_PHY is not set # CONFIG_NET is not set # @@ -276,14 +325,20 @@ CONFIG_UART1_2STOP=0 # # File system configuration # -# CONFIG_FS_FAT is not set +# CONFIG_DISABLE_MOUNTPOINT is not set +# CONFIG_FS_READABLE is not set +# CONFIG_FS_WRITABLE is not set # CONFIG_FS_RAMMAP is not set +# CONFIG_FS_FAT is not set # CONFIG_FS_NXFFS is not set # CONFIG_FS_ROMFS is not set +# CONFIG_FS_SMARTFS is not set +# CONFIG_FS_PROCFS is not set # # System Logging # +# CONFIG_SYSLOG_ENABLE is not set # CONFIG_SYSLOG is not set # @@ -294,6 +349,7 @@ CONFIG_UART1_2STOP=0 # # Memory Management # +# CONFIG_MM_MULTIHEAP is not set # CONFIG_MM_SMALL is not set CONFIG_MM_REGIONS=1 CONFIG_ARCH_HAVE_HEAP2=y @@ -301,17 +357,29 @@ CONFIG_HEAP2_BASE=0x00000000 CONFIG_HEAP2_SIZE=0 # CONFIG_GRAN is not set +# +# Audio Support +# +# CONFIG_AUDIO is not set + # # Binary Formats # # CONFIG_BINFMT_DISABLE is not set +# CONFIG_BINFMT_EXEPATH is not set # CONFIG_NXFLAT is not set # CONFIG_ELF is not set +# CONFIG_BUILTIN is not set +# CONFIG_PIC is not set # CONFIG_SYMTAB_ORDEREDBYNAME is not set # # Library Routines # + +# +# Standard C Library Options +# CONFIG_STDIO_BUFFER_SIZE=64 CONFIG_STDIO_LINEBUFFER=y CONFIG_NUNGET_CHARS=2 @@ -319,10 +387,14 @@ CONFIG_LIB_HOMEDIR="/" # CONFIG_LIBM is not set CONFIG_NOPRINTF_FIELDWIDTH=y # CONFIG_LIBC_FLOATINGPOINT is not set +CONFIG_LIB_RAND_ORDER=1 # CONFIG_EOL_IS_CR is not set # CONFIG_EOL_IS_LF is not set # CONFIG_EOL_IS_BOTH_CRLF is not set CONFIG_EOL_IS_EITHER_CRLF=y +# CONFIG_LIBC_EXECFUNCS is not set +CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024 +CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048 # CONFIG_LIBC_STRERROR is not set # CONFIG_LIBC_PERROR_STDOUT is not set CONFIG_ARCH_LOWPUTC=y @@ -330,9 +402,17 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512 # CONFIG_ARCH_ROMGETC is not set # CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set +# +# Non-standard Library Support +# +# CONFIG_SCHED_WORKQUEUE is not set +# CONFIG_LIB_KBDCODEC is not set +# CONFIG_LIB_SLCDCODEC is not set + # # Basic CXX Support # +# CONFIG_C99_BOOL8 is not set # CONFIG_HAVE_CXX is not set # @@ -340,17 +420,15 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512 # # -# Named Applications +# Built-In Applications # -# CONFIG_BUILTIN is not set # # Examples # # CONFIG_EXAMPLES_BUTTONS is not set # CONFIG_EXAMPLES_CAN is not set -# CONFIG_SYSTEM_CDCACM is not set -# CONFIG_SYSTEM_COMPOSITE is not set +# CONFIG_EXAMPLES_CONFIGDATA is not set # CONFIG_EXAMPLES_DHCPD is not set # CONFIG_EXAMPLES_ELF is not set # CONFIG_EXAMPLES_FTPC is not set @@ -359,12 +437,13 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512 # CONFIG_EXAMPLES_HELLOXX is not set # CONFIG_EXAMPLES_JSON is not set # CONFIG_EXAMPLES_HIDKBD is not set +# CONFIG_EXAMPLES_KEYPADTEST is not set # CONFIG_EXAMPLES_IGMP is not set # CONFIG_EXAMPLES_LCDRW is not set # CONFIG_EXAMPLES_MM is not set -# CONFIG_EXAMPLES_MOUNT is not set # CONFIG_EXAMPLES_MODBUS is not set -# CONFIG_EXAMPLES_NETTEST is not set +# CONFIG_EXAMPLES_MOUNT is not set +# CONFIG_EXAMPLES_NRF24L01TERM is not set # CONFIG_EXAMPLES_NSH is not set # CONFIG_EXAMPLES_NULL is not set # CONFIG_EXAMPLES_NX is not set @@ -384,11 +463,15 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # CONFIG_EXAMPLES_PASHELLO is not set # CONFIG_EXAMPLES_PIPE is not set # CONFIG_EXAMPLES_POLL is not set +# CONFIG_EXAMPLES_POSIXSPAWN is not set # CONFIG_EXAMPLES_QENCODER is not set # CONFIG_EXAMPLES_RGMP is not set # CONFIG_EXAMPLES_ROMFS is not set # CONFIG_EXAMPLES_SENDMAIL is not set # CONFIG_EXAMPLES_SERLOOP is not set +# CONFIG_EXAMPLES_SLCD is not set +# CONFIG_EXAMPLES_SMART is not set +# CONFIG_EXAMPLES_TCPECHO is not set # CONFIG_EXAMPLES_TELNETD is not set # CONFIG_EXAMPLES_THTTPD is not set # CONFIG_EXAMPLES_TIFF is not set @@ -396,14 +479,13 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # CONFIG_EXAMPLES_UDP is not set # CONFIG_EXAMPLES_UIP is not set # CONFIG_EXAMPLES_USBSERIAL is not set -# CONFIG_SYSTEM_USBMSC is not set # CONFIG_EXAMPLES_USBTERM is not set # CONFIG_EXAMPLES_WATCHDOG is not set -# CONFIG_EXAMPLES_WLAN is not set # -# Interpreters +# Graphics Support # +# CONFIG_TIFF is not set # # Interpreters @@ -433,11 +515,7 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # CONFIG_NETUTILS_WEBCLIENT is not set # -# ModBus -# - -# -# FreeModbus +# FreeModBus # # CONFIG_MODBUS is not set @@ -450,10 +528,23 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # NxWidgets/NxWM # +# +# Platform-specific Support +# +# CONFIG_PLATFORM_CONFIGDATA is not set + # # System NSH Add-Ons # +# +# USB CDC/ACM Device Commands +# + +# +# USB Composite Device Commands +# + # # Custom Free Memory Command # @@ -468,6 +559,20 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # # CONFIG_SYSTEM_INSTALL is not set +# +# FLASH Erase-all Command +# + +# +# NxPlayer media player library / command Line +# +# CONFIG_SYSTEM_NXPLAYER is not set + +# +# RAM test +# +# CONFIG_SYSTEM_RAMTEST is not set + # # readline() # @@ -492,3 +597,20 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10 # Sysinfo # # CONFIG_SYSTEM_SYSINFO is not set + +# +# USB Monitor +# + +# +# Stack Monitor +# + +# +# USB Mass Storage Device Commands +# + +# +# Zmodem Commands +# +# CONFIG_SYSTEM_ZMODEM is not set diff --git a/nuttx/configs/z16f2800100zcog/ostest/ostest.zdsbak b/nuttx/configs/z16f2800100zcog/ostest/ostest.zdsbak new file mode 100755 index 000000000..ade3d73d4 --- /dev/null +++ b/nuttx/configs/z16f2800100zcog/ostest/ostest.zdsbak @@ -0,0 +1,238 @@ + +Z16F2811AL + + + +..\..\..\nuttx.hex + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nuttx/configs/z16f2800100zcog/ostest/ostest.zfpproj b/nuttx/configs/z16f2800100zcog/ostest/ostest.zfpproj index ade3d73d4..7d4f731f9 100644 --- a/nuttx/configs/z16f2800100zcog/ostest/ostest.zfpproj +++ b/nuttx/configs/z16f2800100zcog/ostest/ostest.zfpproj @@ -1,4 +1,4 @@ - + Z16F2811AL diff --git a/nuttx/include/nuttx/sched.h b/nuttx/include/nuttx/sched.h index a5e62a55b..259e14f66 100644 --- a/nuttx/include/nuttx/sched.h +++ b/nuttx/include/nuttx/sched.h @@ -184,7 +184,7 @@ typedef enum tstate_e tstate_t; /* The following is the form of a thread start-up function */ -typedef void (*start_t)(void); +typedef CODE void (*start_t)(void); /* This is the entry point into the main thread of the task or into a created * pthread within the task. diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 38f091e8a..8a3f97d33 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -223,7 +223,7 @@ typedef int32_t suseconds_t; /* Task entry point */ -typedef int (*main_t)(int argc, char *argv[]); +typedef CODE int (*main_t)(int argc, char *argv[]); #endif diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c index 21a82586a..582b64a4a 100644 --- a/nuttx/sched/task_setup.c +++ b/nuttx/sched/task_setup.c @@ -305,8 +305,8 @@ static inline void task_dupdspace(FAR struct tcb_s *tcb) * Input Parameters: * tcb - Address of the new task's TCB * priority - Priority of the new task - * start - Thread startup rotuine - * entry - Thred user entry point + * start - Thread startup routine + * entry - Thread user entry point * ttype - Type of the new thread: task, pthread, or kernel thread * * Return Value: @@ -318,7 +318,7 @@ static inline void task_dupdspace(FAR struct tcb_s *tcb) ****************************************************************************/ static int thread_schedsetup(FAR struct tcb_s *tcb, int priority, - start_t start, FAR void *entry, uint8_t ttype) + start_t start, CODE void *entry, uint8_t ttype) { int ret; @@ -336,7 +336,7 @@ static int thread_schedsetup(FAR struct tcb_s *tcb, int priority, tcb->start = start; tcb->entry.main = (main_t)entry; - /* Save the thrad type. This setting will be needed in + /* Save the thread type. This setting will be needed in * up_initial_state() is called. */ @@ -456,8 +456,8 @@ static int task_tcbargsetup(FAR struct task_tcb_s *tcb, #endif /* CONFIG_TASK_NAME_SIZE */ /* For tasks, the life of the argument must be as long as the life of the - * task and the arguments must be strings. So for tasks, we have to to - * dup the strings. + * task and the arguments must be strings. So for tasks, we have to dup + * the strings. * * The first NULL argument terminates the list of arguments. The argv * pointer may be NULL if no parameters are passed. @@ -628,7 +628,7 @@ static int task_stackargsetup(FAR struct task_tcb_s *tcb, * Input Parameters: * tcb - Address of the new task's TCB * priority - Priority of the new task - * start - Startup function (probably task_start()) + * start - Start-up function (probably task_start()) * main - Application start point of the new task * ttype - Type of the new thread: task or kernel thread * @@ -648,7 +648,7 @@ int task_schedsetup(FAR struct task_tcb_s *tcb, int priority, start_t start, /* Perform common thread setup */ ret = thread_schedsetup((FAR struct tcb_s *)tcb, priority, start, - (FAR void *)main, ttype); + (CODE void *)main, ttype); if (ret == OK) { /* Save task restart priority */ @@ -671,7 +671,7 @@ int task_schedsetup(FAR struct task_tcb_s *tcb, int priority, start_t start, * Input Parameters: * tcb - Address of the new task's TCB * priority - Priority of the new task - * start - Startup function (probably pthread_start()) + * start - Start-up function (probably pthread_start()) * entry - Entry point of the new pthread * ttype - Type of the new thread: task, pthread, or kernel thread * @@ -690,7 +690,7 @@ int pthread_schedsetup(FAR struct pthread_tcb_s *tcb, int priority, start_t star /* Perform common thread setup */ return thread_schedsetup((FAR struct tcb_s *)tcb, priority, start, - (FAR void *)entry, TCB_FLAG_TTYPE_PTHREAD); + (CODE void *)entry, TCB_FLAG_TTYPE_PTHREAD); } #endif @@ -706,7 +706,7 @@ int pthread_schedsetup(FAR struct pthread_tcb_s *tcb, int priority, start_t star * structure in the TCB, the arguments are cloned via strdup. * * In the kernel build case, the argv[] array and all strings are copied - * to the task's stack. This is done because the TCB (and kernal allocated + * to the task's stack. This is done because the TCB (and kernel allocated * strings) are only accessible in kernel-mode. Data on the stack, on the * other hand, is guaranteed to be accessible no matter what mode the * task runs in. @@ -737,7 +737,7 @@ int task_argsetup(FAR struct task_tcb_s *tcb, FAR const char *name, #if !defined(CONFIG_CUSTOM_STACK) && defined(CONFIG_NUTTX_KERNEL) /* In the kernel build case, the argv[] array and all strings are copied - * to the task's stack. This is done because the TCB (and kernal allocated + * to the task's stack. This is done because the TCB (and kernel allocated * strings) are only accessible in kernel-mode. Data on the stack, on the * other hand, is guaranteed to be accessible no matter what mode the * task runs in. -- cgit v1.2.3