mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 04:24:33 +00:00
[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 <2991707448@qq.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user