• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ PSC函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中PSC函数的典型用法代码示例。如果您正苦于以下问题:C++ PSC函数的具体用法?C++ PSC怎么用?C++ PSC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了PSC函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: PSC

CString CGenericProcessingMachine::ConfigurationName(void)
{
    if (PSC().VarDefined(GPM_VAR_NAME_CFG))
    {
        return PSC().VarNamed(GPM_VAR_NAME_CFG).GetString();
    }
    else
    {
        return DefaultConfigurationName();
    }
}
开发者ID:gbatanov,项目名称:cbp2make,代码行数:11,代码来源:stlgpm.cpp


示例2: mpc52xx_uart_break_ctl

static void
mpc52xx_uart_break_ctl(struct uart_port *port, int ctl)
{
    unsigned long flags;
    spin_lock_irqsave(&port->lock, flags);

    if ( ctl == -1 )
        out_8(&PSC(port)->command,MPC52xx_PSC_START_BRK);
    else
        out_8(&PSC(port)->command,MPC52xx_PSC_STOP_BRK);

    spin_unlock_irqrestore(&port->lock, flags);
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:13,代码来源:mpc52xx_uart.c


示例3: CreateConfiguration

void CGenericProcessingMachine::Initialize(void)
{
    CreateConfiguration();
    PSC().ProcessParameters(m_ParameterString);
    Configure(ConfigurationName());
    m_FileNameLength = 12;
}
开发者ID:gbatanov,项目名称:cbp2make,代码行数:7,代码来源:stlgpm.cpp


示例4: mpc52xx_uart_stop_rx

static void
mpc52xx_uart_stop_rx(struct uart_port *port)
{
    /* port->lock taken by caller */
    port->read_status_mask &= ~MPC52xx_PSC_IMR_RXRDY;
    out_be16(&PSC(port)->mpc52xx_psc_imr,port->read_status_mask);
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:7,代码来源:mpc52xx_uart.c


示例5: mpc52xx_uart_startup

static int
mpc52xx_uart_startup(struct uart_port *port)
{
    struct mpc52xx_psc *psc = PSC(port);

    /* Reset/activate the port, clear and enable interrupts */
    out_8(&psc->command,MPC52xx_PSC_RST_RX);
    out_8(&psc->command,MPC52xx_PSC_RST_TX);

    out_be32(&psc->sicr,0);	/* UART mode DCD ignored */

    out_be16(&psc->mpc52xx_psc_clock_select, 0xdd00); /* /16 prescaler on */

    out_8(&psc->rfcntl, 0x00);
    out_be16(&psc->rfalarm, 0x1ff);
    out_8(&psc->tfcntl, 0x07);
    out_be16(&psc->tfalarm, 0x80);

    port->read_status_mask |= MPC52xx_PSC_IMR_RXRDY | MPC52xx_PSC_IMR_TXRDY;
    out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);

    out_8(&psc->command,MPC52xx_PSC_TX_ENABLE);
    out_8(&psc->command,MPC52xx_PSC_RX_ENABLE);

    return 0;
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:26,代码来源:mpc52xx_uart.c


示例6: mpc52xx_uart_startup

static int
mpc52xx_uart_startup(struct uart_port *port)
{
	struct mpc52xx_psc __iomem *psc = PSC(port);
	int ret;

	/* Request IRQ */
	ret = request_irq(port->irq, mpc52xx_uart_int,
		SA_INTERRUPT | SA_SAMPLE_RANDOM, "mpc52xx_psc_uart", port);
	if (ret)
		return ret;

	/* Reset/activate the port, clear and enable interrupts */
	out_8(&psc->command,MPC52xx_PSC_RST_RX);
	out_8(&psc->command,MPC52xx_PSC_RST_TX);
	
	out_be32(&psc->sicr,0);	/* UART mode DCD ignored */

	out_be16(&psc->mpc52xx_psc_clock_select, 0xdd00); /* /16 prescaler on */
	
	out_8(&psc->rfcntl, 0x00);
	out_be16(&psc->rfalarm, 0x1ff);
	out_8(&psc->tfcntl, 0x07);
	out_be16(&psc->tfalarm, 0x80);

	port->read_status_mask |= MPC52xx_PSC_IMR_RXRDY | MPC52xx_PSC_IMR_TXRDY;
	out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);
	
	out_8(&psc->command,MPC52xx_PSC_TX_ENABLE);
	out_8(&psc->command,MPC52xx_PSC_RX_ENABLE);
		
	return 0;
}
开发者ID:BackupTheBerlios,项目名称:arp2-svn,代码行数:33,代码来源:mpc52xx_uart.c


示例7: mpc52xx_uart_start_tx

static void
mpc52xx_uart_start_tx(struct uart_port *port, unsigned int tty_start)
{
    /* port->lock taken by caller */
    port->read_status_mask |= MPC52xx_PSC_IMR_TXRDY;
    out_be16(&PSC(port)->mpc52xx_psc_imr,port->read_status_mask);
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:7,代码来源:mpc52xx_uart.c


示例8: mpc52xx_uart_shutdown

static void
mpc52xx_uart_shutdown(struct uart_port *port)
{
    struct mpc52xx_psc *psc = PSC(port);

    /* Shut down the port, interrupt and all */
    out_8(&psc->command,MPC52xx_PSC_RST_RX);
    out_8(&psc->command,MPC52xx_PSC_RST_TX);

    port->read_status_mask = 0;
    out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:12,代码来源:mpc52xx_uart.c


示例9: mpc52xx_psc_fifo_init

static void mpc52xx_psc_fifo_init(struct uart_port *port)
{
	struct mpc52xx_psc __iomem *psc = PSC(port);
	struct mpc52xx_psc_fifo __iomem *fifo = FIFO_52xx(port);

	out_8(&fifo->rfcntl, 0x00);
	out_be16(&fifo->rfalarm, 0x1ff);
	out_8(&fifo->tfcntl, 0x07);
	out_be16(&fifo->tfalarm, 0x80);

	port->read_status_mask |= MPC52xx_PSC_IMR_RXRDY | MPC52xx_PSC_IMR_TXRDY;
	out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask);
}
开发者ID:mpcdata,项目名称:tnetv107x-usb,代码行数:13,代码来源:mpc52xx_uart.c


示例10: mpc52xx_uart_send_xchar

static void
mpc52xx_uart_send_xchar(struct uart_port *port, char ch)
{
    unsigned long flags;
    spin_lock_irqsave(&port->lock, flags);

    port->x_char = ch;
    if (ch) {
        /* Make sure tx interrupts are on */
        /* Truly necessary ??? They should be anyway */
        port->read_status_mask |= MPC52xx_PSC_IMR_TXRDY;
        out_be16(&PSC(port)->mpc52xx_psc_imr,port->read_status_mask);
    }

    spin_unlock_irqrestore(&port->lock, flags);
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:16,代码来源:mpc52xx_uart.c


示例11: mpc52xx_uart_shutdown

static void
mpc52xx_uart_shutdown(struct uart_port *port)
{
	struct mpc52xx_psc __iomem *psc = PSC(port);

	/* Shut down the port.  Leave TX active if on a console port */
	out_8(&psc->command,MPC52xx_PSC_RST_RX);
	if (!uart_console(port))
		out_8(&psc->command,MPC52xx_PSC_RST_TX);

	port->read_status_mask = 0;
	out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);

	/* Release interrupt */
	free_irq(port->irq, port);
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:16,代码来源:mpc52xx_uart.c


示例12: mpc512x_psc_fifo_init

static void mpc512x_psc_fifo_init(struct uart_port *port)
{
	/* /32 prescaler */
	out_be16(&PSC(port)->mpc52xx_psc_clock_select, 0xdd00);

	out_be32(&FIFO_512x(port)->txcmd, MPC512x_PSC_FIFO_RESET_SLICE);
	out_be32(&FIFO_512x(port)->txcmd, MPC512x_PSC_FIFO_ENABLE_SLICE);
	out_be32(&FIFO_512x(port)->txalarm, 1);
	out_be32(&FIFO_512x(port)->tximr, 0);

	out_be32(&FIFO_512x(port)->rxcmd, MPC512x_PSC_FIFO_RESET_SLICE);
	out_be32(&FIFO_512x(port)->rxcmd, MPC512x_PSC_FIFO_ENABLE_SLICE);
	out_be32(&FIFO_512x(port)->rxalarm, 1);
	out_be32(&FIFO_512x(port)->rximr, 0);

	out_be32(&FIFO_512x(port)->tximr, MPC512x_PSC_FIFO_ALARM);
	out_be32(&FIFO_512x(port)->rximr, MPC512x_PSC_FIFO_ALARM);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:18,代码来源:mpc52xx_uart.c


示例13: mpc52xx_psc_read_char

static unsigned char mpc52xx_psc_read_char(struct uart_port *port)
{
	return in_8(&PSC(port)->mpc52xx_psc_buffer_8);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:4,代码来源:mpc52xx_uart.c


示例14: mpc52xx_psc_cw_disable_ints

static void mpc52xx_psc_cw_disable_ints(struct uart_port *port)
{
	out_be16(&PSC(port)->mpc52xx_psc_imr, 0);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:4,代码来源:mpc52xx_uart.c


示例15: mpc52xx_psc_stop_rx

static void mpc52xx_psc_stop_rx(struct uart_port *port)
{
	port->read_status_mask &= ~MPC52xx_PSC_IMR_RXRDY;
	out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:5,代码来源:mpc52xx_uart.c


示例16: mpc52xx_psc_write_char

static void mpc52xx_psc_write_char(struct uart_port *port, unsigned char c)
{
	out_8(&PSC(port)->mpc52xx_psc_buffer_8, c);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:4,代码来源:mpc52xx_uart.c


示例17: mpc52xx_psc_tx_rdy

static int mpc52xx_psc_tx_rdy(struct uart_port *port)
{
	return in_be16(&PSC(port)->mpc52xx_psc_isr)
	    & port->read_status_mask
	    & MPC52xx_PSC_IMR_TXRDY;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:6,代码来源:mpc52xx_uart.c


示例18: mpc52xx_psc_tx_empty

static int mpc52xx_psc_tx_empty(struct uart_port *port)
{
	return in_be16(&PSC(port)->mpc52xx_psc_status)
	    & MPC52xx_PSC_SR_TXEMP;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:5,代码来源:mpc52xx_uart.c


示例19: out_8

	/* Shut down the port, interrupt and all */
	out_8(&psc->command,MPC52xx_PSC_RST_RX);
	out_8(&psc->command,MPC52xx_PSC_RST_TX);
	
	port->read_status_mask = 0; 
	out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);

	/* Release interrupt */
	free_irq(port->irq, port);
}

static void 
mpc52xx_uart_set_termios(struct uart_port *port, struct termios *new,
                         struct termios *old)
{
	struct mpc52xx_psc __iomem *psc = PSC(port);
	unsigned long flags;
	unsigned char mr1, mr2;
	unsigned short ctr;
	unsigned int j, baud, quot;
	
	/* Prepare what we're gonna write */
	mr1 = 0;
	
	switch (new->c_cflag & CSIZE) {
		case CS5:	mr1 |= MPC52xx_PSC_MODE_5_BITS;
				break;
		case CS6:	mr1 |= MPC52xx_PSC_MODE_6_BITS;
				break;
		case CS7:	mr1 |= MPC52xx_PSC_MODE_7_BITS;
				break;
开发者ID:BackupTheBerlios,项目名称:arp2-svn,代码行数:31,代码来源:mpc52xx_uart.c


示例20: mpc52xx_psc_raw_tx_rdy

static int mpc52xx_psc_raw_tx_rdy(struct uart_port *port)
{
	return in_be16(&PSC(port)->mpc52xx_psc_status)
	    & MPC52xx_PSC_SR_TXRDY;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:5,代码来源:mpc52xx_uart.c



注:本文中的PSC函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ PSIZE函数代码示例发布时间:2022-05-30
下一篇:
C++ PSB_DEBUG_ENTRY函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap