Project

General

Profile

Revision 1207

Added usb_puts_P

View differences:

serial.c
154 154
}
155 155

  
156 156
/**
157
 * Sends a sequence of characters from program space over USB.
158
 *
159
 * @param s the string to send
160
 **/
161
void usb_puts_P (PGM_P s) {
162
    char buf;
163
	
164
    while (memcpy_P (&buf, s, sizeof (char)), buf!=0) {
165
        usb_putc (buf);
166
        s++;
167
    }
168
}
169

  
170

  
171

  
172
/**
157 173
 * Returns the first character in the buffer received from USB.
158 174
 * This function blocks execution until a character has been received.
159 175
 * xbee_init must be called before this function may be used.

Also available in: Unified diff