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.
The following list describes the variable types used throughout the BSL:
| Define |
Value |
Define |
Value |
| Uint8 | Unsigned 8-bit value |
VUint8 | Volatile Unsigned 8-bit value |
| Uint16 | Unsigned 16-bit value |
VUint16 | Volatile Unsigned 16-bit value |
| Uint32 | Unsigned 32-bit value |
VUint32 | Volatile Unsigned 32-bit value |
| Int8 | Signed 8-bit value |
VInt8 | Volatile Signed 8-bit value |
| Int16 | Signed 16-bit value |
VInt16 | Volatile Signed 16-bit value |
| Int32 | Signed 32-bit value |
VInt32 | Volatile 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 );
|