Chpater6. library introduction, 1 introduction, 2 makefile – Solvline Eddy DK Ver 2.20 User Manual

Page 44: 3 system functions, Chpater6. library introduction -1, 1 introduction -1, 2 makefile -1, 3 system functions -1

Advertising
background image

Chapter 6. Library

Chpater6. 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_SetPriority

Function

Specifies priority level of task.

Format Void

SB_SetPriority (int Priority_Level);

Parameter

Priority_level Low (1) ~ High (99)

Returns None

Notice

Configures the priority level of task execution to the system.

The lowest level is 1, whereas the highest level is 99.

It is recommended to set level below 50; when a certain task’s level is set
above 50, that task will be executed prior to others, possibly affecting other
tasks’ operation.

SB_GetTick

6-1

Advertising