[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Use GPIOR* as a struct?
From: |
Dimitar Dimitrov |
Subject: |
Re: [avr-gcc-list] Use GPIOR* as a struct? |
Date: |
Mon, 30 Jan 2006 23:17:32 +0200 |
User-agent: |
KMail/1.9.1 |
On 30.1.2006 16:46, Lars Noschinski wrote:
> I tried
> #define flags ((struct status_flags)GPIOR1)
> but gcc throws an "error: conversion to non-scalar type requested".
This should work:
#define flags ( * ( (struct status_flags*) ((void*)(&GPIOR1)) ) )
pgpAqTLjvkOjd.pgp
Description: PGP signature