c-user: Add types to macros

This commit is contained in:
Sebastian Huber 2022-09-30 14:52:01 +02:00
parent 23fc93bf64
commit c98307c4f1
4 changed files with 44 additions and 22 deletions

View File

@ -128,7 +128,7 @@ Disables the maskable interrupts on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_disable( isr_cookie ) void rtems_interrupt_disable( rtems_interrupt_level isr_cookie );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -218,7 +218,7 @@ Restores the previous interrupt level on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_enable( isr_cookie ) void rtems_interrupt_enable( rtems_interrupt_level isr_cookie );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -280,7 +280,7 @@ Flashes interrupts on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_flash( isr_cookie ) void rtems_interrupt_flash( rtems_interrupt_level isr_cookie );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -338,7 +338,7 @@ Disables the maskable interrupts on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_local_disable( isr_cookie ) void rtems_interrupt_local_disable( rtems_interrupt_level isr_cookie );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -428,7 +428,7 @@ Restores the previous interrupt level on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_local_enable( isr_cookie ) void rtems_interrupt_local_enable( rtems_interrupt_level isr_cookie );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -484,7 +484,7 @@ Checks if an ISR is in progress on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_is_in_progress() bool rtems_interrupt_is_in_progress( void );
.. rubric:: DESCRIPTION: .. rubric:: DESCRIPTION:
@ -525,7 +525,10 @@ Initializes the ISR lock.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_initialize( lock, name ) void rtems_interrupt_lock_initialize(
rtems_interrupt_lock *lock,
const char *name
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -561,7 +564,7 @@ Destroys the ISR lock.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_destroy( lock ) void rtems_interrupt_lock_destroy( rtems_interrupt_lock *lock );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -605,7 +608,10 @@ Acquires the ISR lock.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_acquire( lock, lock_context ) void rtems_interrupt_lock_acquire(
rtems_interrupt_lock *lock,
rtems_interrupt_lock_context *lock_context
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -679,7 +685,7 @@ Releases the ISR lock.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_release( lock, lock_context ) void rtems_interrupt_lock_release( rtems_interrupt_lock_context *lock );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -737,7 +743,10 @@ Acquires the ISR lock from within an ISR.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_acquire_isr( lock, lock_context ) void rtems_interrupt_lock_acquire_isr(
rtems_interrupt_lock *lock,
rtems_interrupt_lock_context *lock_context
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -800,7 +809,10 @@ Releases the ISR lock from within an ISR.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_release_isr( lock, lock_context ) void rtems_interrupt_lock_release_isr(
rtems_interrupt_lock *lock,
rtems_interrupt_lock_context *lock_context
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -853,7 +865,9 @@ Disables maskable interrupts on the current processor.
.. code-block:: c .. code-block:: c
#define rtems_interrupt_lock_interrupt_disable( lock_context ) void rtems_interrupt_lock_interrupt_disable(
rtems_interrupt_lock_context *lock_context
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -892,7 +906,7 @@ Declares an ISR lock object.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_LOCK_DECLARE( specifier, designator ) RTEMS_INTERRUPT_LOCK_DECLARE( specifier, designator );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -926,7 +940,7 @@ Defines an ISR lock object.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_LOCK_DEFINE( specifier, designator, name ) RTEMS_INTERRUPT_LOCK_DEFINE( specifier, designator, const char *name );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -968,7 +982,7 @@ Statically initializes an ISR lock object.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_LOCK_INITIALIZER( name ) RTEMS_INTERRUPT_LOCK_INITIALIZER( const char *name );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -1001,7 +1015,7 @@ Defines an ISR lock member.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_LOCK_MEMBER( designator ) RTEMS_INTERRUPT_LOCK_MEMBER( designator );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -1031,7 +1045,7 @@ Defines an ISR lock object reference.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_LOCK_REFERENCE( designator, target ) RTEMS_INTERRUPT_LOCK_REFERENCE( designator, rtems_interrupt_lock *target );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:
@ -1064,7 +1078,11 @@ Statically initializes an interrupt entry object.
.. code-block:: c .. code-block:: c
#define RTEMS_INTERRUPT_ENTRY_INITIALIZER( routine, arg, info ) RTEMS_INTERRUPT_ENTRY_INITIALIZER(
rtems_interrupt_handler routine,
void *arg,
const char *info
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:

View File

@ -1072,7 +1072,7 @@ the specified maximum size.
.. code-block:: c .. code-block:: c
#define RTEMS_MESSAGE_QUEUE_BUFFER( maximum_message_size ) RTEMS_MESSAGE_QUEUE_BUFFER( size_t maximum_message_size );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:

View File

@ -879,7 +879,11 @@ MPCI node components.
.. code-block:: c .. code-block:: c
#define RTEMS_OBJECT_ID_INITIAL( api, class, node ) rtems_id RTEMS_OBJECT_ID_INITIAL(
uint32_t api,
uint32_t class,
uint32_t node
);
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS:

View File

@ -1991,7 +1991,7 @@ Gets the recommended task storage area size for the size and task attributes.
.. code-block:: c .. code-block:: c
#define RTEMS_TASK_STORAGE_SIZE( size, attributes ) size_t RTEMS_TASK_STORAGE_SIZE( size_t size, rtems_attribute attributes );
.. rubric:: PARAMETERS: .. rubric:: PARAMETERS: