Project

General

Profile

Revision 266

stuff

View differences:

proj/include/nctp.h
13 13
 */
14 14
int nctp_send(int port, size_t num, uint8_t* ptr[], size_t sz[]);
15 15

  
16
int ntcp_get(int port, uint8_t *dest);
17

  
16 18
#endif //NCTP_H_INCLUDED
proj/src/hltp.c
9 9
    size_t    sz[] = {strlen(p)};
10 10
    return nctp_send(port, 1, ptr, sz);
11 11
}
12

  
13
int hltp_get_string(int port, char *p){
14
    return nctp_get(port, p);
15
}
proj/src/proj.c
236 236
                            #endif
237 237
                            #ifdef DIOGO
238 238
                            case COM1_IRQ:
239
                                printf("You've got mail.\n");
239
                                char *s = NULL;
240
                                hltp_get_string(1, s);
241
                                printf("You've got mail: %s\n", s);
240 242
                                break;
241 243
                            #endif
242 244
                            }

Also available in: Unified diff