DOWNLOAD

CHANGES

SCREENSHOTS

DOCUMENTATION



module whatos.avr

This Python module extends whatos.embedded with some tools for developing with Atmel's AVR microcontrollers, avrgcc, and target programming using uisp. It is highly specific and is included primarily for demonstration purposes.

Contents

All

object avr_gcc (whatos.core.target)

A target for Atmel AVR 8-bit microcontroller family which avr-gcc compiler.

attribute endianess = 'little'

attribute header = '#include <inttypes.h>'

attribute wint16 = 'int16_t'

attribute wint32 = 'int32_t'

attribute wint8 = 'int8_t'

attribute wuint16 = 'uint16_t'

attribute wuint32 = 'uint32_t'

attribute wuint8 = 'uint8_t'

object avr_system (whatos.embedded.remote_system)

A whatos.embedded.remote_system which automates compiling flash rom images using avr-gcc and programming images using uisp.

attribute cflags = '-mmcu=atmega8'

A string containing C flags to be passed verbatim to avr-gcc

attribute sources = 'main.c'

A string containing a white-space separated list of other source files to be linked together into the final flash rom image file.

attribute uispflags = '-dprog=stk500 -dserial=/dev/ttyUSB1 -dpart=ATmega8'

A string containing uisp flags to be passed verbatim to uisp.

method avrbuild (self)

Build flash rom image using avr-gcc.

method avrprog (self)

Program the flash rom image using uisp.
© Mircea Hossu () WhatOS 2.0.3  (2006 Feb 26)