Re: [PIC] PIC18F24Q10 header #define

Jason White <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <CAOFvGD4OGFX_QiXnazaqj2wxZBcwPz_cksO=-o7b1LRHti_NRw@mail.gmail.com>
It defines a macro symbol called NVMADRH

And happens to replace it with the text that is identical to the name.

In other words, next to nothing.

It permits the symbol to be checked for by other preprocessor directives.
And allows the name to be changed, I suppose.

I always found the microchip headers to be a bit cryptic.

On Thu, Oct 24, 2024 at 2:26 PM Neil <[email protected]> wrote:

> This is in the pic18F24q10.h header file...
>
> // Register: NVMADRH
> #define NVMADRH NVMADRH
> extern volatile unsigned char           NVMADRH __at(0xF7A);
> #ifndef _LIB_BUILD
> asm("NVMADRH equ 0F7Ah");
> #endif
>
> Can anyone explain what the #define "NVMADRH NVMADRH" line does?
>
> Thanks,
> -Neil
>
> --
> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
> View/change your membership options at
> https://mailman.mit.edu/mailman/listinfo/piclist
>


-- 
Jason White
-- 
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
https://mailman.mit.edu/mailman/listinfo/piclist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.