Skip to content

Commit a41a343

Browse files
Release of Version 1.1.1
1 parent 23e9bab commit a41a343

File tree

1,154 files changed

+226612
-741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,154 files changed

+226612
-741
lines changed

binary/usb-2-232.uf2

10 KB
Binary file not shown.

firmware/CMakeLists.txt

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,46 @@ set(TARGET "usb-2-232")
55
set(CMAKE_C_STANDARD 11)
66
set(CMAKE_CXX_STANDARD 17)
77

8-
if(NOT CMAKE_BUILD_TYPE)
9-
set(CMAKE_BUILD_TYPE Release)
10-
endif()
11-
12-
#set( CMAKE_CXX_FLAGS "-Wall -Wextra")
13-
#set( CMAKE_C_FLAGS "-Wall -Wextra")
14-
set( CMAKE_C_FLAGS_RELEASE "-O2" )
15-
set( CMAKE_CXX_FLAGS_RELEASE "-O2" )
16-
178
# initalize pico_sdk from installed location
189
# (note this can come from environment, CMake cache etc)
19-
set(PICO_SDK_PATH "C:/Pico/pico-sdk-1.2.0")
10+
set(PICO_SDK_PATH "C:/Pico/pico-sdk")
2011

2112
# Pull in Raspberry Pi Pico SDK (must be before project)
2213
include(pico_sdk_import.cmake)
2314

15+
#if(NOT CMAKE_BUILD_TYPE)
16+
# set(CMAKE_BUILD_TYPE Release)
17+
#endif()
18+
19+
#set( CMAKE_CXX_FLAGS "-Wall -Wextra")
20+
#set( CMAKE_C_FLAGS "-Wall -Wextra")
21+
set( CMAKE_C_FLAGS_RELEASE "-O2" )
22+
set( CMAKE_CXX_FLAGS_RELEASE "-O2" )
23+
2424
project(usb-2-232 C CXX ASM)
2525

2626
# Initialise the Raspberry Pi Pico SDK
2727
pico_sdk_init()
2828

2929
# Add executable. Default name is the project name, version 0.1
30-
31-
add_executable(usb-2-232 usb-2-232.c include/utils.c include/serial.c include/hid_app.c)
30+
#add_executable(usb-2-232 ${CMAKE_CURRENT_LIST_DIR})
31+
add_executable(usb-2-232
32+
usb-2-232.c
33+
include/hid_app.c
34+
include/serial.c
35+
include/utils.c
36+
)
3237

3338
# Make sure TinyUSB can find tusb_config.h
34-
target_include_directories(usb-2-232 PUBLIC
35-
${CMAKE_CURRENT_LIST_DIR})
36-
37-
include_directories(include/)
38-
link_directories(include/)
39+
target_include_directories(usb-2-232 PUBLIC ${CMAKE_CURRENT_LIST_DIR})
3940

4041
# In addition to pico_stdlib required for common PicoSDK functionality, add dependency on tinyusb_host
4142
# for TinyUSB device support and tinyusb_board for the additional board support library used by the example
4243
target_link_libraries(usb-2-232 pico_stdlib hardware_flash hardware_sync tinyusb_host tinyusb_board)
4344

