📄 serial.h
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -