libparanut
A Hardware Abstraction Layer for ParaNut Architectures.
Functions
pn_base.c File Reference

Contains architecture independent implementations of the Base Module functions. More...

#include "common.h"
Include dependency graph for pn_base.c:

Functions

PN_NUMC pn_numcores (void)
 Get the number of cores in your system. More...
 
PN_CMSK pn_m2cap (void)
 Check which cores are capable of Mode 2 operation. More...
 
PN_CMSK pn_m2cap_g (PN_NUMG groupnum)
 Check which cores are capable of Mode 2 operation. More...
 
PN_CMSK pn_m3cap (void)
 Check which cores are capable of Mode 3 operation. More...
 
PN_CMSK pn_m3cap_g (PN_NUMG groupnum)
 Check which cores are capable of Mode 3 operation. More...
 
PN_CID pn_coreid (void)
 Get the ID of the core that this function is executed on. More...
 
PN_CID pn_coreid_g (PN_NUMG *groupnum)
 Get the ID and group number of the core that this code is running on. More...
 
void pn_halt (void)
 Halt whatever core the function is executed on. More...
 
int pn_halt_CoPU (PN_CID coreid)
 Halts a CoPU. More...
 
int pn_halt_CoPU_m (PN_CMSK coremask)
 Halts one or more CoPUs. More...
 
int pn_halt_CoPU_gm (PN_CMSK *coremask_array, PN_NUMG array_size)
 Halts the CoPUs specified in the coremask_array. More...
 
unsigned int pn_clock_freq (void)
 Returns system clock frequency in Hz. More...
 
unsigned int pn_timebase_us (void)
 Returns machine timer timebase in us. More...
 
long long int pn_time_ns (void)
 Returns system time in ns. Does not care for overflow. More...
 
int pn_simulation (void)
 Checks if we run in simulation instead of real hardware. More...
 

Detailed Description

Contains architecture independent implementations of the Base Module functions.