avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Student needs help


From: D I Freeman
Subject: [avr-gcc-list] Student needs help
Date: Tue, 2 Mar 2004 03:54:47 +0000
User-agent: Mutt/1.4.1i

Hi all,

I need some help please.

I was hoping to use the SPI functions from avrlib[1]. Can I use then 'out the
box' or will I need to modify them?

Does anyone know how I can contact the maintainer for avrlib? I am getting
compiler errors. And can't work out how to fix them.

Secondly, in the docs for glibc (avr version) in the simple project section,
there is this section of code:

#if defined(__AVR_AT90S2313__)
#  define OC1 PB3
#  define OCR OCR1
#  define DDROC DDRB
#elif defined(__AVR_AT90S2333__) || defined(__AVR_AT90S4433__)
#  define OC1 PB1
#  define DDROC DDRB
#  define OCR OCR1
#elif defined(__AVR_AT90S4414__) || defined(__AVR_AT90S8515__) || \
      defined(__AVR_AT90S4434__) || defined(__AVR_AT90S8535__) || \
      defined(__AVR_ATmega163__)
#  define OC1 PD5
#  define DDROC DDRD
#  define OCR OCR1A
#else
#  error "Don't know what kind of MCU you are compiling for"
#endif

#if defined(COM11)
#  define XCOM11 COM11
#elif defined(COM1A1)
#  define XCOM11 COM1A1
#else
#  error "need either COM1A1 or COM11"
#endif

What of this do I need? I am using the Atmega162, does anyone have simple
c source file, which outlines the basic set up I need for an Atmega162 program,
that I could take for inspiration?

Does anyone have any further documentation or code examples, of using the 
internal CRC functions for varifying Memory integrity?

Thanks

D

[1] http://hubbard.engr.scu.edu/embedded/avr/avrlib/index.html



_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]