serial.h
来自「os arm os arm os arm os arm os arm os ar」· C头文件 代码 · 共 35 行
H
35 行
/*
* ApOS (Another Project software for s3c2410)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Copyright caiyuqing
*
*/
#ifndef _SERIAL_H
#define _SERIAL_H
#include <stdio.h>
#define INT_UART0_ENABLE (~(1<<28))
#define INT_UART0_DISABLE (1<<28)
#define INT_TXD0_DISABLE (0x1<<1)
#define INT_RXD0_DISABLE (0x1<<0)
#define INT_TXD0_ENABLE (~(0x1<<1))
#define INT_RXD0_ENABLE (~(0x1<<0))
#define TXDREADY (1<<2)
#define RXDREADY (1)
int uart0_config();
void uart0_interrupt_enabele();
void uart0_interrupt_disabele();
void uart0_interrupt_routine();
void uart0_send_byte(char data);
void uart_send_string(char *pt);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?