summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-05-30 17:30:03 +0800
committerMeco Man <[email protected]>2024-09-06 17:45:03 -0400
commit802a6ed2caff69a4f881f109462931de4f4f2d40 (patch)
tree83ce05609bc81f52076dc68684c83ad05c935761 /include
parent9631f04abefdea2341abe8cfe96cbabbdf432ab7 (diff)
[DM] Extended drivers MISC interface
1. RT_FIELD_PREP: prepare a bitfield element. 2. RT_FIELD_GET: extract a bitfield element. 3. rt_offsetof: member offset of a struct 4. rt_upper_32_bits: high 32 bits of value. 5. rt_lower_32_bits: lower 32 bits of value. 6. rt_upper_16_bits: high 16 bits of value. 7. rt_lower_16_bits: lower 16 bits of value. 8. rt_max_t: fix type of max(...). 9. rt_ilog2: integer logarithm base 2. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/rtthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h
index dc33a6c835..f28db560d3 100644
--- a/include/rtthread.h
+++ b/include/rtthread.h
@@ -787,6 +787,7 @@ rt_device_t rt_console_get_device(void);
#endif /* defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE) */
int __rt_ffs(int value);
+unsigned long __rt_ffsl(unsigned long value);
void rt_show_version(void);