Coder Social home page Coder Social logo

mecrisp-cube's People

Contributors

spyren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mecrisp-cube's Issues

Is RTOS working?

The last commit to rtos.s is marked "WIP" and lack of docs or examples makes it difficult to understand how to use it.

The osThreadNew says "// The new thread needs its own data stack!", but doesn't it need both stacks?

Is it that osThreadNew is more of an internal word, and as a user I should simply "start-task" and two stacks are set up and I am good to go?

In rtos_osNewDataStack there is "ldr r0, =256" and further down a "adds r7, r0, #128". Shouldn't those be the same values (assuming r7 contains top of data stack address)?

Doesn't "terminate" word need to reclaim the allocated data stack?

How is one supposed to create a TCB? Don't we need xTaskCreate() and/or xTaskCreateStatic() wrappers? Or maybe I am just supposed to do ' io-scan TCB construct start-task (where io-scan is my never-ending background thread/task)

Use case: NanoVNA

I thought I would write a little about this use case:

The NanoVNA analyser is a synthesised signal source, and tracking receiver that follows the source frequency, controlled by an STM32 equivalent. The hardware of this unit is very versatile.
The nature of using this sort of gear is that there is an almost unlimited number of special applications. It is impossible (and foolish to try) to support them all into the firmware.
It is both a standalone device, and one controlled by PC application software through a (serial) port. The authors of the pc software are not the authors of the firmware. When a new function at the PC level needs a new command in the firmware, it can't easily be implemented. When a new application (e.g use it as a signal generator) is outside the scope of the product, the designers won't (and shouldn't really) add it.

Where does Mecrisp-cube fit in?
Firstly the program is in C, and is not going to be rewritten in forth.
It needs/has a command interpreter for the external interface.
By adding Forth you get the command interpreter function for free.
You get macro capability to speed up repetitive command sequences for free. By using forth, the macro capability is essentially a full, unlimited programming language.
Now any normal task can be accomplished from the pc hosted software sending forth commands.
The end user / pc software author, can automate and extend, without touching the firmware.

If extensions require more firmware functionality, it is now only required to expose a low level function. A new function does not require the firmware author to implement anything above the basic level. Once that is done , users can handle most of the work involved in a special function: the UI, configuration and display. None of that falls on the firmware author.

As an example, a requested feature is an offset between the signal generator and detector frequencies. To implement this the usual way, means adding a new function to do it, a new serial command, and new offset parameters.
In Forth, it can be implemented immediately, as the set frequency function is a basic exposed function.

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.