Getting Started With Using the Library
To use this library:
- add the desired modules (.c files) to your project with any cooresponding hal_ c files. – do not add hal_timing.c when adding timing.c (this is a single exception)
- add the \ include directory to the compilers include directories
- add the \ hal \ processor_family \ processor_number directory to the compilers include directories
- enjoy
For example to make a simple project which says "Hello World" every 10 seconds you would add the following c files to your project:
- buffer.c (used by the UART module)
- buffer_printf.c (optional - used by the UART module if you use UART_printf)
- hal_uart.c (found in the hal \ processor_family \ processor_number folder
- list.c (used by the task management module)
- task.c
- timing.c (used by the task management module)
- uart.c
Your project_settings.h may look something like the following:
#ifndef _PROJECT_SETTINGS_H_
#define _PROJECT_SETTINGS_H_
#define USE_MODULE_TASK
#define USE_MODULE_TIMING
#define USE_MODULE_LIST
#define USE_MODULE_BUFFER
#define USE_MODULE_BUFFER_PRINTF
#define USE_MODULE_UART
#define USE_UART2
#define FCPU 8000000L
#define PERIPHERAL_CLOCK FCPU
#endif // _SYSTEM_H_
The main for this project may look something like this:
#include "project_settings.h"
#include "hal_general.h"
#define UART_CHANNEL 2
void hello_world(void) {
UART_Printf(UART_CHANNEL, "Hello World\r\n");
}
{
}
Contributors
Major Contributors:
Minor Contributors:
- Mike Bucceroni
- Rob Capo
- Charlotte Cecere
- Matt Delengowksi
- Bradley Ebinger
- James Ethridge
- Nick Felker
- Chris Fredrickson
- Stephen Glass
- Nathan Hoffman
- Joshua Haas
- Tom Haskell
- Jehandad Kahn
- Nicholas Klein
- Josh Klodnicki
- Nikola Kosaric
- George Lecakes
- Matthew Lizzio
- Alex Marino
- Johnathan McAvoy
- Robert Page
- Ryan Patterson
- Lonnie Souder
- Michael Source
- DJ Stahnberger
- Stephen Szymczak
- Jonathan Whalen
- Rowan ECE Embedded Class of 2012
- Rowan ECE Embedded Class of 2013
- Rowan ECE Embedded Class of 2014
- Rowan ECE Embedded Class of 2015
- Rowan ECE Embedded Class of 2016
- Rowan ECE Embedded Class of 2017
- Rowan ECE Embedded Class of 2018
- Rowan ECE Embedded Class of 2019
If you have personally contributed to this work and are not listed please email muhlb.nosp@m.aier.nosp@m.@rowa.nosp@m.n.ed.nosp@m.u