Commit Graph

5082 Commits

Author SHA1 Message Date
Ha Thach ea1dfc1fd5
Merge pull request #956 from kkitayam/fix_audio_format_for_renesas_rx
add settings for Renesas RX family
2021-08-13 14:36:45 +07:00
hathach d52b981c3a
revert ready() check in claim (do it later in separated PR) 2021-08-12 17:07:39 +07:00
hathach 17ef9f4843
add ready check for edpt claim 2021-08-12 15:54:04 +07:00
hathach 4ad47d9e26
bus_reset will reset all endpoints
allow for dynamic configuration as well as state-less enumeration
2021-08-12 15:40:26 +07:00
Jerzy Kasenberg cde607338d da1469x: Fix no VBUS startup
For self powered device if device started without VBUS present
it would not be correctly attached to USB bus even if tusb_vbus_changed()
was later called.

This modifies dcd_init() so it starts USB state machine without checking
if VBUS is present or not, like all others drivers do.
tusb_vbus_changed() function is also removed its content was moved to dcd_init.
2021-08-12 09:12:25 +02:00
hathach 4f2999bc04
white space 2021-08-12 00:31:26 +07:00
hathach 88d4cb402d
simplify hw_endpoint_init() 2021-08-12 00:11:04 +07:00
hathach a2baf9427d
more dcd clean up 2021-08-11 20:36:23 +07:00
hathach 979af6c2a8
clean up endpoint set/clear stall 2021-08-11 20:29:39 +07:00
hathach f3a6e564ee
rp2040 enable suspend and resume interrupt 2021-08-11 20:06:57 +07:00
Ha Thach 63f7dfeb8e
Merge pull request #1013 from kasjer/kasjer/da1469x-fix-register-file-dependency
dcd_da1469x: Use mcu.h instead of MCU specific header
2021-08-11 19:38:46 +07:00
Jerzy Kasenberg 2c7bb540b4 dcd_da1469x: Use mcu.h instead of MCU specific header
dcd_da1469x can work with broader range of MCUs that
share same USB core.
Specific header file that was used DA1469xAB.h now it is changed
to mcu/mcu.h which includes actual MCU specific register file.
2021-08-10 20:26:51 +02:00
Ha Thach a5b464c5ca
Merge pull request #1012 from hathach/fix-newline-keycode-usage
correct newline usage keycode (ENTER 0x28)
2021-08-10 17:09:09 +07:00
hathach 2ea0ef4543
correct newline usage keycode (ENTER 0x28) 2021-08-10 16:40:43 +07:00
Ha Thach 70b26b561a
Merge pull request #1011 from hathach/correct-hid-inout-example
Correct hid inout example
2021-08-10 16:06:50 +07:00
hathach 40afc8c5de
update node script to always shift dummy reportID like python
allow specify all product id with 0xFFFF in boards.js
2021-08-10 15:40:25 +07:00
Stefan Kerkmann 1b6540a61c Update systick reload value
The systick timer is driven by the AHB bus divided by 4, set the correct
reload value to generate a timer irq every ms.
2021-08-09 21:37:06 +02:00
hathach 312fd5f839 fix hid_test.py for hid inout to correctly preceeded with dummy reportID
add note for install hidapi on windows
2021-08-09 22:57:11 +07:00
Ha Thach d2257db87f
Merge pull request #1004 from ctag-fh-kiel/master
STM32L151 portable driver adaptations
2021-08-09 16:07:42 +07:00
Robert Manzke ea72d64992 STM32L151 portable driver adaptations 2021-08-08 08:30:52 +02:00
Stefan Kerkmann 27f147f421 Minor style changes 2021-08-07 14:08:18 +02:00
Stefan Kerkmann 8b78067cc1 Use linear buffer for GD32VF103
As the peripheral is the same as on the STM32F1 and STM32F4 lines we do the same.
2021-08-07 12:06:54 +02:00
Stefan Kerkmann 4cebde65ec Remove unnecessary define guard
The GD32VF103 family only has USB-OTG peripherals.
2021-08-07 12:00:13 +02:00
Stefan Kerkmann 0399996ee5 Code style changes 2021-08-07 11:33:36 +02:00
Stefan Kerkmann 66d566f8c0 Use functions provided by the nuclei-sdk hal 2021-08-07 11:33:36 +02:00
Stefan Kerkmann 60d03110f7 Correctly initialize and handle the system tick
Forgot to reload the systick timer in the irq handler
2021-08-07 11:33:36 +02:00
Stefan Kerkmann 1d2a57a9e1 Remove unsuitable clock configurations from init code
Only 48MHz, 72MHz, 96MHz and 120 MHz system clocks derived from an
external crystal are suitable for the usb peripheral, as the internal
oscillator is not stable enough. Also the usb-prescaler only supports
division by 1 (48MHZ), 1.5(72MHz), 2(96MHz) and 2.5(120Mhz).
120Mhz is also out of spec and not added here.
2021-08-07 11:33:36 +02:00
Stefan Kerkmann 733a362436 Use nuclei-sdk functions for init code
Instead of using the HAL functions we can just use the defines from the
board support for the longan nano that comes with the nuclei-sdk. Also
we move some includes and defines to the header file.
2021-08-07 11:32:06 +02:00
Stefan Kerkmann 6e287a7c5e Cleanup include paths and use linker files from nuclei-sdk 2021-08-07 09:51:56 +02:00
Stefan Kerkmann b473923f42 Remove redundant linker files
We use the linker files provided by nuclei-sdk instead
2021-08-07 09:51:16 +02:00
Stefan Kerkmann 7682829820 Add correct endpoint count for GD32VF103
This controller family only supports USB FS with four endpoints
2021-08-07 09:01:01 +02:00
Stefan Kerkmann c6d495d643 Remove dependencies to external libraries for the dcd driver
The core of tinyusb must be as independent as possible, we previously
relied on nuclei-sdk or the GD32VF103 firmware library for the synopsys
driver to work with the GD32VF103. Fortunatly we needed very few parts
from them so we implement them here.
2021-08-07 08:55:25 +02:00
Ha Thach 88f5c04fe0
Merge pull request #985 from HiFiPhile/same70
SAMx7x improvements
2021-08-06 11:32:57 +07:00
Ha Thach b8055aeccf
Merge pull request #1000 from hathach/more-doc
More doc
2021-08-06 01:06:22 +07:00
hathach 6be2d46b53
update link to docs.tinyusb.org 2021-08-05 18:32:44 +07:00
hathach 188bc0e991
change webusb-serial landing page
- to example.tinyusb.org/webusb-serial/
- remove landing page from doc
2021-08-05 18:00:41 +07:00
MasterPhi a698dda67e Minor fix. 2021-08-05 09:56:24 +02:00
hathach b5d218e684
add html extra for webusb example 2021-08-05 14:06:08 +07:00
hathach 2b521e0c10
rename to .readthedocs.yaml
exclude all submodules for docs
2021-08-05 12:29:32 +07:00
Rafael Silva 82d73d3350
Merge pull request #997 from hathach/perigoso-readme-patch
readme: fix link to online documentation
2021-08-04 16:31:57 +01:00
Rafael Silva 546d869ffb
readme: fix link to online documentation 2021-08-04 16:25:01 +01:00
Ha Thach 623a775f78
Merge pull request #983 from perigoso/docs
Docs
2021-08-04 22:20:22 +07:00
Stefan Kerkmann 3eb54d878a Add stm32 license header 2021-08-03 20:21:06 +02:00
Stefan Kerkmann ab1979e2d3 Revert "Disable -Werror for now"
This reverts commit 5e0c2e122300e7a6289b3bd08044f9cf1dbdef05.
2021-08-03 20:01:10 +02:00
Stefan Kerkmann e5bd6bdeff Update nuclei-sdk with __riscv_flen fix 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 790d90bf26 Set FreeRTOS to RISC-V (doesn't compile) 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 23e3b1680b Use JTAG for jlink flashing 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 3db2089aa9 Minor clean ups 2021-08-03 20:00:39 +02:00
Stefan Kerkmann 771bbe8af7 Use https github as submodule 2021-08-03 20:00:39 +02:00
Stefan Kerkmann ddb83787a0 Disable -Werror for now
Without having __riscv_flen defined we get multiple warinings. But
defining it causes the startup code to contain floating point instructions.
This results in a exception right after booting.

See startup_gd32vf103.S lines 289-294 should open a PR at nuclei sdk
2021-08-03 20:00:39 +02:00