![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include <string.h>
#include "fsl_flexio_driver.h"
#include "fsl_flexio_i2s_driver.h"
#include "fsl_sgtl5000_driver.h"
#include "fsl_clock_manager.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "fsl_os_abstraction.h"
#include "music.h"
Macros | |
#define | MUSIC_LEN |
Functions | |
void | Configure_Sgtl5000 (bool master) |
Configure sgtl5000 codec. More... | |
void | i2s_master_int (void) |
Set flexio as master and use interrupt to send data. More... | |
void | i2s_master_dma (void) |
Set flexio as master and use dma to send data. More... | |
void | i2s_slave_int () |
Set flexio as slave and use interrupt to send data. More... | |
void | i2s_slave_dma () |
Set flexio as slave and use dma to send data. More... | |
int | main (void) |
Use flexio to do playback in 4 methods. More... | |
Variables | |
static sgtl_handler_t | handler |
uint32_t | sample_rate |
uint32_t | bits |
flexio_i2s_handler_t | i2s_handler |
flexio_i2s_config_t | config |
dma_state_t | dma_state |
#define MUSIC_LEN |
void Configure_Sgtl5000 | ( | bool | master | ) |
void i2s_master_dma | ( | void | ) |
void i2s_master_int | ( | void | ) |
void i2s_slave_dma | ( | ) |
void i2s_slave_int | ( | ) |
int main | ( | void | ) |
Function prototype for main function.
receiveBuff | Buffer used to hold received data |
Return code from each SSD function
Address of the target location
Return protection status
Number of longword or phrase to be verified
0=normal, 1=user, 2=factory - margin read for reading
uint32_t bits |
flexio_i2s_config_t config |
dma_state_t dma_state |
|
static |
flexio_i2s_handler_t i2s_handler |
uint32_t sample_rate |