1 /* Copyright (C) 2013 Czech Technical University in Prague
4 * - Carlos Jenkins <carlos@jenkins.co.cr>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 * Serial Communication Interface RPP API implementation file.
25 * RPP API documentation.
31 #if rppCONFIG_INCLUDE_SCI == 1
34 #if rppCONFIG_DRV == 1
38 static boolean_t initialized = FALSE;
47 #if rppCONFIG_DRV == 1
54 int rpp_sci_printf(const char *format, ...)
60 va_start(argList, format);
62 length = vsnprintf(str, sizeof(str), format, argList);
67 #if rppCONFIG_DRV == 1
68 drv_sci_send((uint32_t)length, (uint8_t*)str);
76 #endif /* rppCONFIG_INCLUDE_SCI */