IPC@CHIP® RTOS-PPC – API Documentation
Install a fossil user callback function for the specified serial port. The user callback function will be called when a fossil event occurs.
The callback function must be very short! Long fossil callback functions could lead to character losing. The DMA mode must be disabled in order to use a fossil callback function (see fossil_initmode()).
The callback function must be declared like the function below:
Note that only one user callback function can be installed per port. To uninstall a user callback function, simply call this function again with a NULL pointer.
CAUTION: These callback functions are called in supervisor mode, so be careful when coding the handler functions. The callback is executed directly from the internal serial port interrupt handler and executes with interrupts disabled.