Skip to content

Commit de0416a

Browse files
authored
Minor irq.h comment typos (#2257)
1 parent 564aa64 commit de0416a

File tree

1 file changed

+4
-4
lines changed
  • src/rp2_common/hardware_irq/include/hardware

1 file changed

+4
-4
lines changed

src/rp2_common/hardware_irq/include/hardware/irq.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* where there is one IO interrupt per bank, per core. These are completely independent, so, for example, processor 0 can be
4747
* interrupted by GPIO 0 in bank 0, and processor 1 by GPIO 1 in the same bank.
4848
*
49-
* \note That all IRQ APIs affect the executing core only (i.e. the core calling the function).
49+
* \note All IRQ APIs affect the executing core only (i.e. the core calling the function).
5050
*
5151
* \note You should not enable the same (shared) IRQ number on both cores, as this will lead to race conditions
5252
* or starvation of one of the cores. Additionally, don't forget that disabling interrupts on one core does not disable interrupts
@@ -280,7 +280,7 @@ void irq_set_mask_n_enabled(uint n, uint32_t mask, bool enabled);
280280
* \ingroup hardware_irq
281281
*
282282
* Use this method to set a handler for single IRQ source interrupts, or when
283-
* your code, use case or performance requirements dictate that there should
283+
* your code, use case or performance requirements dictate that there should be
284284
* no other handlers for the interrupt.
285285
*
286286
* This method will assert if there is already any sort of interrupt handler installed
@@ -343,7 +343,7 @@ irq_handler_t irq_get_exclusive_handler(uint num);
343343
* the (total across all IRQs on both cores) maximum (configurable via PICO_MAX_SHARED_IRQ_HANDLERS) number of shared handlers
344344
* would be exceeded.
345345
*
346-
* NOTE: By default, the SDK uses a single shared vector table for both core, and the currently installed
346+
* NOTE: By default, the SDK uses a single shared vector table for both cores, and the currently installed
347347
* IRQ handlers are effectively a linked list starting a vector table entry for a particular IRQ number.
348348
* Therefore, this method (when using the same vector table for both cores) add the same interrupt handler
349349
* for both cores.
@@ -366,7 +366,7 @@ irq_handler_t irq_get_exclusive_handler(uint num);
366366
* NOTE: It is not thread safe to add/remove/handle IRQs for the same irq number in the same vector table
367367
* from both cores concurrently.
368368
*
369-
* NOTE: The SDK defines a PICO_VTABLE_PER_CORE variable indicating whether the two vector tables are separate,
369+
* NOTE: The SDK has a PICO_VTABLE_PER_CORE define indicating whether the two vector tables are separate,
370370
* however as of version 2.1.1 the user cannot set this value, and expect the vector table duplication to be handled
371371
* for them. This functionality will be added in a future SDK version
372372
*

0 commit comments

Comments
 (0)