/* Function: void SYS_RESET_SoftwareReset( void ) Summary: Triggers a software reset. Description: This function triggers a processor. PreCondition: None. Parameters: None. Returns: None. Example: <code> SYS_RESET_SoftwareReset(); </code> Remarks: The software reset feature must be supported by the processor in use. */ void SYS_RESET_SoftwareReset( void ) { PLIB_DEVCON_SystemUnlock(DEVCON_ID_0); #if defined(PLIB_RESET_ExistsSoftwareResetTrigger) if (PLIB_RESET_ExistsSoftwareResetTrigger(RESET_ID_0)) { PLIB_RESET_SoftwareResetEnable(RESET_ID_0); } #endif }
void SYS_RESET_NMIDelayCountSet( RESET_NMI_COUNT_TYPE nmi_count ) { PLIB_DEVCON_SystemUnlock(DEVCON_ID_0); #if defined(PLIB_RESET_ExistsNmiCounter) if (PLIB_RESET_ExistsNmiCounter(RESET_ID_0)) PLIB_RESET_NmiCounterValueSet( RESET_ID_0, nmi_count); #endif PLIB_DEVCON_SystemLock(DEVCON_ID_0); }
/* Function: void SYS_PORTS_RemapOutput( PORTS_MODULE_ID index, PORTS_REMAP_OUTPUT_FUNCTION function, PORTS_REMAP_OUTPUT_PIN remapPin ) Summary: Input/Output (I/O) function remapping. Description: This function controls the I/O function remapping. Precondition: None. */ void SYS_PORTS_RemapOutput( PORTS_MODULE_ID index, PORTS_REMAP_OUTPUT_FUNCTION function, PORTS_REMAP_OUTPUT_PIN remapPin ) { #if defined(PLIB_PORTS_ExistsRemapOutput) if(PLIB_PORTS_ExistsRemapOutput(index)) { PLIB_DEVCON_SystemUnlock(DEVCON_ID_0); PLIB_DEVCON_DeviceRegistersUnlock(DEVCON_ID_0, DEVCON_PPS_REGISTERS); PLIB_PORTS_RemapOutput( index, function, remapPin); } #endif }