1 /* 2 * Copyright (c) 2022 HPMicro 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef _UART_H 17 #define _UART_H 18 19 #include "los_compiler.h" 20 #include "los_event.h" 21 #include "los_reg.h" 22 #include "soc.h" 23 24 #include <stdio.h> 25 #include "hpm_common.h" 26 #include "hpm_clock_drv.h" 27 #include "hpm_soc.h" 28 #include "hpm_soc_feature.h" 29 #include "hpm_uart_drv.h" 30 31 #ifdef __cplusplus 32 #if __cplusplus 33 extern "C" { 34 #endif 35 #endif 36 37 extern INT32 UartPutc(INT32 c, VOID *file); 38 39 extern VOID UartInit(VOID); 40 extern INT32 UartGetc(VOID); 41 extern VOID Uart0RxIrqRegister(VOID); 42 43 extern EVENT_CB_S g_shellInputEvent; 44 45 #ifdef __cplusplus 46 #if __cplusplus 47 } 48 #endif /* __cplusplus */ 49 #endif /* __cplusplus */ 50 #endif 51