Echelon FTXL Manual do Utilizador Página 172

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 261
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 171
160 FTXL LonTalk API
Table 29. FTXL OSAL Debug Functions
Function Description
OsalClearStatistics() Clears the current operating system statistics.
OsalGetLastOsError() Gets the most recent error from the operating system.
OsalGetStatistics() Gets operating system statistics.
OsalGetTraceLevel() Gets the current OSAL tracing level.
OsalSetTraceLevel() Sets the OSAL tracing level.
Configuring the Operating System
The FTXL OSAL defines resources for an operating system. Most of the
resources for the FTXL OSAL have fixed definitions or allocations. However, you
can specify the relative priorities of system contexts (tasks or threads). In
addition, within your operating system, you can modify the allocations for the
following resource types:
Crtitical sections
Binary semaphores
System events
For some operating systems, such as the Micrium μC/OS-II operating system, the
allocations for critical sections and binary semaphores are combined into a single
definition.
This section describes how to determine how many of each resource your FTXL
application requires. The following section,
Configuring the Micrium μC/OS-II
Operating System,
on page 165, describes how to allocate these resources for the
Micrium μC/OS-II operating system that is used by the example applications.
Determining Resource Requirements
Table 30 lists the basic resource requirements for an operating system running
with the FTXL OSAL.
Table 30. Operating System Resource Requirements
Resource Number Notes
Tasks (or
threads)
Up to 10 The number of tasks does not include application
tasks. An FTXL application must have at least
one application task.
Critical
sections
82 (default
number)
The number of critical sections depends on the
application buffer configuration.
Binary
semaphores
10 Modify the number of binary semaphores, if
needed, within the operating-system settings.
Vista de página 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 260 261

Comentários a estes Manuais

Sem comentários