Skip to content

Commit 420d053

Browse files
committed
fix typos, add pre-commit config
1 parent 6a01b3a commit 420d053

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.codespell/exclude-file.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* - https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-tiny-usb.c

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
repos:
6+
- repo: local
7+
hooks:
8+
- id: codespell
9+
name: codespell
10+
entry: codespell
11+
types_or: [c, ino, c++, header]
12+
language: system

examples/Vendor/i2c_tiny_usb_adapter/I2C_USB_Interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#define CMD_GET_STATUS 3
3535

3636
#define CMD_I2C_IO 4
37-
#define CMD_I2C_IO_BEGIN (1<<0) // flag fo I2C_IO
38-
#define CMD_I2C_IO_END (1<<1) // flag fo I2C_IO
37+
#define CMD_I2C_IO_BEGIN (1<<0) // flag for I2C_IO
38+
#define CMD_I2C_IO_END (1<<1) // flag for I2C_IO
3939

4040
/* linux kernel flags */
4141
#define I2C_M_TEN 0x10 /* we have a ten bit chip address */

examples/Vendor/i2c_tiny_usb_adapter/i2c_tiny_usb_adapter.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <Wire.h>
1313
#include "Adafruit_TinyUSB.h"
1414

15-
#include "../i2c_tiny_usb_adapter/I2C_USB_Interface.h"
15+
#include "I2C_USB_Interface.h"
1616

1717
/* This sketch demonstrates how to use tinyusb vendor interface to implement
1818
* i2c-tiny-usb adapter to use with Linux

0 commit comments

Comments
 (0)