struct s3c24xx_uart_info

本文介绍了一个用于S3C24XX系列处理器UART串口通信配置的结构体s3c24xx_uart_info。该结构体定义了串口的基本属性,包括名称、类型、FIFO大小及各种控制标志等,并提供了获取和设置时钟源、重置端口等功能的函数指针。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/drivers/tty/serial/samsung.h

struct s3c24xx_uart_info {

    char            *name;
    unsigned int        type;
    unsigned int        fifosize;
    unsigned long        rx_fifomask;
    unsigned long        rx_fifoshift;
    unsigned long        rx_fifofull;
    unsigned long        tx_fifomask;
    unsigned long        tx_fifoshift;
    unsigned long        tx_fifofull;

    /* uart port features */

    unsigned int        has_divslot:1;

    /* clock source control */

    int (*get_clksrc)(struct uart_port *, struct s3c24xx_uart_clksrc *clk);
    int (*set_clksrc)(struct uart_port *, struct s3c24xx_uart_clksrc *clk);

    /* uart controls */
    int (*reset_port)(struct uart_port *, struct s3c2410_uartcfg *);
};
static struct hc32_uart_platform UART_platforms[UART_MAX_CHANNEL] = { {//uart_1 &uart_cfg_type[RS485_CHANNEL_2] //struct hc32_uart_cfg_typess USART_STOPBIT_1BIT, USART_DATA_WIDTH_8BIT, 9600U, }, {//uart_3 &uart_cfg_type[RS485_CHANNEL_0] //struct hc32_uart_cfg_typess USART_STOPBIT_1BIT, USART_DATA_WIDTH_8BIT, 9600U, }, {//uart_4 &uart_cfg_type[UART_CHANNEL_4] //struct hc32_uart_cfg_typess USART_STOPBIT_1BIT, USART_DATA_WIDTH_8BIT, 9600U, }, {//uart_6 &uart_cfg_type[RS485_CHANNEL_1] //struct hc32_uart_cfg_typess USART_STOPBIT_1BIT, USART_DATA_WIDTH_8BIT, 9600U, }, };static struct hc32_uart_platform UART_platforms[UART_MAX_CHANNEL] = ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",84 Warning[Pe172]: external/internal linkage conflict with previous declaration at line 23 of "D:\code\P76\arch\HC32F467\Uart_Cfg.h" static struct hc32_uart_platform UART_platforms[UART_MAX_CHANNEL] = ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",84 Error[Pa165]: incompatible declarations "struct hc32_uart_platform const UART_platforms[4]" (declared at line 23 of "D:\code\P76\arch\HC32F467\Uart_Cfg.h") "struct hc32_uart_platform UART_platforms[4]" (declared at line 84) &uart_cfg_type[RS485_CHANNEL_2] //struct hc32_uart_cfg_typess ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",87 Error[Pe059]: function call is not allowed in a constant expression &uart_cfg_type[RS485_CHANNEL_0] //struct hc32_uart_cfg_typess ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",93 Error[Pe059]: function call is not allowed in a constant expression &uart_cfg_type[UART_CHANNEL_4] //struct hc32_uart_cfg_typess ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",99 Error[Pe059]: function call is not allowed in a constant expression &uart_cfg_type[RS485_CHANNEL_1] //struct hc32_uart_cfg_typess ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",105 Error[Pe059]: function call is not allowed in a constant expression static struct hc32_uart_platform UART_platforms[UART_MAX_CHANNEL] = ^ "D:\code\P76\arch\HC32F467\Uart_Lcfg.c",84 Warning[Pe177]: variable "UART_platforms" was declared but never referenced
07-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值