Site Index
   Support Home
   OMAP Home
   OSK5912
   Related Products
   OMAP Tech Docs
   Linux Docs
   Development Flow
   Emulators
   Ordering Info.
Google

OMAP Site
Support Site
Main Site

OSK5912 Board Setup Module

The Board Setup API provides general functions used for board initialization. The OSK5912_init( ) call must be made before any other BSL functions as it is responsible for all BSL initialization.

All programs that use the BSL should include the “osk5912.h” header file.

Function Description
OSK5912_init Initialize the BSL
OSK5912_wait Wait for a specified number of cycles
OSK5912_waitusec Wait for a specified number of microseconds
OSK5912_waitmsec Wait for a specified number of milliseconds

The following list describes the variable types used throughout the BSL:

Define Value Define Value
Uint8Unsigned 8-bit value VUint8Volatile Unsigned 8-bit value
Uint16Unsigned 16-bit value VUint16Volatile Unsigned 16-bit value
Uint32Unsigned 32-bit value VUint32Volatile Unsigned 32-bit value
Int8Signed 8-bit value VInt8Volatile Signed 8-bit value
Int16Signed 16-bit value VInt16Volatile Signed 16-bit value
Int32Signed 32-bit value VInt32Volatile Signed 32-bit value

OSK5912_init()

Description
Initializes the BSL (Board Support Library). In addition, OSK5912_init( ) will initialize the EMIF( external memory interface ), DSP, and peripherals. Must be called before using any other BSL functions.

Required Headers
osk5912.h

Required Libraries
osk5912bsl.lib

Function Prototype
void OSK5912_init( )

Parameters
freq - Desired frequency to run OSK5912 (possible values [96 & 192])

Return Value
None

Example

    /* Initialize the BSL at 96MHz frequency */
    /* This initializes the EMIF (external memory interface):
     *  SDRAM, FLASH, DSP, and peripherals */
    OSK5912_init( 96 );

    /* Initialize the BSL at 192MHz frequency */
    /* This initializes the EMIF (external memory interface):
     *  SDRAM, FLASH, DSP, and peripherals */
    OSK5912_init( 192 );

OSK5912_wait()

Description
Wait for a specified number of cycles

Required Headers
osk5912.h

Required Libraries
osk5912bsl.lib

Function Prototype
void OSK5912_wait( Uint32 cycles )

Parameters
cycles - Number of cycles to wait

Return Value
None

Example

    /* Wait for 50 cycles */
    OSK5912_wait( 50 );

    /* Wait for 1000 cycles */
    OSK5912_wait( 1000 );

OSK5912_waitusec()

Description
Wait for a specified number of microseconds. The actual wait time will be dependent on the current processor configuration. This includes instruction cache, data cache, processor frequency, and memory settings

Required Headers
osk5912.h

Required Libraries
osk5912bsl.lib

Function Prototype
void OSK5912_waitusec( Uint32 usec )

Parameters
usec - Number of microseconds to wait

Return Value
None

Example

    /* Wait for at about 50 microseconds */
    OSK5912_waitusec( 50 );

OSK5912_waitmsec()

Description
Wait for a specified number of milliseconds. The actual wait time will be dependent on the current processor configuration. This includes instruction cache, data cache, processor frequency, and memory settings

Required Headers
osk5912.h

Required Libraries
osk5912bsl.lib

Function Prototype
void OSK5912_waitmsec( Uint32 msec )

Parameters
msec - Number of milliseconds to wait

Return Value
None

Example

    /* Wait for at about 50 milliseconds */
    OSK5912_waitmsec( 50 );
©Copyright 2002-2012 Spectrum Digital, Inc. All Rights Reserved.