Skip to content

Commit a090e8d

Browse files
committed
Fix typos in Ftduino code
1 parent d5eef19 commit a090e8d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ftduino/libraries/Ftduino/Ftduino.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/*
88
* TODO:
9-
* - /CS high time by emtpy spi transfer for TLE94108
9+
* - /CS high time by empty spi transfer for TLE94108
1010
*
1111
*/
1212

@@ -127,7 +127,7 @@ void Ftduino::adc_init() {
127127
// setup 4051 mux driving the pullups
128128
cd4051_init();
129129

130-
// disable digitial function of analog pins
130+
// disable digital function of analog pins
131131
DIDR0 = (1 << ADC7D) | (1 << ADC6D) | (1 << ADC5D) | (1 << ADC4D);
132132
DIDR2 = (1 << ADC11D) | (1 << ADC10D) | (1 << ADC9D) | (1 << ADC8D);
133133

@@ -908,7 +908,7 @@ void Ftduino::ext_interrupt3() {
908908

909909
void Ftduino::pc_interrupt() {
910910
// The hardware won't tell us which pin fired this interrupt.
911-
// so we need to keep track of that outselves
911+
// so we need to keep track of that ourselves
912912
static uint8_t portb_state = 0xff; // assume both pins are pulled high
913913
uint8_t pinb = PINB;
914914

@@ -950,7 +950,7 @@ void Ftduino::counter_init(void) {
950950

951951
// run timer 1 in fast pwm mode with OCR1A as top. Since OCR1A is lower
952952
// than OCR1B, the counter will normally never pass OCR1B and the
953-
// interrupt will thus never fire unless TCNT is explicitely being
953+
// interrupt will thus never fire unless TCNT is explicitly being
954954
// set to a value > OCR1A
955955
TCCR1B = (1<<WGM13) | (1<<WGM12);
956956
TCCR1A = (1<<WGM11) | (1<<WGM10);

ftduino/libraries/Ftduino/Ftduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ class Ftduino {
123123
uint8_t spi_state = 0; // byte/word counter for spi transmission
124124
uint16_t spi_tx_in[SPI_PWM_CYCLE_LEN]; // set outside interrupt
125125

126-
// repeatedly sent during interupt:
126+
// repeatedly sent during interrupt:
127127
union {
128-
uint16_t w; // repeated during interupt
128+
uint16_t w; // repeated during interrupt
129129
uint8_t b[2];
130130
} spi_tx_data;
131131

0 commit comments

Comments
 (0)