[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] PreProcessor Warnings
From: |
Ramkumar Rengaswamy |
Subject: |
[avr-gcc-list] PreProcessor Warnings |
Date: |
Fri, 13 Aug 2004 03:17:02 -0700 (PDT) |
Hi,
Thanks Ted and everyone for responding to my previous queries. It was a
great help !!
I am receiving a pre-processor warning on the following code snippet.
------------------------------------------------------
#define FLASH_PAGE_NUM 400
#define SPM_PAGESIZE 256
#define FLASH_PAGE_ADDR (FLASH_PAGE_NUM * SPM_PAGESIZE)
uint16_t a = pgm_read_word_far(FLASH_PAGE_ADDR);
-------------------------------------------------------
I know that I am reading the correct address and therefore would like to
know if there is any way to supress this warning ?
Thanks,
-Ram