45+
include_directories(include/)
46+
link_directories(include/)
47+
4448
pico_set_program_name(${TARGET} "usb-2-232")
4549
pico_set_program_description(${TARGET} "Pico usb to serial mouse adaptor.")
4650
pico_set_program_version(${TARGET} "0.1")
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
*.c text
5+
*.cpp text
6+
*.h text
7+
*.icf text
8+
*.js text
9+
*.json text
10+
*.ld text
11+
*.md text
12+
*.mk text
13+
*.py text
14+
*.rst text
15+
*.s text
16+
*.txt text
17+
*.xml text
18+
*.yml text
19+
20+
Makefile text
21+
22+
# Windows-only Visual Studio things
23+
24+
*.sln text eol=crlf
25+
*.csproj text eol=crlf
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Bug Report
2+
description: Report a problem with TinyUSB
3+
labels: 'Bug 🐞'
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
It's okay to leave some blank if it doesn't apply to your problem.
10+
11+
- type: dropdown
12+
attributes:
13+
label: Operating System
14+
options:
15+
- Linux
16+
- MacOS
17+
- RaspberryPi OS
18+
- Windows 7
19+
- Windows 10
20+
- Windows 11
21+
- Others
22+
validations:
23+
required: true
24+
25+
- type: input
26+
attributes:
27+
label: Board
28+
placeholder: e.g Feather nRF52840 Express
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
attributes:
34+
label: Firmware
35+
placeholder: |
36+
e.g examples/device/cdc_msc. If it is custom firmware, it is preferably compiled like one in example folder and reviewable for people to comment on. The easiest way is
37+
- Fork this repo, checkout a new branch
38+
- Add your-own-example based on stock one
39+
- Push and post it here.
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
attributes:
45+
label: What happened ?
46+
placeholder: A clear and concise description of what the bug is.
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
attributes:
52+
label: How to reproduce ?
53+
placeholder: |
54+
Exact steps in chronological order, details should be specific e.g if you use a command/script to test with, please post it as well.
55+
1. Go to '...'
56+
2. Click on '....'
57+
3. See error
58+
validations:
59+
required: true
60+
61+
- type: textarea
62+
attributes:
63+
label: Debug Log
64+
placeholder: |
65+
TinyUSB debug log where the issue occurred as attached txt file, best with comments to explain the actual events.
66+
67+
Note: To enable logging, add `LOG=3` to to the make command if building with stock examples or set `CFG_TUSB_DEBUG=3` in your tusb_config.h.
68+
More information can be found at [example's readme](https://github.com/hathach/tinyusb/blob/master/docs/getting_started.md)
69+
validations:
70+
required: false
71+
72+
- type: textarea
73+
attributes:
74+
label: Screenshots
75+
description: If applicable, add screenshots to help explain your problem.
76+
validations:
77+
required: false
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: TinyUSB Discussion
3+
url: https://github.com/hathach/tinyusb/discussions
4+
about: If you have other questions or need help, post it here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: Feature 💡
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**Describe the PR**
2+
A clear and concise description of what this PR solve.
3+
4+
**Additional context**
5+
If applicable, add any other context about the PR and/or screenshots here.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build AArch64
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types:
8+
- created
9+
10+
jobs:
11+
# ---------------------------------------
12+
# Build AARCH64 family
13+
# ---------------------------------------
14+
build-arm:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
family:
20+
# Alphabetical order
21+
- 'broadcom_64bit'
22+
steps:
23+
- name: Setup Python
24+
uses: actions/setup-python@v2
25+
26+
- name: Checkout TinyUSB
27+
uses: actions/checkout@v2
28+
29+
- name: Checkout common submodules in lib
30+
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip lib/sct_neopixel
31+
32+
- name: Checkout hathach/linkermap
33+
uses: actions/checkout@v2
34+
with:
35+
repository: hathach/linkermap
36+
path: linkermap
37+
38+
- name: Set Toolchain URL
39+
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
40+
41+
- name: Cache Toolchain
42+
uses: actions/cache@v2
43+
id: cache-toolchain
44+
with:
45+
path: ~/cache/
46+
key: ${{ runner.os }}-21-11-02-${{ env.TOOLCHAIN_URL }}
47+
48+
- name: Install Toolchain
49+
if: steps.cache-toolchain.outputs.cache-hit != 'true'
50+
run: |
51+
mkdir -p ~/cache/toolchain
52+
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
53+
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
54+
55+
- name: Set Toolchain Path
56+
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
57+
58+
- name: Build
59+
run: python3 tools/build_family.py ${{ matrix.family }}
60+
61+
- name: Linker Map
62+
run: |
63+
pip install linkermap/
64+
for ex in `ls -d examples/device/*/`; do \
65+
find ${ex} -name *.map -print -quit | \
66+
xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'; \
67+
done

0 commit comments

Comments
 (0)