Skip to content

AllenMcAfee/Smoothie2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smoothie2

(Attempt at) A Smoothie firmware port to the Smoothieboard v2 boards.

The current plan, is only to code as much as is needed to test the various peripherals on the v2-pro board.

However, a minimal implementation of the Kernel/Module system is ported from Smoothie1

Once the testing features are added, I plan to try to port minimal Smoothie motion control features

Compiling

First, go into gcc4mbed

cd gcc4mbed/

Then, install the toolchain

./linux_install

Finally, setup the build environment

./BuildShell

Then go to the Smoothie2 source code

cd ../src/

And finally compile the code

make

TODO : 

Things that are broken during the port and should be added back as things progress ( some things might be missing here. I try to use the TOADDBACK label when commenting things so search for that too ) : 

  • In GcodeDispatch.cpp : Removed dependency to Pauser.h
  • In Switch.cpp : Commented out all of the set_low_on_debug stuff
  • In SlowTicker.h and Hook.h : Using doubles instead of ints for intervals/frequencies and counting down. Done to accomodate mBed, but dirty costly hack
  • In SlowTicker.h : Assuming it's fine to use mBed for this, we can remove a lot of code and just rely fully on mBed
  • In RingBuffer.h : Removed the irq stuff
  • In Laser.cpp : PWM pin is broken, needs to be fixed

Things changed from Smoothie1 :

  • Pin now uses mBed instead of registers
  • SlowTicker now uses mBed instead of registers
  • StepTicker now uses mBed instead of register
  • Various "waits" now use mBed's Timer

Planned refactors : 

  • Remove the checksum system for config options
  • Try to read config directly from SD card without cache ( as smoothie used to do ) now that we have SDIO
  • Queue refactor ( see wiki )
  • Adding MTP and removing MSD for USB
  • Full rewrite based on a RTOS

About

(Attempt at) A Smoothie firmware port to the Smoothieboard v2 boards.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 54.9%
  • C++ 41.6%
  • Makefile 2.9%
  • Other 0.6%