MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pic_default_name

Function rt_pic_default_name

components/drivers/pic/pic.c:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void rt_pic_default_name(struct rt_pic *pic)
85{
86 if (pic)
87 {
88 #if RT_NAME_MAX > 0
89 rt_strncpy(pic->parent.name, "PIC", RT_NAME_MAX - 1);
90 pic->parent.name[RT_NAME_MAX - 1] = '\0';
91 #else
92 pic->parent.name = "PIC";
93 #endif
94 }
95}
96
97struct rt_pic *rt_pic_dynamic_cast(void *ptr)
98{

Callers 2

pin_pic_initFunction · 0.85
rt_pic_linear_irqFunction · 0.85

Calls 1

rt_strncpyFunction · 0.85

Tested by

no test coverage detected