X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=xbee_atcmd.h;h=84f222328f2eb2dfd767dbc36b22a8037dd4a96a;hp=327df8b8f3a0f33d749a9e0b6fbddba45a3342ab;hb=f74db5fd03bcd38af3ca533e7531dd70454dfaaf;hpb=d6014994e06ebe952d51bef2e36a795f624c4b4d diff --git a/xbee_atcmd.h b/xbee_atcmd.h index 327df8b..84f2223 100644 --- a/xbee_atcmd.h +++ b/xbee_atcmd.h @@ -40,22 +40,15 @@ /* list of xbee at commands */ struct xbee_atcmd { - prog_char *name; - prog_char *desc; + PGM_P name; + PGM_P desc; unsigned int flags; - prog_char *help; + PGM_P help; }; -struct xbee_atcmd_pgm { - prog_char *name; - prog_char *desc; - unsigned int flags; - prog_char *help; -} PROGMEM; - -extern struct xbee_atcmd_pgm xbee_atcmd_list[]; +extern const struct xbee_atcmd PROGMEM xbee_atcmd_list[]; -struct xbee_atcmd_pgm *xbee_atcmd_lookup_name(const char *atcmd_str); -struct xbee_atcmd_pgm *xbee_atcmd_lookup_desc(const char *desc); +const struct xbee_atcmd *xbee_atcmd_lookup_name(const char *atcmd_str); +const struct xbee_atcmd *xbee_atcmd_lookup_desc(const char *desc); #endif /* _xBEE_ATCMD_H_ */