Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] C programming Q

2005-02-10 by Javier Fiasche

Ok thanks, think that problem solved
Javier
-----Mensaje original-----
De: Valerij Avrealij [mailto:avrealij@pisem.net]
Enviado el: Jueves, 10 de Junio de 2004 09:50 a.m.
Para: Javier Fiasche
Asunto: Re: [AVR-Chat] C programming Q

Çäðàâñòâóéòå, Javier.

Âû ïèñàëè 10 ôåâðàëÿ 2005 ã., 14:31:54:


> Hey all, i have a little C programming question....
> I am using a Atmel Dataflash Library which contais the next sentence
>
> DF_DD|=(1<>
> i am ; defining:
> #define DF_DD DDRB // SPI Port Data Direction Register
> #define DF_PORT PORTB // SPI Port Register
> #define DF_SS PORTB.4 // Chip Select bit
> #define DF_SCK PORTB.7 // SPI Clock bit
> #define DF_MOSI PORTB.5 // SPI Master Out bit
> #define DF_MISO PINB.6 // SPI Master In bit
> #define DF_RDY PINC.5 // RDY/BSY Flag (Hardware)

Use such definitions
#define DF_SS 4 // Chip Select bit
#define DF_SCK 7 // SPI Clock bit
#define DF_MOSI 5 // SPI Master Out bit
#define DF_MISO 6 // SPI Master In bit
#define DF_RDY 5 // RDY/BSY Flag (Hardware)

You are using an bit shifting. You cann't shift an C extension
(POTRX.)

--

Valerij


Visita www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.