ARM Technical Support Knowledge Articles


Applies to: C251 C Compiler



How do I access the 251's extended bits in C?


You may access the extended bit area of the 251 using C251 version 2. Support for the extended bit area is not provided in C251 version 1.x. You can easily declare and use bits with the ebdata type as shown below.

void main (void)
bit ebdata bbb;   /* declare an extended bit-area bit */

bbb = 1;   /* use an extended bit-area bit */

To access a global extended bit declared in another file, use the following declaration:

extern bit ebdata b1;

void main (void)
b1 = 0;

Article last edited on: 2004-05-08 16:15:28

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential