cutie-club / cfw-core Goto Github PK
View Code? Open in Web Editor NEWCustom computer keyboard firmware using FreeRTOS™.
License: GNU General Public License v3.0
Custom computer keyboard firmware using FreeRTOS™.
License: GNU General Public License v3.0
Currently we have been writing cfw-core in C, C can be deceptively simple leading to common undiagnosed and difficult to debug problems
Going forward we should at least evaluate the possibilities of writing in different languages, here are our current options:
Tasks:
Occasionally, the firmware incorrectly reports keypresses to the host. There doesn't seem to be a pattern - apart from noticing it the most on spacebar, but I'd wager this a red herring, as the spacebar is the most pressed key on the keyboard.
Currently we have a loose structure in our firmware files, including header files for drivers inside of src/drivers
. Is this a good way to structure the project?
As part of this card, we should come up with a solid project structure that gives us room to grow and add more drivers and features to the project without confusion. We should consider the following hypotheticals, as well as everything already supported including matrix scanning, USB communication:
Outcomes:
Blocked by #7
Currently we have been making use of FreeRTOS, it has been serving us well, however we are considering not relying on an RTOS or maybe a different RTOS, as some overhead will always tend to be introduced when using an RTOS and we do not want to impact typing experience for our users
Tasks:
Currently, to generate C code, we would need to use string concatenation in our Typescript tool and write the result to a file. As a cleaner alternative, we should look into the ways to implement templating in a C file.
Some options could include:
Feel free to add more options and ideas as this evolves.
The outcome of this card would be a way (or multiple ways) to generate C files dynamically using templates.
Blocked by #7
Currently we use a Typescript tool to convert YAML configuration files into CMake compilation options, and then build the firmware using this. This is not scalable as we have to include options for every driver and architecture and feature, etc. This is OK for some options, but for a highly configurable system, it is cumbersome and error-prone.
We need feedback on the following:
The outcome of this card should be a design document for the journey of building firmware from config files. The design document should cover:
y2kparser
including any generated filesA keymap is a way to map physical switch positions into a standardised grouping
A layout is a way to populate a keymap with keycodes
Currently layouts are unsupported. Before implementing them, we would like to design (from the user perspective) how keymaps and layouts will be specified in our YAML configuration files, and how they will be linked to keyboards.
The outcome of this card should be:
Currently CMake is the build tool for cfw. CMake is clunky and doesn't fit our workflow very well - it's not nice to use.
Does Premake fit our workflow better? Is it more extensible? Can it be used to build our project?
As an outcome of this card, we should have a working branch of cfw-core that builds with Premake.
Blocked by #7
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.