Skip to content

Commit ba88441

Browse files
authored
Merge pull request #1 from FrameworkComputer/readme
Properly format README
2 parents c124f11 + 3296cef commit ba88441

1 file changed

Lines changed: 44 additions & 40 deletions

File tree

README.md

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
=== Multi purpose debugger - target controller
1+
# Multi purpose debugger - target controller
22

3-
Supports
4-
CMSIS-DAP
5-
Multiple serial terminals
6-
GPIO read/write/port register control.
3+
Supports:
74

5+
- CMSIS-DAP
6+
- Multiple serial terminals
7+
- GPIO read/write/port register control.
88

9-
right now the backend uses raw hid reports for debug communication, terminal.py will open an interactive terminal to the device.
9+
Right now the backend uses raw hid reports for debug communication, terminal.py will open an interactive terminal to the device.
1010

11-
= How to flash to the teensy board:
11+
### How to flash to the teensy board:
12+
```sh
1213
pio run -e teensy41 --target upload
1314
pio run -e teensy31 --target upload
1415
pio run -e teensy36 --target upload
16+
```
1517

18+
### Modifications required to teensy 3.1 codebase:
1619

17-
= Modifications required to teensy 3.1 codebase:
20+
For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string around line 1136 in `~/.platformio/packages/framework-arduinoteensy/cores/teensy3/usb_desc.c`
1821

19-
* For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string
20-
around line 1136 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy3/usb_desc.c
21-
--------------------------------------
22+
```c
2223
#ifdef RAWHID_INTERFACE
2324
// interface descriptor, USB spec 9.6.5, page 267-269, Table 9-12
2425
9, // bLength
@@ -30,11 +31,11 @@ around line 1136 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy3
3031
0x00, // bInterfaceSubClass
3132
0x00, // bInterfaceProtocol
3233
2, // iInterface <-------------------Modify this!
34+
```
3335
34-
35-
usb_desc.h
36-
--------------------------------------
37-
Add the following to the usb definitions section after USB_EVERYTHING
36+
`usb_desc.h`
37+
```c
38+
// Add the following to the usb definitions section after USB_EVERYTHING
3839
#elif defined(USB_RAWHID_TRIPLESERIAL)
3940
#define VENDOR_ID 0x16C0
4041
#define PRODUCT_ID 0x048C
@@ -99,33 +100,34 @@ Add the following to the usb definitions section after USB_EVERYTHING
99100
100101
#define ENDPOINT11_CONFIG ENDPOINT_TRANSMIT_ONLY
101102
#define ENDPOINT12_CONFIG ENDPOINT_RECEIVE_ONLY
103+
```
102104

103105

104-
105-
yeld.cpp
106-
--------------------------------------
107-
need to add USB_RAWHID_TRIPLESERIAL wherever USB_TRIPLE_SERIAL is.
106+
`yeld.cpp`
107+
```c
108+
// Need to add USB_RAWHID_TRIPLESERIAL wherever USB_TRIPLE_SERIAL is.
108109
defined(USB_TRIPLE_SERIAL) || defined(USB_RAWHID_TRIPLESERIAL)
110+
```
109111

110-
111-
usb_inst.cpp
112-
---------------------------------------
113-
Add defined(USB_RAWHID_TRIPLESERIAL) to
112+
`usb_inst.cpp`
113+
```c
114+
// Add defined(USB_RAWHID_TRIPLESERIAL) to
114115
defined(USB_SERIAL) || defined(USB_DUAL_SERIAL) ||....
116+
```
115117

116-
./platforms/teensy/builder/frameworks/arduino.py
117-
---------------------------------------
118-
Add USB_RAWHID_TRIPLESERIAL
119-
120-
to the section
118+
`./platforms/teensy/builder/frameworks/arduino.py`
119+
```c
120+
// Add USB_RAWHID_TRIPLESERIAL
121+
// to the section
121122
BUILTIN_USB_FLAGS = (
123+
```
122124

123125

124-
125-
= Modifications required for teensy 4.1
126-
* For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string
126+
### Modifications required for teensy 4.1
127+
For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string
127128
--------------------------------------
128-
Around line 1191 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy4/usb_desc.c
129+
Around line 1191 in `~/.platformio/packages/framework-arduinoteensy/cores/teensy4/usb_desc.c`
130+
```c
129131
#ifdef RAWHID_INTERFACE
130132
// configuration for 480 Mbit/sec speed
131133
// interface descriptor, USB spec 9.6.5, page 267-269, Table 9-12
@@ -138,10 +140,11 @@ Around line 1191 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy4
138140
0x00, // bInterfaceSubClass
139141
0x00, // bInterfaceProtocol
140142
2, // iInterface
143+
```
141144
142-
--------------------------------------
143-
usb_desc.h
144145
146+
`usb_desc.h`
147+
```c
145148
#elif defined(USB_RAWHID_TRIPLESERIAL)
146149
#define VENDOR_ID 0x16C0
147150
#define PRODUCT_ID 0x048C
@@ -197,11 +200,12 @@ usb_desc.h
197200
/* for raw hid */
198201
#define ENDPOINT8_CONFIG ENDPOINT_RECEIVE_UNUSED + ENDPOINT_TRANSMIT_INTERRUPT
199202
#define ENDPOINT9_CONFIG ENDPOINT_RECEIVE_INTERRUPT + ENDPOINT_TRANSMIT_UNUSED
203+
```
200204

201-
---------------------------------------
202-
./platforms/teensy/builder/frameworks/arduino.py
203-
---------------------------------------
204-
Add USB_RAWHID_TRIPLESERIAL
205205

206-
to the section
207-
BUILTIN_USB_FLAGS = (
206+
`./platforms/teensy/builder/frameworks/arduino.py`
207+
```c
208+
// Add USB_RAWHID_TRIPLESERIAL
209+
// to the section
210+
BUILTIN_USB_FLAGS = (
211+
```

0 commit comments

Comments
 (0)