[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Use GPIOR* as a struct?
From: |
Lars Noschinski |
Subject: |
[avr-gcc-list] Use GPIOR* as a struct? |
Date: |
Mon, 30 Jan 2006 15:46:15 +0100 |
User-agent: |
mutt-ng devel (Linux) |
Hello!
Some Atmels provide General Purpose IO registers, which are just made
for stuff like global flags. So I wonder if there is a possibility to
use a struct (bitfield) on an IO register?
I tried
#define flags ((struct status_flags)GPIOR1)
but gcc throws an "error: conversion to non-scalar type requested".
- [avr-gcc-list] Use GPIOR* as a struct?,
Lars Noschinski <=