mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Fix typos in comments and documentation.
This commit is contained in:
committed by
patacongo
parent
430a2178fb
commit
a5e643b0cd
@@ -1987,7 +1987,7 @@
|
||||
There is no real substance in the initial check-in; only the directory
|
||||
structure and skeleton files (Code complete on 8/15/11).
|
||||
* arch/arm/include/armv7-m, arch/arm/src/armv7-m, etc.: Rename all cortexm3
|
||||
directories and files to armv7-m; Change name of of all CORTEXM3 constants
|
||||
directories and files to armv7-m; Change name of all CORTEXM3 constants
|
||||
to ARMV7M. This is a major namespace change needed to cleanly support the
|
||||
ARM Cortex-M4 which is also in the ARMv7 M Series (specifically, ARMv7E-M).
|
||||
* sched/sig_initialize.c, sig_received.c, and mq_waitirq.c. Fixed several
|
||||
@@ -2566,7 +2566,7 @@
|
||||
* configs/pic32-starterkit/nsh2: Add a PIC32 Ethernet Starter Kit NSH
|
||||
configuration that has no serial console; all interaction is done via
|
||||
Telnet.
|
||||
* net/netdev_sem.c: Correct a deadlock condition by making a seamphore
|
||||
* net/netdev_sem.c: Correct a deadlock condition by making a semaphore
|
||||
recursive. To my knowledge this deadlock only occurs when running the
|
||||
NSH command ifconfig over Telnet. In that case the function netdev_foreach
|
||||
takes the network device semaphore, but so does the telnet logic causing
|
||||
@@ -2822,7 +2822,7 @@
|
||||
to done in that case.
|
||||
* arch/arc/src/stm32_otgfsdev.c: Fixed some status settings in queuing of write
|
||||
messages. Added a "hack" to work around missing TxFIFO empty interrupts. The
|
||||
hack is basically to poll for space in the TxFIFO instead of of setting up
|
||||
hack is basically to poll for space in the TxFIFO instead of setting up
|
||||
the interrupt.
|
||||
* arch/arm/src/stm32/stm32f2* and chip/stm32f2*: Update all STM32 F2 file so
|
||||
that they are equivalent to F4 files. This is kind of a maintenance nightmare.
|
||||
@@ -7602,7 +7602,7 @@
|
||||
* include/unistd.h: Some POSIX_* and _POSIX_* macros are defined
|
||||
without value, whereas (as far as I can tell) the newer versions
|
||||
of the standard require them to have the value corresponding to
|
||||
the standard version implemented, like 200809L. Are the any plans
|
||||
the standard version implemented, like 200809L. Are there any plans
|
||||
to clean this up? For now I've put together a quick patch that
|
||||
defines those macros to 1, consistent with the rest of unistd.h.
|
||||
From Kosma Moczek (2014-6-30)
|
||||
@@ -9217,7 +9217,7 @@
|
||||
but the received characters never arrive in the reader thread.
|
||||
The problem was fixed by re-initializing the semaphores on the last
|
||||
uart_close() on the device. From Harald Welte (2014-12-13).
|
||||
* sched/semaphore/sem_recover.c, Make.defs, seamphore.c,
|
||||
* sched/semaphore/sem_recover.c, Make.defs, semaphore.c,
|
||||
sched/wdog/wd_recover.c, Make.defs, wdog.h, sched/task/task_recover.c:
|
||||
Add logic to clean up after task_delete() or pthread_cancel() if the
|
||||
task happens to be waiting on a semaphore when it is cancelled
|
||||
@@ -13393,7 +13393,7 @@
|
||||
often half-works and does weird things...). From Angus Gratton
|
||||
(2016-12-14).
|
||||
* Xtensa ESP32: Add missing ENTRY() and RET() macros in C callable
|
||||
assembly language. At one time I though the that the ESP32 support the
|
||||
assembly language. At one time I thought that the ESP32 supported the
|
||||
CALL0 ABI. I was mistaken so there may be a few more like this
|
||||
(2016-12-14).
|
||||
* Xtensa ESP32: Fix a couple of bugs associated with handling of CPU
|
||||
@@ -22262,7 +22262,7 @@
|
||||
* arch/arm/src/stm32: Add support for DMA v1 CSELR support. From
|
||||
Mateusz Szafoni (2018-12-19).
|
||||
* Brings in initial WIP support for the STML0. This initial commit is
|
||||
unverified and, hence it it marked "EXPERIMENTAL." From Mateusz
|
||||
unverified and, hence it is marked "EXPERIMENTAL." From Mateusz
|
||||
Szafoni (2018-12-19).
|
||||
* configs/: Hook new STM32L0 boards into the configuration system.
|
||||
nucleo boards use as default ST LINK MCO as clock input from MCU and
|
||||
@@ -22284,7 +22284,7 @@
|
||||
* mm/mm_heap/mm_sem.c: This is a candidate replacement for the reverted
|
||||
change 91aa26774b291fa553f701ce5222e56a6156c323. This change adds a
|
||||
check to mm_trysemaphore() (the root implementation of both
|
||||
kmm_trysemaphore() and umm_trysemaphore()). It checks if the that task
|
||||
kmm_trysemaphore() and umm_trysemaphore()). It checks if the task
|
||||
that is apparently executing is marked as RUNNING. If not, how could
|
||||
the non-running task be trying to get the MM semaphore? I think only
|
||||
in the exact scenario that Eunbong Song has described. So I think the
|
||||
@@ -25986,7 +25986,7 @@
|
||||
conditional logic. Precedence of operators problem.
|
||||
- arch/arm/src/s32k1xx/s32k1xx_clockconfig.c: Fix another problem
|
||||
related to whether a divider is pre-decremented or not. The answer
|
||||
must be the divder values are never pre-decremented. They are
|
||||
must be the divider values are never pre-decremented. They are
|
||||
decremented just before being written to hardware.
|
||||
- arch/arm/src/s32k1xx/s32k1xx_periphclocks.c and related files: Fix
|
||||
yet another case of confusion between pre-decremented and
|
||||
|
||||
@@ -2477,7 +2477,7 @@ mkdir <path>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
Create the directory at <code><path></code>.
|
||||
All components of of <code><path></code> except the final directory name must exist on a mounted file
|
||||
All components of <code><path></code> except the final directory name must exist on a mounted file
|
||||
system; the final directory must not.
|
||||
</p>
|
||||
<p>
|
||||
@@ -4366,7 +4366,7 @@ set FOOBAR ABC_${FOO}_${BAR}
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_NSH_USBCONSOLE</code>.
|
||||
If defined, then the an arbitrary USB device may be used to as the NSH console.
|
||||
If defined, then an arbitrary USB device may be used to as the NSH console.
|
||||
In this case, <code>CONFIG_NSH_USBCONDEV</code> must be defined to indicate which USB device to use as the console.
|
||||
The advantage of using a device other that <code>/dev/console</code> is that normal debug output can then use <code>/dev/console</code> while NSH uses <code>CONFIG_NSH_USBCONDEV</code>.
|
||||
<p>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<dt><code>g_pftcb</code></dt>
|
||||
<dd>A variable that holds a reference to the TCB of the thread that is currently be re-filled.</dd>
|
||||
<dt><code>g_pgworker</code></dt>
|
||||
<dd>The <i>process</i> ID of of the thread that will perform the page fills.</dd>
|
||||
<dd>The <i>process</i> ID of the thread that will perform the page fills.</dd>
|
||||
<dt><code>pg_callback()</code></dt>
|
||||
<dd>The callback function that is invoked from a driver when the fill is complete.</dd>
|
||||
<dt><code>pg_miss()</code></dt>
|
||||
@@ -190,7 +190,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<b><code>g_pgworker</code></b>.
|
||||
The <i>process</i> ID of of the thread that will perform the page fills
|
||||
The <i>process</i> ID of the thread that will perform the page fills
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
@@ -2069,11 +2069,10 @@ The specific environmental definitions are unique for each board but should incl
|
||||
<p><b>Input Parameters:</b></p>
|
||||
<ul>
|
||||
<li><code>tcb</code>: Refers to a task in the ready-to-run list (normally
|
||||
the task at the head of the list). It most be
|
||||
stopped, its context saved and moved into one of the
|
||||
waiting task lists. It it was the task at the head
|
||||
of the ready-to-run list, then a context to the new
|
||||
ready to run task must be performed.
|
||||
the task at the head of the list). It must be stopped, its context saved
|
||||
and moved into one of the waiting task lists. If it was the task at the
|
||||
head of the ready-to-run list, then a context switch to the new ready to
|
||||
run task must be performed.
|
||||
</li>
|
||||
<li><code>task_state</code>: Specifies which waiting task list should be
|
||||
hold the blocked task TCB.
|
||||
@@ -6742,7 +6741,7 @@ int syslog_initialize(void);
|
||||
</li>
|
||||
<li>
|
||||
<p><b>Serialization Buffer</b>.
|
||||
A final option is the use the an <i>interrupt buffer</i> to buffer the interrupt level SYSLOG output. In this case:
|
||||
A final option is the use of an <i>interrupt buffer</i> to buffer the interrupt level SYSLOG output. In this case:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ All Users Matter
|
||||
Others?
|
||||
o No changes to build system should limit use of NuttX by any user.
|
||||
o Simplifying things for one user does not justify excluding another user.
|
||||
o We should seek to expand the the NuttX user base, not to limit it for
|
||||
o We should seek to expand the NuttX user base, not to limit it for
|
||||
reasons of preference or priority.
|
||||
o We must resist the pull to make NuttX into a Linux-only, GCC-only, and
|
||||
ARM-only solution.
|
||||
|
||||
+1
-1
@@ -9053,7 +9053,7 @@ detailed bugfix information):
|
||||
to the specific pthread and no other.
|
||||
- uint32_t callbacks: Update the type passed to watchdog timer
|
||||
handlers. Using uint32_t is a problem for 64-bit machines because
|
||||
it it too small to pass a pointer. uintptr_t is a more appropriate
|
||||
it is too small to pass a pointer. uintptr_t is a more appropriate
|
||||
type.
|
||||
- mq_timedreceive(): move the location where the errno value is set;
|
||||
the ETIMEDOUT errno setting was being overwritten by subsequent
|
||||
|
||||
@@ -1033,7 +1033,7 @@ o Kernel/Protected Build
|
||||
tls_info_s. Then the PID could be obtained without a system call.
|
||||
TLS is not very useful in the FLAT build, however. TLS works by
|
||||
putting per-thread data at the bottom of an aligned stack. The
|
||||
current stack pointer is the ANDed with the alignment mask to
|
||||
current stack pointer is then ANDed with the alignment mask to
|
||||
obtain the per-thread data address.
|
||||
|
||||
There are problems with this in the FLAT and PROTECTED builds:
|
||||
|
||||
@@ -58,19 +58,18 @@
|
||||
* Name: up_block_task
|
||||
*
|
||||
* Description:
|
||||
* The currently executing task at the head of
|
||||
* the ready to run list must be stopped. Save its context
|
||||
* and move it to the inactive list specified by task_state.
|
||||
* The currently executing task at the head of the ready to run list must
|
||||
* be stopped. Save its context and move it to the inactive list
|
||||
* specified by task_state.
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb: Refers to a task in the ready-to-run list (normally
|
||||
* the task at the head of the list). It most be
|
||||
* stopped, its context saved and moved into one of the
|
||||
* waiting task lists. It it was the task at the head
|
||||
* of the ready-to-run list, then a context to the new
|
||||
* tcb: Refers to a task in the ready-to-run list (normally the task at
|
||||
* the head of the list). It must be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. If it was the task at the
|
||||
* head of the ready-to-run list, then a context switch to the new
|
||||
* ready to run task must be performed.
|
||||
* task_state: Specifies which waiting task list should be
|
||||
* hold the blocked task TCB.
|
||||
* task_state: Specifies which waiting task list should hold the blocked
|
||||
* task TCB.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -84,11 +83,10 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) &&
|
||||
(tcb->task_state <= LAST_READY_TO_RUN_STATE));
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list. If we
|
||||
* are blocking the task at the head of the task list (the
|
||||
* most likely case), then a context switch to the next
|
||||
* ready-to-run task is needed. In this case, it should
|
||||
* also be true that rtcb == tcb.
|
||||
/* Remove the tcb task from the ready-to-run list. If we are blocking the
|
||||
* task at the head of the task list (the most likely case), then a
|
||||
* context switch to the next ready-to-run task is needed. In this case,
|
||||
* it should also be true that rtcb == tcb.
|
||||
*/
|
||||
|
||||
switch_needed = sched_removereadytorun(tcb);
|
||||
|
||||
@@ -589,7 +589,7 @@ __start:
|
||||
bcc .Lbssinit
|
||||
|
||||
/* If the .data section is in a separate, uninitialized address space,
|
||||
* then we will also need to copy the initial values of of the .data
|
||||
* then we will also need to copy the initial values of the .data
|
||||
* section from the .text region into that .data region. This would
|
||||
* be the case if we are executing from FLASH and the .data section
|
||||
* lies in a different physical address region OR if we are support
|
||||
|
||||
@@ -58,17 +58,17 @@
|
||||
*
|
||||
* Description:
|
||||
* The currently executing task at the head of the ready to run list must
|
||||
* be stopped. Save its context and move it to the inactive list specified
|
||||
* by task_state.
|
||||
* be stopped. Save its context and move it to the inactive list
|
||||
* specified by task_state.
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb: Refers to a task in the ready-to-run list (normally the task at
|
||||
* the head of the list). It most be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. It it was the task at the
|
||||
* head of the ready-to-run list, then a context to the new ready to run
|
||||
* task must be performed.
|
||||
* task_state: Specifies which waiting task list should be hold the
|
||||
* blocked task TCB.
|
||||
* the head of the list). It must be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. If it was the task at the
|
||||
* head of the ready-to-run list, then a context switch to the new
|
||||
* ready to run task must be performed.
|
||||
* task_state: Specifies which waiting task list should hold the blocked
|
||||
* task TCB.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -82,11 +82,10 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) &&
|
||||
(tcb->task_state <= LAST_READY_TO_RUN_STATE));
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list. If we
|
||||
* are blocking the task at the head of the task list (the
|
||||
* most likely case), then a context switch to the next
|
||||
* ready-to-run task is needed. In this case, it should
|
||||
* also be true that rtcb == tcb.
|
||||
/* Remove the tcb task from the ready-to-run list. If we are blocking the
|
||||
* task at the head of the task list (the most likely case), then a
|
||||
* context switch to the next ready-to-run task is needed. In this case,
|
||||
* it should also be true that rtcb == tcb.
|
||||
*/
|
||||
|
||||
switch_needed = sched_removereadytorun(tcb);
|
||||
|
||||
@@ -188,7 +188,7 @@ static int up_addrenv_initdata(uintptr_t l2table)
|
||||
up_invalidate_dcache((uintptr_t)virtptr,
|
||||
(uintptr_t)virtptr + sizeof(uint32_t));
|
||||
|
||||
/* Get the physical address of the first page of of .bss/.data */
|
||||
/* Get the physical address of the first page of .bss/.data */
|
||||
|
||||
paddr = (uintptr_t)(*virtptr) & PTE_SMALL_PADDR_MASK;
|
||||
DEBUGASSERT(paddr);
|
||||
|
||||
@@ -58,19 +58,18 @@
|
||||
* Name: up_block_task
|
||||
*
|
||||
* Description:
|
||||
* The currently executing task at the head of
|
||||
* the ready to run list must be stopped. Save its context
|
||||
* and move it to the inactive list specified by task_state.
|
||||
* The currently executing task at the head of the ready to run list must
|
||||
* be stopped. Save its context and move it to the inactive list
|
||||
* specified by task_state.
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb: Refers to a task in the ready-to-run list (normally
|
||||
* the task at the head of the list). It most be
|
||||
* stopped, its context saved and moved into one of the
|
||||
* waiting task lists. It it was the task at the head
|
||||
* of the ready-to-run list, then a context to the new
|
||||
* tcb: Refers to a task in the ready-to-run list (normally the task at
|
||||
* the head of the list). It must be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. If it was the task at the
|
||||
* head of the ready-to-run list, then a context switch to the new
|
||||
* ready to run task must be performed.
|
||||
* task_state: Specifies which waiting task list should be
|
||||
* hold the blocked task TCB.
|
||||
* task_state: Specifies which waiting task list should hold the blocked
|
||||
* task TCB.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -84,11 +83,10 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) &&
|
||||
(tcb->task_state <= LAST_READY_TO_RUN_STATE));
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list. If we
|
||||
* are blocking the task at the head of the task list (the
|
||||
* most likely case), then a context switch to the next
|
||||
* ready-to-run task is needed. In this case, it should
|
||||
* also be true that rtcb == tcb.
|
||||
/* Remove the tcb task from the ready-to-run list. If we are blocking the
|
||||
* task at the head of the task list (the most likely case), then a
|
||||
* context switch to the next ready-to-run task is needed. In this case,
|
||||
* it should also be true that rtcb == tcb.
|
||||
*/
|
||||
|
||||
switch_needed = sched_removereadytorun(tcb);
|
||||
|
||||
@@ -694,7 +694,7 @@ arm_data_initialize:
|
||||
|
||||
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
||||
/* If the .data section is in a separate, uninitialized address space,
|
||||
* then we will also need to copy the initial values of of the .data
|
||||
* then we will also need to copy the initial values of the .data
|
||||
* section from the .text region into that .data region. This would
|
||||
* be the case if we are executing from FLASH and the .data section
|
||||
* lies in a different physical address region OR if we are support
|
||||
|
||||
@@ -725,7 +725,7 @@ arm_data_initialize:
|
||||
|
||||
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
||||
/* If the .data section is in a separate, uninitialized address space,
|
||||
* then we will also need to copy the initial values of of the .data
|
||||
* then we will also need to copy the initial values of the .data
|
||||
* section from the .text region into that .data region. This would
|
||||
* be the case if we are executing from FLASH and the .data section
|
||||
* lies in a different physical address region OR if we are support
|
||||
|
||||
@@ -57,19 +57,18 @@
|
||||
* Name: up_block_task
|
||||
*
|
||||
* Description:
|
||||
* The currently executing task at the head of
|
||||
* the ready to run list must be stopped. Save its context
|
||||
* and move it to the inactive list specified by task_state.
|
||||
* The currently executing task at the head of the ready to run list must
|
||||
* be stopped. Save its context and move it to the inactive list
|
||||
* specified by task_state.
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb: Refers to a task in the ready-to-run list (normally
|
||||
* the task at the head of the list). It most be
|
||||
* stopped, its context saved and moved into one of the
|
||||
* waiting task lists. It it was the task at the head
|
||||
* of the ready-to-run list, then a context to the new
|
||||
* tcb: Refers to a task in the ready-to-run list (normally the task at
|
||||
* the head of the list). It must be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. If it was the task at the
|
||||
* head of the ready-to-run list, then a context switch to the new
|
||||
* ready to run task must be performed.
|
||||
* task_state: Specifies which waiting task list should be
|
||||
* hold the blocked task TCB.
|
||||
* task_state: Specifies which waiting task list should hold the blocked
|
||||
* task TCB.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -83,11 +82,10 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) &&
|
||||
(tcb->task_state <= LAST_READY_TO_RUN_STATE));
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list. If we
|
||||
* are blocking the task at the head of the task list (the
|
||||
* most likely case), then a context switch to the next
|
||||
* ready-to-run task is needed. In this case, it should
|
||||
* also be true that rtcb == tcb.
|
||||
/* Remove the tcb task from the ready-to-run list. If we are blocking the
|
||||
* task at the head of the task list (the most likely case), then a
|
||||
* context switch to the next ready-to-run task is needed. In this case,
|
||||
* it should also be true that rtcb == tcb.
|
||||
*/
|
||||
|
||||
switch_needed = sched_removereadytorun(tcb);
|
||||
|
||||
@@ -58,19 +58,18 @@
|
||||
* Name: up_block_task
|
||||
*
|
||||
* Description:
|
||||
* The currently executing task at the head of
|
||||
* the ready to run list must be stopped. Save its context
|
||||
* and move it to the inactive list specified by task_state.
|
||||
* The currently executing task at the head of the ready to run list must
|
||||
* be stopped. Save its context and move it to the inactive list
|
||||
* specified by task_state.
|
||||
*
|
||||
* Input Parameters:
|
||||
* tcb: Refers to a task in the ready-to-run list (normally
|
||||
* the task at the head of the list). It most be
|
||||
* stopped, its context saved and moved into one of the
|
||||
* waiting task lists. It it was the task at the head
|
||||
* of the ready-to-run list, then a context to the new
|
||||
* tcb: Refers to a task in the ready-to-run list (normally the task at
|
||||
* the head of the list). It must be stopped, its context saved and
|
||||
* moved into one of the waiting task lists. If it was the task at the
|
||||
* head of the ready-to-run list, then a context switch to the new
|
||||
* ready to run task must be performed.
|
||||
* task_state: Specifies which waiting task list should be
|
||||
* hold the blocked task TCB.
|
||||
* task_state: Specifies which waiting task list should hold the blocked
|
||||
* task TCB.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -84,11 +83,10 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) &&
|
||||
(tcb->task_state <= LAST_READY_TO_RUN_STATE));
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list. If we
|
||||
* are blocking the task at the head of the task list (the
|
||||
* most likely case), then a context switch to the next
|
||||
* ready-to-run task is needed. In this case, it should
|
||||
* also be true that rtcb == tcb.
|
||||
/* Remove the tcb task from the ready-to-run list. If we are blocking the
|
||||
* task at the head of the task list (the most likely case), then a
|
||||
* context switch to the next ready-to-run task is needed. In this case,
|
||||
* it should also be true that rtcb == tcb.
|
||||
*/
|
||||
|
||||
switch_needed = sched_removereadytorun(tcb);
|
||||
|
||||
@@ -423,7 +423,7 @@ arm_data_initialize:
|
||||
|
||||
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
||||
/* If the .data section is in a separate, uninitialized address space,
|
||||
* then we will also need to copy the initial values of of the .data
|
||||
* then we will also need to copy the initial values of the .data
|
||||
* section from the .text region into that .data region. This would
|
||||
* be the case if we are executing from FLASH and the .data section
|
||||
* lies in a different physical address region OR if we are support
|
||||
|
||||
@@ -328,7 +328,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/* Bit encoded input parameter to cxd56_channel(). These encodings must fit
|
||||
* in the an unsigned integer of type dma_config_t.
|
||||
* in an unsigned integer of type dma_config_t.
|
||||
*
|
||||
* Current limitations/assumptions in the encoding:
|
||||
*
|
||||
|
||||
@@ -1753,7 +1753,7 @@ static void dm320_epreset(unsigned int index)
|
||||
static inline void dm320_epinitialize(struct dm320_usbdev_s *priv)
|
||||
{
|
||||
uint16_t offset; /* Full USB buffer offset */
|
||||
uint8_t addrhi; /* MS bytes of ofset */
|
||||
uint8_t addrhi; /* MS bytes of offset */
|
||||
uint8_t addrlo; /* LS bytes of offset */
|
||||
int i;
|
||||
|
||||
@@ -1765,7 +1765,7 @@ static inline void dm320_epinitialize(struct dm320_usbdev_s *priv)
|
||||
dm320_putreg8(USB_CSR2_FLFIFO, DM320_USB_CSR2);
|
||||
dm320_putreg8(USB_CSR2_FLFIFO, DM320_USB_CSR2);
|
||||
|
||||
/* EP0 Fifo size/address (ofset == 0) */
|
||||
/* EP0 Fifo size/address (offset == 0) */
|
||||
|
||||
dm320_putreg8(0x00, DM320_USB_TXFIFO1);
|
||||
dm320_putreg8(0x00, DM320_USB_RXFIFO1);
|
||||
|
||||
@@ -343,7 +343,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -773,7 +773,7 @@ void weak_function up_dma_initialize(void)
|
||||
|
||||
nxsem_setprotocol(&g_edma.dsem, SEM_PRIO_NONE);
|
||||
|
||||
/* Initialize the list of of free TCDs from the pool of pre-allocated TCDs. */
|
||||
/* Initialize the list of free TCDs from the pool of pre-allocated TCDs. */
|
||||
|
||||
imxrt_tcd_initialize();
|
||||
#endif
|
||||
|
||||
@@ -2126,7 +2126,7 @@ static int imxrt_async_setup(struct imxrt_rhport_s *rhport,
|
||||
toggle = (uint32_t)epinfo->toggle << QTD_TOKEN_TOGGLE_SHIFT;
|
||||
ret = -EIO;
|
||||
|
||||
/* Is the an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
/* Is there an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
* queue two or three qTDs:
|
||||
*
|
||||
* 1) One for the SETUP phase,
|
||||
@@ -2795,7 +2795,7 @@ static int imxrt_qh_ioccheck(struct imxrt_qh_s *qh, uint32_t **bp, void *arg)
|
||||
QH_TOKEN_HALTED &&
|
||||
(token & QH_TOKEN_CERR_MASK) != 0)
|
||||
{
|
||||
/* It is a stall, Note the that the data toggle is reset
|
||||
/* It is a stall, Note that the data toggle is reset
|
||||
* after the stall.
|
||||
*/
|
||||
|
||||
|
||||
@@ -392,7 +392,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -332,7 +332,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -504,7 +504,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -301,7 +301,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -2120,7 +2120,7 @@ static int lpc31_async_setup(struct lpc31_rhport_s *rhport,
|
||||
toggle = (uint32_t)epinfo->toggle << QTD_TOKEN_TOGGLE_SHIFT;
|
||||
ret = -EIO;
|
||||
|
||||
/* Is the an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
/* Is there an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
* queue two or three qTDs:
|
||||
*
|
||||
* 1) One for the SETUP phase,
|
||||
@@ -2787,7 +2787,7 @@ static int lpc31_qh_ioccheck(struct lpc31_qh_s *qh, uint32_t **bp, void *arg)
|
||||
if ((token & (QH_TOKEN_BABBLE | QH_TOKEN_HALTED)) == QH_TOKEN_HALTED &&
|
||||
(token & QH_TOKEN_CERR_MASK) != 0)
|
||||
{
|
||||
/* It is a stall, Note the that the data toggle is reset
|
||||
/* It is a stall, Note that the data toggle is reset
|
||||
* after the stall.
|
||||
*/
|
||||
|
||||
|
||||
@@ -2010,7 +2010,7 @@ static int lpc43_async_setup(struct lpc43_rhport_s *rhport,
|
||||
toggle = (uint32_t)epinfo->toggle << QTD_TOKEN_TOGGLE_SHIFT;
|
||||
ret = -EIO;
|
||||
|
||||
/* Is the an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
/* Is there an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
* queue two or three qTDs:
|
||||
*
|
||||
* 1) One for the SETUP phase,
|
||||
@@ -2650,7 +2650,7 @@ static int lpc43_qh_ioccheck(struct lpc43_qh_s *qh, uint32_t **bp, void *arg)
|
||||
if ((token & (QH_TOKEN_BABBLE | QH_TOKEN_HALTED)) == QH_TOKEN_HALTED &&
|
||||
(token & QH_TOKEN_CERR_MASK) != 0)
|
||||
{
|
||||
/* It is a stall, Note the that the data toggle is reset
|
||||
/* It is a stall, Note that the data toggle is reset
|
||||
* after the stall.
|
||||
*/
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -334,7 +334,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -333,7 +333,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -339,7 +339,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -355,7 +355,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -741,7 +741,7 @@ void weak_function up_dma_initialize(void)
|
||||
|
||||
nxsem_setprotocol(&g_edma.dsem, SEM_PRIO_NONE);
|
||||
|
||||
/* Initialize the list of of free TCDs from the pool of pre-allocated TCDs. */
|
||||
/* Initialize the list of free TCDs from the pool of pre-allocated TCDs. */
|
||||
|
||||
s32k1xx_tcd_initialize();
|
||||
#endif
|
||||
|
||||
@@ -468,7 +468,7 @@ int sam_oneshot_cancel(struct sam_oneshot_s *oneshot,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The total time remaining is the difference. Convert the that
|
||||
/* The total time remaining is the difference. Convert that
|
||||
* to units of microseconds.
|
||||
*
|
||||
* frequency = ticks / second
|
||||
|
||||
@@ -363,7 +363,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -1943,7 +1943,7 @@ static int sam_async_setup(struct sam_rhport_s *rhport,
|
||||
toggle = (uint32_t)epinfo->toggle << QTD_TOKEN_TOGGLE_SHIFT;
|
||||
ret = -EIO;
|
||||
|
||||
/* Is the an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
/* Is there an EP0 SETUP request? If so, req will be non-NULL and we will
|
||||
* queue two or three qTDs:
|
||||
*
|
||||
* 1) One for the SETUP phase,
|
||||
@@ -2610,7 +2610,7 @@ static int sam_qh_ioccheck(struct sam_qh_s *qh, uint32_t **bp, void *arg)
|
||||
if ((token & (QH_TOKEN_BABBLE | QH_TOKEN_HALTED)) == QH_TOKEN_HALTED &&
|
||||
(token & QH_TOKEN_CERR_MASK) != 0)
|
||||
{
|
||||
/* It is a stall, Note the that the data toggle is reset
|
||||
/* It is a stall, Note that the data toggle is reset
|
||||
* after the stall.
|
||||
*/
|
||||
|
||||
|
||||
@@ -480,7 +480,7 @@ int sam_oneshot_cancel(struct sam_oneshot_s *oneshot,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The total time remaining is the difference. Convert the that
|
||||
/* The total time remaining is the difference. Convert that
|
||||
* to units of microseconds.
|
||||
*
|
||||
* frequency = ticks / second
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
* PERIPH_RXTRIG - The RX ID of the peripheral that provides the DMA trigger. This
|
||||
* is one of the DMA_TRIGSRC_*[_RX] definitions. This trigger source
|
||||
* is selected when sam_dmarxsetup() is called.
|
||||
* PERIPH_INCREMENT - Indicates the that peripheral address should be incremented on
|
||||
* PERIPH_INCREMENT - Indicates that the peripheral address should be incremented on
|
||||
* each "beat"
|
||||
* PERIPH_QOS - Quality of service for peripheral accesses
|
||||
*/
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
/* Memory endpoint characteristics
|
||||
*
|
||||
* MEM_INCREMENT - Indicates the that memory address should be incremented on each
|
||||
* MEM_INCREMENT - Indicates that the memory address should be incremented on each
|
||||
* "beat"
|
||||
* MEM_QOS - Quality of service for memory accesses
|
||||
*/
|
||||
|
||||
@@ -1439,7 +1439,7 @@ int sam_i2c_reset(FAR struct i2c_master_s *dev)
|
||||
|
||||
i2c_putreg32(priv, ctrla & ~I2C_CTRLA_ENABLE, SAM_I2C_CTRLA_OFFSET);
|
||||
|
||||
/* Wait it get sync */
|
||||
/* Wait to get sync */
|
||||
|
||||
i2c_wait_synchronization(priv);
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
* is one of the DMAC_CHCTRLA_TRIGSRC_*[_TX] definitions. This trigger source
|
||||
* is selected when sam_dmatxsetup() is called.
|
||||
* PERIPH_TRIGACT - Trigger action
|
||||
* PERIPH_INCREMENT - Indicates the that peripheral address should be incremented on
|
||||
* PERIPH_INCREMENT - Indicates that the peripheral address should be incremented on
|
||||
* each "beat"
|
||||
*/
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
/* Memory endpoint characteristics
|
||||
*
|
||||
* MEM_INCREMENT - Indicates the that memory address should be incremented on each
|
||||
* MEM_INCREMENT - Indicates that the memory address should be incremented on each
|
||||
* "beat"
|
||||
*/
|
||||
|
||||
|
||||
@@ -1477,7 +1477,7 @@ int sam_i2c_reset(FAR struct i2c_master_s *dev)
|
||||
|
||||
i2c_putreg32(priv, ctrla & ~I2C_CTRLA_ENABLE, SAM_I2C_CTRLA_OFFSET);
|
||||
|
||||
/* Wait it get sync */
|
||||
/* Wait to get sync */
|
||||
|
||||
i2c_wait_synchronization(priv);
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -359,7 +359,7 @@ void up_irqinitialize(void)
|
||||
int nintlines;
|
||||
int i;
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports, defined in groups of 32. That is,
|
||||
* the total number of interrupt lines is up to (32*(INTLINESNUM+1)).
|
||||
*
|
||||
|
||||
@@ -482,7 +482,7 @@ int sam_oneshot_cancel(struct sam_oneshot_s *oneshot,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The total time remaining is the difference. Convert the that
|
||||
/* The total time remaining is the difference. Convert that
|
||||
* to units of microseconds.
|
||||
*
|
||||
* frequency = ticks / second
|
||||
|
||||
@@ -294,7 +294,7 @@
|
||||
|
||||
/* Pick ttys7. This could be one of USART1-2. It can't be UART0-4
|
||||
* or USART 1 because those have already been assigned to ttsyS0-6.
|
||||
* One of of USART1-2 could also be the console.
|
||||
* One of USART1-2 could also be the console.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_SAMV7_USART1) && defined(CONFIG_USART1_SERIALDRIVER) && \
|
||||
|
||||
@@ -339,7 +339,7 @@ void up_irqinitialize(void)
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH8_11_PRIORITY);
|
||||
putreg32(DEFPRIORITY32, NVIC_SYSH12_15_PRIORITY);
|
||||
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of of interrupt
|
||||
/* The NVIC ICTR register (bits 0-4) holds the number of interrupt
|
||||
* lines that the NVIC supports:
|
||||
*
|
||||
* 0 -> 32 interrupt lines, 8 priority registers
|
||||
|
||||
@@ -443,7 +443,7 @@ int stm32_oneshot_cancel(struct stm32_oneshot_s *oneshot,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The total time remaining is the difference. Convert the that
|
||||
/* The total time remaining is the difference. Convert that
|
||||
* to units of microseconds.
|
||||
*
|
||||
* frequency = ticks / second
|
||||
|
||||
@@ -820,7 +820,7 @@ static void sdadc_reset(FAR struct adc_dev_s *dev)
|
||||
|
||||
sdadc_rccreset(priv, false);
|
||||
|
||||
/* Enable the SDADC (and wait it stabilizes) */
|
||||
/* Enable the SDADC (and wait until it stabilizes) */
|
||||
|
||||
sdadc_enable(priv, true);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user