OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [avr/] [progmem.h] - Blame information for rev 714

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
#define PROGMEM __attribute__((progmem))
2
 
3
#define PSTR(s)                                             \
4
    (__extension__({                                        \
5
            static const char __c[] PROGMEM = (s);          \
6
            &__c[0];}))
7
 
8
#define pgm_read_char(addr)                                 \
9
    (__extension__({                                        \
10
            unsigned int __addr16 = (unsigned int)(addr);   \
11
            char __result;                                  \
12
            __asm__ ("lpm %0, %a1"                          \
13
                     : "=r" (__result) : "z" (__addr16));   \
14
            __result; }))

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.