beautypg.com

Chapter 6, Library introduction, Introduction – Solvline Eddy DK User Manual

Page 100: Makefile, System functions, Chapter 6. library introduction, 1 introduction, 2 makefile, 3 system functions

background image

Eddy DK Programmer Guide

100

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 folder. 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/ folder, 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.