cancel
Showing results for 
Search instead for 
Did you mean: 

example: btjt I2C_SR3, BUSY, label; bit BUSY not defined

s1975
Associate II
Posted on August 01, 2013 at 11:24

maybe I make not correct entry?

so works:  

#define BUSY #1

...

btjt I2C_SR3, BUSY, label

...

if BUSY not defined:

;#define BUSY #1

...

btjt I2C_SR3, BUSY, label

...

so not works

BUSY isn't present on the map? or or i have not a right record?

2 REPLIES 2
fggnrc2
Associate II
Posted on August 01, 2013 at 11:45

A microcontroller hardware definition is stored in an include file.

For instance, I2C_SR3 is taken from this file.

This include file, is seldom incomplete, because it doesn't define the bits inside an hardware register, as it should be for I2C_SR3_BUSY bit.

If you want to remove these errors, you have to insert your definitions in the original include file so that your new projects will benefit.

There is a annoying thing: when you upgrade STVD, your ''extensions'' will be lost!

s1975
Associate II
Posted on August 01, 2013 at 11:50

thank you!