diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-21 16:04:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-16 11:39:08 +0200 |
commit | 724df1c5ef711c9399cd8c33b23aee40304d0332 (patch) | |
tree | 3f181d1f7e5d88d667532f8f70f45c13486a1ab3 /spec/if/rtems/basedefs/align-down.yml | |
parent | spec: Specify rtems_task_create_from_config() (diff) | |
download | rtems-central-724df1c5ef711c9399cd8c33b23aee40304d0332.tar.bz2 |
spec: Specify rtems_task_construct()
Previous directive name was rtems_task_create_from_config().
Diffstat (limited to 'spec/if/rtems/basedefs/align-down.yml')
-rw-r--r-- | spec/if/rtems/basedefs/align-down.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/if/rtems/basedefs/align-down.yml b/spec/if/rtems/basedefs/align-down.yml new file mode 100644 index 00000000..a309b03f --- /dev/null +++ b/spec/if/rtems/basedefs/align-down.yml @@ -0,0 +1,35 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +brief: | + Returns the specified value aligned down to the specified alignment. +copyrights: +- Copyright (C) 2016 embedded brains GmbH (http://www.embedded-brains.de) +definition: + default: | + ( ( ${.:/params[0]/name} ) & ~( ( ${.:/params[1]/name} ) - 1 ) ) + variants: [] +description: null +enabled-by: true +interface-type: macro +links: +- role: interface-placement + uid: header +- role: interface-ingroup + uid: group +name: RTEMS_ALIGN_DOWN +notes: null +params: +- description: | + is the value to align down. + dir: null + name: _value +- description: | + is the desired alignment in bytes. The alignment shall be a power of two, + otherwise the returned value is undefined. The alignment parameter is + evaluated twice. + dir: null + name: _alignment +return: + return: | + The specified value aligned down to the specified alignment is returned. + return-values: [] +type: interface |