X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=uart_send_nowait.c;fp=uart_send_nowait.c;h=0000000000000000000000000000000000000000;hb=57895b3bb2fe0582c589685b7df34f3968b346ec;hp=0aad843fd0cb1c002121b7a5b8c84f6cd00c85d3;hpb=9a9b64112aee5ab26398b46cb13b7e49c292a355;p=protos%2Fxbee-avr.git diff --git a/uart_send_nowait.c b/uart_send_nowait.c deleted file mode 100644 index 0aad843..0000000 --- a/uart_send_nowait.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright Droids Corporation, Microb Technology, Eirbot (2005) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Revision : $Id: uart_send_nowait.c,v 1.1.2.2 2008-12-27 16:50:01 zer0 Exp $ - * - */ - -/* Olivier MATZ, Droids-corp 2004 - 2009 */ - -#include -#include -#include - - -/* send a char, or put it in the fifo if uart is not ready. Return -1 - * if fifo is full */ -int uart_send_nowait(uint8_t num, char c) -{ - uint8_t flags; - - IRQ_LOCK(flags); - - /* if uart intrp mode is disabled (note that we look rx */ - /* intrp -- RXCIE is 0) */ - if ( !(*uart_regs[num].ucsrb & (1 << RXCIE )) ) { - /* we have to poll the status register before xmit */ - if (*uart_regs[num].ucsra & (1<