ButterflyMP3
|
Yampp Uart library. More...
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) |
Yampp Uart library.
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 EOL UART_PrintfEndOfLine |
Definition at line 72 of file uart.h.
Referenced by cue_file(), dump_buffer(), FAT_getNumberedSong(), FAT_initFat16(), FAT_readFile(), FAT_tester(), handle_interface(), handle_mmc(), init_HW(), init_mmc_fat(), mainTimer(), MMC_tester(), Power_check(), Power_off(), and SIGNAL().
#define PRINT | ( | string | ) | (UART_PrintfProgStr(PSTR(string))) |
Definition at line 71 of file uart.h.
Referenced by cue_file(), dump_buffer(), FAT_getNumberedSong(), FAT_initFat16(), FAT_readFile(), FAT_tester(), handle_interface(), handle_mmc(), init_HW(), mainTimer(), MMC_tester(), Power_check(), and Power_off().
#define UART_BAUD_SELECT (F_CPU/(UART_BAUD_RATE*8L)-1) |
Definition at line 51 of file uart.h.
Referenced by UART_Init().
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().
void UART_PrintfProgStr | ( | const s08 * | pBuf | ) |
Definition at line 76 of file uart.c.
References pUART_Buffer, and UART_SendByte().
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().
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().
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().
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().
void UART_Putsln | ( | u08 * | pBuf | ) |
Definition at line 187 of file uart.c.
References UART_PrintfEndOfLine(), and UART_Puts().
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 | ) |
Definition at line 57 of file uart.c.
Referenced by dump_buffer(), UART_PrintfEndOfLine(), UART_PrintfProgStr(), UART_PrintfU4(), and UART_Puts().
void UART_Shutdown | ( | void | ) |
Definition at line 159 of file uart.c.
Referenced by Power_off().