avr-gcc kerdes
Leto Tokarev
leto at irisz.hu
Fri Aug 27 11:25:44 CEST 2004
Ja hogy az atmega128 alapbol atmega103 compatible modban fut.. szoljatok
:)
Leto
On Fri, 27 Aug 2004, Leto Tokarev wrote:
> Udv urak!
>
>
> Ez mukodik:
> -----------------------------------
> #include <avr/io.h>
>
> int main(void) {
> sbi(DDRA,PORT7);
> while (1) {
> sbi(PORTA,PORT7);
> cbi(PORTA,PORT7);
> }
> }
> -----------------------------------
>
> Ez nem mukodik:
> -----------------------------------
> #include <avr/io.h>
> void init(void) {
> sbi(DDRA,PORT7);
> }
>
> int main(void) {
> init();
> while (1) {
> sbi(PORTA,PORT7);
> cbi(PORTA,PORT7);
> }
> }
> -----------------------------------
>
> De most mi szivat??
> ATmega8-on jo mind a ketto, 128-on nem.
>
> Thx;
>
>
>
> Leto
>
> -----------------------------------
> Szponzorunk: http://tonerbolt.hu/
>
More information about the Elektro
mailing list