4 * email: daniel.otte@rub.de
7 * components to help implementing simple command based interaction
13 #include <avr/pgmspace.h>
15 int16_t findstring_d0(const char* str, const char* v){
21 while(*v++) /* go to the next string */
28 int16_t findstring_d0_P(const char* str, PGM_P v){
30 while(pgm_read_byte(v)){
31 if(!strcmp_P(str, v)){
34 while(pgm_read_byte(v++)) /* go to the next string */
41 int16_t execcommand_d0_P(const char* str, PGM_P v, void(*fpt[])(void) ){
43 while(pgm_read_byte(v)){
44 if(!strcmp_P(str, v)){
48 while(pgm_read_byte(v++)) /* go to the next string */