Changes between Version 2 and Version 3 of icu_device_api


Ignore:
Timestamp:
Nov 3, 2016, 7:40:24 PM (7 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • icu_device_api

    v2 v3  
    3232== B) Access Functions ==
    3333
    34 === '''void dev_icu_init'''( device_t * icu ) ===
     34=== 1) '''void dev_icu_init'''( device_t * icu ) ===
    3535
    3636This function makes two initialisations: It initialises the ICU specific fields of the device descriptor.
    3737it initialises the implementation specific ICU hardware device and associated data structures if required.
    3838It must be executed once by a thread running in the cluster containing the ICU device descriptor.
    39  *****************************************************************************************
    40  * @ dev     : pointer on ICU device descriptor.
    41  ****************************************************************************************/
    42 void dev_icu_init( device_t * icu );
     39The <icu> argument is a local pointer on the ICU device descriptor.
     40 
     41=== 2) '''error_t dev_icu_enable_irq'''( uint32_t   irq_type , uint32_t   irq_id , device_t * src_dev ) ===
    4342
    44 /*****************************************************************************************
    45  * This blocking function enable one IRQ defined by its type (HWI/WTI/PTI) and index
    46  * in the local ICU device descriptor, and register it in the proper interrupt vector
    47  * of the calling core.
    48  *****************************************************************************************
    49  * @ irq_type  : HWI/WTI/PTI.
    50  * @ irq_id    : IRQ index.
    51  * @ device    : pointer on device descriptor source of IRQ.
    52  * @ returns 0 if success / returns EINVAL if illegal arguments.
    53  ****************************************************************************************/
    54 error_t dev_icu_enable_irq( uint32_t   irq_type,
    55                             uint32_t   irq_id,
    56                             device_t * src_dev );
     43This function must be executed by a thread running in the cluster containing the ICU device descriptor. It enables one IRQ defined by its type and index for the calling core, and register it in the interrupt vector.
     44The <irq_type> and <irq_id> arguments define the IRQ type and index. The <src_dev> argument is the remote pointer on the source device.
     45It returns 0 if success / returns EINVAL if illegal arguments.
    5746
    58 /*****************************************************************************************
    59  * This blocking function disable one IRQ defined by its type (HWI/WTI/PTI) and index
    60  * in the local ICU device descriptor, and remove it from the proper interrupt vector
    61  * of the calling core.
    62  *****************************************************************************************
    63  * @ irq_type  : HWI/WTI/PTI.
    64  * @ irq_id    : IRQ index.
    65  * @ returns 0 if success / returns EINVAL if illegal arguments.
    66  ****************************************************************************************/
    67 error_t dev_icu_disable_irq( uint32_t   irq_type,
    68                              uint32_t   irq_id );
    69                        
     47=== 3) '''error_t dev_icu_disable_irq'''( uint32_t   irq_type , uint32_t   irq_id ) ===
     48
     49This function must be executed by a thread running in the cluster containing the ICU device descriptor. It disables one IRQ defined by its type and index, for the calling core, and remove it from the interrupt vector.
     50The <irq_type> and <irq_id> arguments define the IRQ type and index.
     51It returns 0 if success / returns EINVAL if illegal arguments.
     52
     53 
     54
     55
    7056/*****************************************************************************************
    7157 * This blocking function set the period value for a timer identified by the PTI index
     
    10288 ****************************************************************************************/
    10389void dev_icu_irq_handler();
    104