maccasoft / p2 Goto Github PK
View Code? Open in Web Editor NEWProjects based on the Parallax Propeller-2 multicore microcontroller.
Projects based on the Parallax Propeller-2 multicore microcontroller.
There's an issue with how ZiKore implements the EI instruction - a pending IRQ should only execute after the next instruction. This is a real issue when code is written like this (from Sonic Wings 2 sound code):
Fix is to jump directly into zk_nextop after the IRQ hooks from zk_irqon.
My fix looks like this, though it also delays NMI in cases where it shouldn't (megayume doesn't have NMI impl. Neoyume does, but the commit is more messy): IRQsome/MegaYume@3817e5c
Note: This is more "feature request" than issue, but would make the PASM USB code far more practical for hardware designs with a single USB device port.
I think the USB code is designed to dedicate a cog to each USB device. I also think this is an Ok use of cog resources, but would like it to support multiple devices using a single USB port wired to the P2 - in other words, support a USB hub device, and dynamically spawn (and kill) additional cog drivers for the downstream devices connected via the USB hub.
Likely, the separate cog used to monitor the USB hub could co-exist with other functionality, and just poll the hub periodically for device updates. So, an application's "main cog" would need to poll the USB hub periodically by calling the hub driver code, and the hub driver code would allocate spare cogs to deal with any new USB device found. Ideally, there would be both a SPIN2 and PASM interface to call the USB hub poller from within the "main cog's" code. Even more ideal would be to design this as a "generic USB device poller" that can work whether the first downstream device is a USB hub, or not. That would fulfill the goal of a single USB port wired to the P2 and able to detect both direct USB device connections or via a USB hub. Then, a cog gets started to deal with any connected device.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.