summaryrefslogtreecommitdiffstats
path: root/spec/bsp/sparc/if/grlib-store-16.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bsp/sparc/if/grlib-store-16.yml')
-rw-r--r--spec/bsp/sparc/if/grlib-store-16.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/spec/bsp/sparc/if/grlib-store-16.yml b/spec/bsp/sparc/if/grlib-store-16.yml
new file mode 100644
index 00000000..f06cb5e8
--- /dev/null
+++ b/spec/bsp/sparc/if/grlib-store-16.yml
@@ -0,0 +1,39 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Stores the value to the memory-mapped unsigned 16-bit register.
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default:
+ attributes: null
+ body: |
+ __asm__ volatile ( "sth %0, [%1]" : : "r" ( ${.:/params[1]/name} ), "r" ( ${.:/params[0]/name} ) );
+ params:
+ - volatile ${/c/if/uint16_t:/name} *${.:/params[0]/name}
+ - ${/c/if/uint16_t:/name} ${.:/params[1]/name}
+ return: void
+ variants: []
+description: null
+enabled-by: true
+index-entries: []
+interface-type: function
+links:
+- role: interface-placement
+ uid: grlib-io-header
+- role: interface-ingroup
+ uid: grlib-io-group
+name: grlib_store_16
+notes: null
+params:
+- description: |
+ is the address of the memory-mapped unsigned 16-bit register.
+ dir: null
+ name: address
+- description: |
+ is the value to store.
+ dir: null
+ name: value
+return:
+ return: null
+ return-values: []
+type: interface