0
\$\begingroup\$

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.

\$\endgroup\$
  • \$\begingroup\$ The 8051 compilers support code memory directly. \$\endgroup\$ – Turbo J Dec 4 '18 at 12:25
  • \$\begingroup\$ @TurboJ so should I #define them as simple variables. For eg. prog_char = char. Using IAR embedded workbench for 8051 btw \$\endgroup\$ – Mohsin Dec 4 '18 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.