Code Monkey home page Code Monkey logo

ucrcs120b_avrtools's Introduction

AVR Toolchain for CS120B and CS122A at UC Riverside

This repository provides template Makefiles, main.c and header files along with a project creation script for embedded systems courses at UC Riverside.

Installation

You need to make sure that you have downloaded and installed SimAVR, AVR toolchain which includes: AVR-GCC, AVR-GDB, and (optionally) AVRDUDES. You can also try installing AVRDUDESS (yes the extra 's' is intentional) for a graphical programming interface.

  • Clone or download the repository to a location on your computer.
  • Edit the SIMAVRDIR=SET YOUR SIMAVR DIRECTORY HERE line in the templates/MakefileTemplate to be the path to your SimAVR installation.
  • Edit the #include "include/simavr/avr/avr_mcu_section.h" in the createProject.sh to be the relative path from your SIMAVRDIR (from the previous step) to the avr_mcu_section.h file

Usage

  • /path/to/repo/createProject.sh
 Creating a new AVR project. Input the following or hit enter for the [default].
 Project name: <newProject>
 Partners name [none]: 
 Microcontroller [atmega1284]: 
 Clock Frequency [8000000]: 
 Creating project...
 Creating project directory structure...
 Creating project templates for source, tests, and Makefile...
 Project created, to continue working: 

	1) Change working directory into project directory
	2) Initialize the directory to a GitHub repo: 
		$git init
	3) Add the files to the github repo: 
		$git add .
	4) Make a first commit: 
		$git commit -m "Initializing repositor"
	5) Create a project at github.com
	6) In terminal, add the URL to your project: 
		$git remote add origin <remote repository URL>
	7) Verify the remote repository: 
		$git remote -v
	8) Push the changes to GitHub: 
		$git push -u origin master
  • And start developing

ucrcs120b_avrtools's People

Contributors

jmcda001 avatar andrewlvovsky avatar

Stargazers

Justin avatar  avatar Garrett avatar Silicon Luo avatar

Watchers

James Cloos avatar

ucrcs120b_avrtools's Issues

Preprocessor directive for macOS

Currently, macOS users run into some issues using the sed command without adding ".bak". It would be nice to add preprocessor directives to detect the user's OS so that the correct command could run.

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.