1 /* 2 * Copyright (c) 2017 Nordic Semiconductor ASA 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef H_SERIAL_ADAPTER 18 #define H_SERIAL_ADAPTER 19 20 int 21 console_out(int c); 22 23 void 24 console_write(const char *str, int cnt); 25 26 int 27 boot_console_init(void); 28 29 int 30 console_read(char *str, int str_cnt, int *newline); 31 32 #endif // SERIAL_ADAPTER 33