Skip to content

mjkloeckner/arduino-task-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Bare Metal Task Scheduler

This is a simple program that implements a task scheduler. It executes a series of tasks attached to the scheduler after their specified task period (in milliseconds) has passed.

In the example, four leds are controlled: two blink at different rates, and the other two controlled by buttons.

Dependencies

  • avr-gcc and avr-libc to compile the code
  • avrdude for uploading the program to the microcontroller

Compile and upload to the board

Having the dependencies installed, compile the code running make or:

$ make compile

Then with the board connected to the computer, check the port with:

$ ls /dev/tty*

Often appears as /dev/ttyUSB* or /dev/ttyACM*, by default /dev/ttyUSB0 is used, to override this execute make asigning the corret port to the PORT shell variable, for example:

$ PORT=/dev/ttyUSB1 make upload

About

Arduino bare metal task scheduler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published