Skip to main content
Visitor II
August 1, 2013
Question

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

  • August 1, 2013
  • 2 replies
  • 556 views
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?

    This topic has been closed for replies.

    2 replies

    Visitor II
    August 1, 2013
    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!

    s1975Author
    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 11:50

    thank you!