










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































.
Technical Training
Organization
Technical Training
Organization
System
H/W
(Peripherals)
X D A
I S
System Mem. Mgmt. Software
XDAIS provides a common interface to Algorithms
But, what common interface exists for hardware?
Let’s break it into two pieces: interface + driver
Technical Training
Organization
SIO
PIP
GIO
TSK or
SWI
SWI
TSK or
SWI
Any mini-driver can be used with
any DSP/BIOS I/O model
Technical Training
Organization
All models pass pointers to buffers instead of copying data.
SIO and GIO provide blocking functions; PIP does not.
SIO is the most flexible and easiest to use with IOM drivers.
Technical Training
Organization
So, what does our code look like to create/use streams?
IOM Driver
TSK
Application
IN
OUT
“Streams”
issue
FULL buffer
reclaim
FULL buffer
issue
EMPTY buffer
reclaim
EMPTY buffer issue…
reclaim…
reclaim…
issue…
/ inStream and outStream are SIO handles created in main /SIO_Handle inStream, outStream;void createStreams(){
SIO_Attrs attrs;attrs = SIO_ATTRS;attrs.align = BUFALIGN;attrs.model = SIO_ISSUERECLAIM;attrs.segid = ISRAM;/ open the I/O streams /inStream = SIO_create("/dioCodec", SIO_INPUT, BUFFSIZE4, &attrs);outStream = SIO_create("/dioCodec", SIO_OUTPUT, BUFFSIZE4, &attrs);**
SIO Handles
Attributes ofthe streams
Create the streams with specificparameters: hookup, type, size, attr.
**void processBuffer(void){ short source;short dest;createStreams();primeStreams();while(1) {
**SIO_reclaim(inStream,(Ptr )&source, NULL);SIO_reclaim(outStream,(Ptr )&dest, NULL);
SIO_issue(outStream, dest, BUFFSIZE4,NULL);SIO_issue(inStream, source, BUFFSIZE4,NULL);}**
Technical Training
Organization
Technical Training
Organization
DSK 6416 IOM Driver Files (from DDK)
dsk6416_aic23.cdsk6416_codec_devParams.cc6x1x_edma_mcbsp.cdsk6416_edma_aic23.c
Generic McBSP driver for theTMS320C6x1x series. Uses the EDMA.
AIC23 codec driver implementation specific to the DSK6416 board.
Defines the default parameters used forDSK6416_EDMA_AIC23 IOM driver
Driver for the aic23 codec on the 6416 DSK.Requires the generic TMS320C6x1x McBSP driver.
IOM files contain functions and data structures…
Note: 6713 DSK files are the same other than the generic driver
IOM Interface Consists Of:
Functions:
Data Structures:
Technical Training
Organization
What platforms does the DDK support?
Technical Training
Organization
System
H/W
(Peripherals)
X D A
I S
I OM
Reference
Frameworks
Technical Training
Organization
Does something useful
Is easy to adapt and change
Creates modules that can be reused
Includes documentation and comments
Written in portable, high-level language
Has a well standardized file structure
Uses various tools together
(BIOS, IOM, RTA, etc)
Is NOT a blank page
Technical Training
Organization
Good Starterware
Design-ready, reusable, C language source code
A complete “generic” application running on TI DSK’s
Criteria to enable appropriate selection of RF level
System Budgeting
Adaptation guide for adding algorithms, channels, and drivers
An API Reference Manual for new (library) modules
Consistent documentation in RF application notes
RF1, RF3, RF5: Licensed with every TMS320 device - royalty free