GithubHelp home page GithubHelp logo

alexandermandera / rv003usb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cnlohr/rv003usb

1.0 0.0 0.0 229 KB

CH32V003 RISC-V Pure Software USB Controller

License: MIT License

C 82.81% Assembly 15.75% Makefile 1.44%

rv003usb's Introduction

Using USB on the CH32V003

(No, that's not a typo)

Bit banged USB stack for the RISC-V WCH CH32V003, using ch32v003fun.

WARNING: Project is not ready for prime time. Proof of concept works, we are on track for proper releases soon. Maybe you can help out!

✅ Able to go on-bus and receive USB frames
✅ Compute CRC in-line while receiving data
✅ Bit Stuffing (Works, tested)
✅ Sending USB Frames
✅ High Level USB Stack in C
✅ Make USB timing more precise.
✅ Use SE0 1ms ticks to tune HSItrim
✅ Rework sending code to send tokens/data separately.
✅ Fix CRC Code
❕ Further optimize Send/Receive PHY code. (Please help)
❎ Enable systick-based retiming to correct timing mid-frame.
✅ Optimize high-level stack.
✅ Fit in bootloader (NOTE: Need to tighten more)
❕ Use hardware CRC to save space/time??
✅ Use HID custom messages.
✅ Improve sync sled. I.e. coarse and fine sledding.
✅ Abort on non-8-bit-aligned-frames.
🔳 Fix timing on send, for CRC bits.
🔳 Make minichlink able to use bootloader.
⚠️ Arduino support (someone else will have to take this on)
🔳 Make demos
🔳 API For self-flashing + printf from bootloader
⚠️ Enable retiming (Requires a few more cycles, will be major effort)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.