This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: Adapting <Avr/pgmspace.h> for CC2530

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Goal: Adapt ENC28J60 codes written for ATMega328p (http://tuxgraphics.org/electronics/201204/embedded-ethernet-client.shtml) for CC2530.

Problem: No equivalent library for AVR/pgmspace.h available for easy transition.

Need to make equivalents for:

  1. prog_char
  2. uint8_t
  3. *progmem_s
  4. pgm_read_byte()
  5. PROGMEM

Any help regarding this issue will be highly appreciated. I'm using IAR embedded workspace for 8051