main.c File Reference

#include "fat16.h"
#include "partition.h"
#include "config.h"
#include "sd_mmc.h"
#include "sd_mmc_config.h"
#include "vs1011.h"
#include "uart.h"
#include <string.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "delay.h"
#include <util/delay.h>
#include "spi.h"

Include dependency graph for main.c:

Go to the source code of this file.

Defines

#define DEBUG   1
#define UART_BAUDRATE   19200

Functions

uint8_t play_song (struct fat16_file_struct *fd)
uint8_t print_disk_info (const struct fat16_fs_struct *fs)
void ddd (void)
uint8_t find_file_in_dir (struct fat16_fs_struct *fs, struct fat16_dir_struct *dd, const char *name, struct fat16_dir_entry_struct *dir_entry)
struct fat16_file_structopen_file_in_dir (struct fat16_fs_struct *fs, struct fat16_dir_struct *dd, const char *name)
int main ()
void display_buffer (uint8_t *ptr, uint32_t size)


Define Documentation

#define DEBUG   1

Definition at line 67 of file main.c.

#define UART_BAUDRATE   19200

Definition at line 68 of file main.c.

Referenced by main().


Function Documentation

void ddd ( void   ) 

HW debug utility function. Creates a detectable bit pattern at a pin. This pattern is used by the logic analyzer. Besides this, the function offers nothing to the rest of the code.

Definition at line 88 of file main.c.

void display_buffer ( uint8_t *  ptr,
uint32_t  size 
)

debug utility function. Dumps a buffer in hex and ascii.

Parameters:
[in] ptr - pointer to buffer to print
[in] size - number of bytes to print

Definition at line 375 of file main.c.

References uart_putc(), and uart_puts().

Referenced by main().

int main (  ) 


Generated on Wed Sep 17 19:31:52 2008 for mptry by  doxygen 1.5.5