blob: 575cfc38757a2bcbde909eb22bfaeb286d39ab5f [file] [log] [blame]
agorararmarde5780bf2020-12-09 21:27:56 +00001/*
agorararmard6c766a82020-12-10 18:13:12 +02002 * SPDX-FileCopyrightText: 2020 Efabless Corporation
agorararmarde5780bf2020-12-09 21:27:56 +00003 *
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.
agorararmardafa96ea2020-12-09 23:37:31 +020015 * SPDX-License-Identifier: Apache-2.0
agorararmarde5780bf2020-12-09 21:27:56 +000016 */
17
shalan0d14e6e2020-08-31 16:50:48 +020018void putchar(char c)
19{
20 if (c == '\n')
21 putchar('\r');
22 reg_uart_data = c;
23}
24
25void print(const char *p)
26{
27 while (*p)
28 putchar(*(p++));
29}