Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 84fb637

Browse files
committed
fixing typo
1 parent b47e5d6 commit 84fb637

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎cores/arduino/FspLinkIrq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ typedef enum {
1616

1717
extern int attachIrq2Link(uint32_t pin, PinStatus mode);
1818
extern int detachIrq2Link(pin_size_t pinNumber);
19-
extern int getIrqIndexFromPint(uint32_t pin);
19+
extern int getIrqIndexFromPin(uint32_t pin);
2020

2121
/* Wrapper class for FSP ELC
2222
at the present only support the link of an external Irq to a peripheral */

‎cores/arduino/Interrupts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void attachInterrupt(pin_size_t pinNumber, voidFuncPtr func, PinStatus mode) {
194194
}
195195

196196

197-
int getIrqIndexFromPint(uint32_t pinNumber) {
197+
int getIrqIndexFromPin(uint32_t pinNumber) {
198198
CIrq *irq_context = nullptr;
199199
int rv = -1;
200200
int ch = pin2IrqChannel(pinNumber);

‎libraries/SoftwareSerial/src/SoftwareSerial.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void dma_tx_callback(dmac_callback_args_t *args);
4848
void dma_rx_callback(dmac_callback_args_t *args);
4949

5050
extern int attachIrq2Link(uint32_t pin, PinStatus mode);
51-
extern int getIrqIndexFromPint(uint32_t pin);
51+
extern int getIrqIndexFromPin(uint32_t pin);
5252
typedef void (*fsp_dma_callback_t) (dmac_callback_args_t *args);
5353

5454
static uint32_t tx_get_sample(bsp_io_port_pin_t tx, ioport_size_t value)
@@ -239,7 +239,7 @@ int SoftwareSerial::begin(uint32_t baudrate, uint32_t sconfig, bool inverted)
239239

240240
/* avoid to call attachIrq2Link if already used because it "consumes" irq
241241
indexes in the NVIC */
242-
int irq_index = getIrqIndexFromPint(_rx_pin);
242+
int irq_index = getIrqIndexFromPin(_rx_pin);
243243
if(irq_index == -1) {
244244
rx_descr.irq_chan = attachIrq2Link(_rx_pin, CHANGE); // Enable RX pin IRQ.
245245
} else {
@@ -343,7 +343,7 @@ int SoftwareSerial::begin(uint32_t baudrate, uint32_t sconfig, bool inverted)
343343
}
344344

345345
int SoftwareSerial::end() {
346-
int irq_index = getIrqIndexFromPint(_rx_pin);
346+
int irq_index = getIrqIndexFromPin(_rx_pin);
347347

348348
if(irq_index != -1) {
349349
R_BSP_IrqDisable((IRQn_Type)irq_index);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /