Download TMS320C31 Embedded Control Technical Brief
Transcript
Spectron Microsystems Inc. SPOX OS also provides a mechanism for adding platform-dependent drivers—software modules that encapsulate low-level hardware details by interpreting device-independent I/O requests in a device-dependent fashion. Device drivers are the key to customizing SPOX for a particular system environment, and to ensuring portability of SPOX applications from one system to the next. Unlike virtually every other operating system or realtime executive, the device-independent I/O interface supported by SPOX does not include a read() or write() function in the traditional sense. Rather than mandating one pair of general-purpose functions for all input and output, SPOX allows for a broader set of I/O operations optimized for two fundamentally different forms of program interaction with underlying devices found in realtime DSP systems: J J - Asynchronous data streaming, in which the program and device are in a producer/consumer relationship and Synchronous message passing, in which the program and device are in a client/server relationship. C Runtime Environment The SPOX application libraries include many of the standard functions which are typically not implemented by C compilers targeted for DSP processors. Included among these are the routines comprising the C stdio library together with other standard functions requiring operating system support: J J J J J J Opening/closing named files (fopen, fclose, ...) Reading/writing byte streams (getc, putc, ...) Formatted I/O (printf, scanf, ...) Utility functions (system, time, ...) Program termination (exit, abort, ...) Memory management (malloc, free, ...) By furnishing these functions, the SPOX application libraries enable many standard C programs normally run on a host computer under UNIX or MS-DOS to be literally recompiled and executed faster on attached DSP hardware. - DSP Math Functions SPOX furnishes over 100 standard math functions that can be used as building blocks for algorithms employed in advanced DSP applications, such as: 6-26