ButterflyMP3

uart.c File Reference

Yampp Uart library. More...

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "uart.h"
#include "main.h"
Include dependency graph for uart.c:

Go to the source code of this file.

Functions

 SIGNAL (SIG_USART_RECV)
void UART_SendByte (u08 Data)
u08 UART_ReceiveByte (void)
void UART_PrintfProgStr (const s08 *pBuf)
void UART_PrintfEndOfLine (void)
void UART_PrintfU4 (u08 Data)
void UART_Printfu08 (u08 Data)
void UART_Printfu16 (u16 Data)
void UART_Printfu32 (u32 Data)
void UART_Init (void)
void UART_Shutdown (void)
unsigned char UART_HasChar (void)
void UART_Puts (u08 *pBuf)
void UART_Putsln (u08 *pBuf)

Variables

volatile u08 UART_Ready
volatile u08 UART_ReceivedChar
volatile u08 UART_RxChar
u08pUART_Buffer

Detailed Description

Yampp Uart library.

Author:
Jesper Hansen
Date:
2000
Id:
uart.c,v 1.11 2007/12/20 22:54:13 brokentoaster Exp

Jesper Hansen <jesperh@telia.com>

Original Author: Volker Oth <volkeroth@gmx.de>

This file is part of the yampp system.

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.

Modified 2004,2005,2006 for butterflymp3 by Nick Lott

Definition in file uart.c.


Function Documentation

SIGNAL ( SIG_USART_RECV  )

Definition at line 49 of file uart.c.

References UART_ReceivedChar, and UART_RxChar.

unsigned char UART_HasChar ( void  )

Definition at line 171 of file uart.c.

References UART_ReceivedChar.

Referenced by handle_interface().

void UART_Init ( void  )

Definition at line 138 of file uart.c.

References pUART_Buffer, UART_BAUD_SELECT, UART_Ready, and UART_ReceivedChar.

Referenced by init_HW(), and Power_off().

void UART_PrintfEndOfLine ( void  )

Definition at line 92 of file uart.c.

References UART_SendByte().

Referenced by UART_Putsln().

Here is the call graph for this function:

void UART_PrintfProgStr ( const s08 pBuf)

Definition at line 76 of file uart.c.

References pUART_Buffer, and UART_SendByte().

Here is the call graph for this function:

void UART_Printfu08 ( u08  Data)

Definition at line 117 of file uart.c.

References UART_PrintfU4().

Referenced by dump_buffer(), FAT_getNumberedSong(), FAT_initFat16(), FAT_readFile(), FAT_tester(), handle_interface(), MMC_tester(), and UART_Printfu16().

Here is the call graph for this function:

void UART_Printfu16 ( u16  Data)

Definition at line 124 of file uart.c.

References UART_Printfu08().

Referenced by FAT_initFat16(), MMC_tester(), Power_check(), and UART_Printfu32().

Here is the call graph for this function:

void UART_Printfu32 ( u32  Data)

Definition at line 131 of file uart.c.

References UART_Printfu16().

Referenced by cue_file(), FAT_tester(), init_mmc_fat(), and MMC_tester().

Here is the call graph for this function:

void UART_PrintfU4 ( u08  Data)

Definition at line 100 of file uart.c.

References UART_SendByte().

Referenced by UART_Printfu08().

Here is the call graph for this function:

void UART_Puts ( u08 pBuf)

Definition at line 177 of file uart.c.

References UART_SendByte().

Referenced by FAT_getNumberedSong(), FAT_tester(), MMC_tester(), and UART_Putsln().

Here is the call graph for this function:

void UART_Putsln ( u08 pBuf)

Definition at line 187 of file uart.c.

References UART_PrintfEndOfLine(), and UART_Puts().

Here is the call graph for this function:

u08 UART_ReceiveByte ( void  )

Definition at line 66 of file uart.c.

References UART_ReceivedChar, and UART_RxChar.

Referenced by handle_interface().

void UART_SendByte ( u08  Data)
void UART_Shutdown ( void  )

Definition at line 159 of file uart.c.

Referenced by Power_off().


Variable Documentation

Definition at line 43 of file uart.c.

Referenced by UART_Init(), and UART_PrintfProgStr().

volatile u08 UART_Ready

Definition at line 40 of file uart.c.

Referenced by UART_Init().

Definition at line 41 of file uart.c.

Referenced by SIGNAL(), UART_HasChar(), UART_Init(), and UART_ReceiveByte().

volatile u08 UART_RxChar

Definition at line 42 of file uart.c.

Referenced by SIGNAL(), and UART_ReceiveByte().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines