Easylab board and new dsPIC ERIKA Enterprise Driver API

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(Easylab Board API)
(Easylab Board API)
Line 8: Line 8:
This chapter describes the API support done in Erika Enterprise for the Evidence Easylab Board.
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:
+
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>
<pre>
Line 18: Line 18:
</pre>
</pre>
-
this OIL command enable the inclusion of ''$(EEBASE)/pkg/board/ee_easylab/inc/ee_board.h'' as board header.
+
this OIL element enable the inclusion of ''$(EEBASE)/pkg/board/ee_easylab/inc/ee_board.h'' as board header.
'''System LED'''
'''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:
+
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>
<pre>

Revision as of 11:17, 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 element 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 (the one on microstick).
  • void EE_led_sys_off(void);
    Description: The function turns off the system LED (the one on microstick).
Personal tools