Skip to content

Commit 7a18865

Browse files
committed
Spelling fixes
1 parent 4a7db0b commit 7a18865

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/USBHost/USBDeviceConnected.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class USBDeviceConnected
6565
* @param intf_nb the interface on which to lookup the USBEndpoint
6666
* @param type type of the USBEndpoint looked for
6767
* @param dir direction of the USBEndpoint looked for
68-
* @param index the index of the USBEndpoint whitin the interface
68+
* @param index the index of the USBEndpoint within the interface
6969
* @returns pointer on the USBEndpoint if found, NULL otherwise
7070
*/
7171
USBEndpoint * getEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir, uint8_t index = 0);

src/USBHost3GModule/IUSBHostSerial.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class IUSBHostSerial {
7474
*
7575
* @returns the number of bytes available
7676
*/
77-
virtual int writeable() = 0;
77+
virtual int writable() = 0;
7878

7979
/**
8080
* Attach a handler to call when a packet is received / when a packet has been transmitted.
@@ -84,7 +84,7 @@ class IUSBHostSerial {
8484
virtual void attach(IUSBHostSerialListener* pListener) = 0;
8585

8686
/**
87-
* Enable or disable readable/writeable callbacks
87+
* Enable or disable readable/writable callbacks
8888
*/
8989
virtual void setupIrq(bool en, IrqType irq = RxIrq) = 0;
9090

src/USBHost3GModule/IUSBHostSerialListener.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class IUSBHostSerialListener
2929
{
3030
public:
3131
virtual void readable() = 0; //Called when new data is available
32-
virtual void writeable() = 0; //Called when new space is available
32+
virtual void writable() = 0; //Called when new space is available
3333
};
3434

3535
#endif /* USBHOST_3GMODULE */

src/USBHost3GModule/WANDongleSerialPort.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int WANDongleSerialPort::readable()
187187
return res;
188188
}
189189

190-
int WANDongleSerialPort::writeable()
190+
int WANDongleSerialPort::writable()
191191
{
192192
tx_mtx.lock();
193193
if (lock_tx)
@@ -246,7 +246,7 @@ void WANDongleSerialPort::setupIrq(bool en, IrqType irq /*= RxIrq*/)
246246
{
247247
cb_tx_pending = false;
248248
tx_mtx.unlock();
249-
listener->writeable(); //Process the interrupt that was raised
249+
listener->writable(); //Process the interrupt that was raised
250250
}
251251
else
252252
{
@@ -321,7 +321,7 @@ void WANDongleSerialPort::txHandler()
321321
if(cb_tx_en)
322322
{
323323
tx_mtx.unlock();
324-
listener->writeable(); //Call handler from the IRQ context
324+
listener->writable(); //Call handler from the IRQ context
325325
//writePacket() should be called by the handler subsequently once the buffer has been filled
326326
}
327327
else

src/USBHost3GModule/WANDongleSerialPort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class WANDongleSerialPort : public IUSBHostSerial {
8181
*
8282
* @returns the number of bytes available
8383
*/
84-
virtual int writeable();
84+
virtual int writable();
8585

8686
/**
8787
* Attach a handler to call when a packet is received / when a packet has been transmitted.
@@ -91,7 +91,7 @@ class WANDongleSerialPort : public IUSBHostSerial {
9191
virtual void attach(IUSBHostSerialListener* pListener);
9292

9393
/**
94-
* Enable or disable readable/writeable callbacks
94+
* Enable or disable readable/writable callbacks
9595
*/
9696
virtual void setupIrq(bool en, IrqType irq = RxIrq);
9797

0 commit comments

Comments
 (0)