Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 – 3 of 3) sorted by relevance

/examples/libc/
A Dex5.c17 #define BUFFER_SIZE 16 macro
22 int buffer[BUFFER_SIZE]; /* the actual data */
32 sem_init(&b->sem_write, 0, BUFFER_SIZE - 1); in init()
47 if (b->writepos >= BUFFER_SIZE) b->writepos = 0; in put()
62 if (b->readpos >= BUFFER_SIZE) b->readpos = 0; in get()
A Dex2.c17 #define BUFFER_SIZE 16 macro
22 int buffer[BUFFER_SIZE]; /* the actual data */
45 while ((b->writepos + 1) % BUFFER_SIZE == b->readpos) { in put()
52 if (b->writepos >= BUFFER_SIZE) b->writepos = 0; in put()
71 if (b->readpos >= BUFFER_SIZE) b->readpos = 0; in get()
A Dtermios_test.c21 #define BUFFER_SIZE 64 macro
298 pBuf = (unsigned char *)rt_malloc(BUFFER_SIZE); in termios_test_entry()
301 memset(pBuf, 0x00, BUFFER_SIZE); in termios_test_entry()

Completed in 8 milliseconds