ButterflyMP3

uart.h File Reference

Yampp Uart library. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define UART_BAUD_RATE   38400
#define UART_BAUD_SELECT   (F_CPU/(UART_BAUD_RATE*8L)-1)
#define PRINT(string)   (UART_PrintfProgStr(PSTR(string)))
#define EOL   UART_PrintfEndOfLine

Typedefs

typedef unsigned char u08
typedef char s08
typedef unsigned short u16
typedef short s16
typedef unsigned long u32
typedef long s32

Functions

void UART_SendByte (u08 Data)
u08 UART_ReceiveByte (void)
void UART_PrintfProgStr (const s08 *pBuf)
void UART_PrintfEndOfLine (void)
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)
void print_number (int base, int unsigned_p, long n)

Detailed Description

Yampp Uart library.

Author:
Jesper Hansen
Date:
2000
Id:
uart.h,v 1.7 2007/06/04 15:12:17 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.

changes for ButterflyMP3.sf.net Added UART_Shutdown NAL Jan 2006 Changed to use F_CPU from makefile rather than UART_CPU NAL Feb 2006

Definition in file uart.h.


Define Documentation

#define PRINT (   string)    (UART_PrintfProgStr(PSTR(string)))
#define UART_BAUD_RATE   38400

Definition at line 50 of file uart.h.

#define UART_BAUD_SELECT   (F_CPU/(UART_BAUD_RATE*8L)-1)

Definition at line 51 of file uart.h.

Referenced by UART_Init().


Typedef Documentation

typedef char s08

Definition at line 42 of file uart.h.

typedef short s16

Definition at line 44 of file uart.h.

typedef long s32

Definition at line 46 of file uart.h.

typedef unsigned char u08

Definition at line 41 of file uart.h.

typedef unsigned short u16

Definition at line 43 of file uart.h.

typedef unsigned long u32

Definition at line 45 of file uart.h.


Function Documentation

void print_number ( int  base,
int  unsigned_p,
long  n 
)
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_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().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines