Eddy DK Programmer Guide
98
Chapter 6.
Library Introduction
This chapter introduces useful libraries and API functions that are applicable with Eddy-Serial DK.
6.1
Introduction
All the functions introduced in this chapter are all APIs included in SB_APIs.a of /src/Eddy_APPs/SB_APIs directory.
You also need to mention this library in the Makefile. All sample source codes accompanied with Eddy-DK use this
library, and you can see the source codes and Makefile for more information.
6.2
Makefile
Library is in /src/Eddy_APPs/SB_APIs/ directory, as a form of SB_API.a.
You need to specify in the Makefile in order to use this library, so please refer to the Makefile inside /src/Eddy_APPs/
folder.
6.3
System functions
Timer and delay functions needed for making application program.
SB_GetTick
Function
Returns time measured after Eddy has been booted in msec.
Format
Unsigned long SB_GetTick (Void);
Parameter
None
Returns
0 ~ 4,294,967,295
Notice
Returned value is system tick counter in msec unit.
After it reaches the maximum value 0xffffffff of unsigned long type, it
starts from zero again - which is about period of 50 days.
SB_msleep
Function
Delays in msec unit.
Format
void SB_msleep (int msec);
Parameter
msec
Configure delay time in msec unit.
Содержание Eddy DK
Страница 1: ...1 Eddy DK Programmer Guide Ver 2 5 1 1 2011 02 15...
Страница 10: ...Eddy DK Programmer Guide 10 2 3 Eddy CPU v2 1 v2 5...
Страница 36: ...Eddy DK Programmer Guide 36 2 4 4 External Device Interface Description...
Страница 47: ...Eddy DK Programmer Guide 47 Eddy S4M v2 1 Eddy S4M v2 5...