MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / piHiPri

Function piHiPri

wiringPi/piHiPri.c:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 */
38
39int piHiPri (const int pri)
40{
41 struct sched_param sched ;
42
43 memset (&sched, 0, sizeof(sched)) ;
44
45 if (pri > sched_get_priority_max (SCHED_RR))
46 sched.sched_priority = sched_get_priority_max (SCHED_RR) ;
47 else
48 sched.sched_priority = pri ;
49
50 return sched_setscheduler (0, SCHED_RR, &sched) ;
51}

Callers 8

softServo.cFile · 0.85
softPwmThreadFunction · 0.85
softTone.cFile · 0.85
interruptHandlerV2Function · 0.85
wfi.cFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
7segments.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected