Easylab board and new dsPIC ERIKA Enterprise Driver API

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "= Introduction = During the development of Erika support for easylab some new API have created and other ones have been updated. Follow an overview of these changes, but to be s...")
(Easylab Board API)
Line 5: Line 5:
= Easylab Board API =
= Easylab Board API =
 +
 +
This chapter describes the API support done in Erika Enterprise for the Evidence Easylab Board.
 +
 +
To configure the usage of the Easylab Board, the user has to specify an appropriate BOARD_DATA in OIL file , as in the following example:
 +
 +
<pre>
 +
...
 +
BOARD_DATA = EE_EASYLAB {
 +
...
 +
}
 +
...
 +
</pre>
 +
 +
this OIL command enable the inclusion of ''$(EEBASE)/pkg/board/ee_easylab/inc/ee_board.h'' as board header.
 +
 +
 +
'''System LED'''
 +
 +
The [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en548414 Microstic] Guest board has a system LED attached to a GPIO pin of the microcontroller. To use the system LED, the developer should specify the USELEDS attribute as TRUE, as in the following example:
 +
 +
<pre>
 +
...
 +
BOARD_DATA = EE_FLEX {
 +
  USELEDS = TRUE;
 +
  ...
 +
}
 +
</pre>
 +
...
 +
 +
The following paragraphs will describe the functions available to control the easylab System LED.
 +
 +
* ''void EE_sys_led_init(void);''
 +
*: Description: Inizializzazione system LED (the one on microstick). The LED starts turned off.
 +
* ''void EE_sys_led_on(void);''
 +
*: Description: The function turns on the system LED.
 +
* ''void EE_led_sys_off(void);''
 +
*: Description: The function turns off the system LED.
 +
* ''void EE_led_on(void);''
 +
*: Description: The function turns on the LED.
 +
* ''void EE_led_off(void);''
 +
*: Description: The function turns off the LED.

Revision as of 11:16, 8 November 2011

Introduction

During the development of Erika support for easylab some new API have created and other ones have been updated. Follow an overview of these changes, but to be sure that the information of this page are updated double check the code.

Easylab Board API

This chapter describes the API support done in Erika Enterprise for the Evidence Easylab Board.

To configure the usage of the Easylab Board, the user has to specify an appropriate BOARD_DATA in OIL file , as in the following example:

...
BOARD_DATA = EE_EASYLAB {
...
}
...

this OIL command enable the inclusion of $(EEBASE)/pkg/board/ee_easylab/inc/ee_board.h as board header.


System LED

The Microstic Guest board has a system LED attached to a GPIO pin of the microcontroller. To use the system LED, the developer should specify the USELEDS attribute as TRUE, as in the following example:

...
BOARD_DATA = EE_FLEX {
  USELEDS = TRUE;
  ...
}

...

The following paragraphs will describe the functions available to control the easylab System LED.

  • void EE_sys_led_init(void);
    Description: Inizializzazione system LED (the one on microstick). The LED starts turned off.
  • void EE_sys_led_on(void);
    Description: The function turns on the system LED.
  • void EE_led_sys_off(void);
    Description: The function turns off the system LED.
  • void EE_led_on(void);
    Description: The function turns on the LED.
  • void EE_led_off(void);
    Description: The function turns off the LED.
Personal tools