User`s manual

RabbitFLEX User’s Manual www.rabbit.com 67
6.2 RabbitFLEX BL300F Files
There are two files that you must download from the RabbitFLEX Configurator after you have ordered a
board. One is a library file that is necessary for using the board. The other one is a design file that you are
responsible for safeguarding. Both will be described here.
6.2.1 RabbitFLEX BL300F Libraries
The general library that will be used by all RabbitFLEX BL300F board configurations is
RabbitFlex_BL300F.lib (formerly named RabbitFlex_SBC40.lib.) It is located in the
lib/RabbitFlex_BL300F folder (formerly named the lib/RabbitFlex_SBC40 folder) where
you installed Dynamic C.
The library that is specific to your board design must be downloaded from the website using the Rabbit-
FLEX Configurator. This design-specific generated library is named FAxxxxxx.lib, where FAxxxxxx is
the board’s design number. The design number is assigned automatically.
Once this design-specific generated library has been downloaded, it must be placed in the Dynamic C
“\lib” folder. A good location for this is in “\lib\RabbitFLEX_BL300F” or “\lib\RabbitFLEX_SBC40,
depending on your version of Dynamic C. Note that if you edit the LIB.DIR file, it is possible to place
the design-specific library in any location—see the Dynamic C User’s Manual for more information.
Although you have flexibility on where to place the design-specific library, you must not change the name
of the library. Dynamic C queries your attached RabbitFLEX board to determine its design number, and
then uses that to automatically include the correct design-specific library.
6.2.2 RabbitFLEX BL300F Design File
The design number is also used as the name of an .xml file and an html file, both of which summarize the
boards connector and pin assignments. The html file is provided as a convenient way for you to review the
speaker_audio.c
You must have a loudspeaker configured for your RabbitFLEX board to
run this program. It demonstrates the use of the RabbitFLEX audio
driver. This program loads a .wav file and plays it on an attached
loudspeaker.
speaker_tone.c
You must have a loudspeaker configured for your RabbitFLEX board to
run this program. It demonstrates the use of the RabbitFLEX tone
driver. It allows you to select a tone to play from a menu. The tone can
be played for a brief period of time, or indefinitely.
thermistor.c
Continuously reads the onboard thermistor and displays the calculated
temperature, an integer value (0-4095) corresponding to the voltage on
the analog input channel, and a float value (0-3 V) corresponding to the
voltage on the analog input channel. You can apply heat or cold to the
area around the thermistor and see the change it makes in the displayed
values.
thermOffset.c This sample allows you to calibrate the onboard thermistor.
Table 6-1. RabbitFLEX BL300F Sample Programs
Program Name Description