├── README.md
├── TerminalUSB_V1.3_UPGRADE.hex
├── TerminalUSB_V1.3_plus_Bootloader.hex
└── firmware
├── TerminalUSB.X
├── .gitignore
├── .gitignore~
├── Makefile
└── nbproject
│ ├── .gitignore
│ ├── configurations.xml
│ ├── project.properties
│ └── project.xml
└── src
├── Fonts.h
├── Keyboard.c
├── Terminal.h
├── Video.c
├── Video.h
├── main.c
├── system_config
└── default
│ ├── app_mx.ld
│ ├── bin
│ └── framework
│ │ └── peripheral
│ │ └── PIC32MX250F128B_peripherals.a
│ ├── bsp
│ ├── bsp.c
│ └── bsp.h
│ ├── configuration.xml
│ ├── default.mhc
│ ├── framework
│ ├── driver
│ │ ├── driver.h
│ │ ├── driver_common.h
│ │ ├── tmr
│ │ │ ├── drv_tmr.h
│ │ │ ├── drv_tmr_compatibility.h
│ │ │ ├── drv_tmr_mapping.h
│ │ │ ├── drv_tmr_static.h
│ │ │ ├── src
│ │ │ │ ├── drv_tmr_local.h
│ │ │ │ ├── drv_tmr_mapping.c
│ │ │ │ ├── drv_tmr_static.c
│ │ │ │ ├── drv_tmr_variant_mapping.h
│ │ │ │ └── dynamic
│ │ │ │ │ └── drv_tmr.c
│ │ │ └── tmr_definitions_pic32m.h
│ │ └── usb
│ │ │ ├── drv_usb.h
│ │ │ └── usbfs
│ │ │ ├── drv_usbfs.h
│ │ │ ├── drv_usbfs_mapping.h
│ │ │ └── src
│ │ │ ├── drv_usbfs_local.h
│ │ │ ├── drv_usbfs_variant_mapping.h
│ │ │ └── dynamic
│ │ │ ├── drv_usbfs.c
│ │ │ └── drv_usbfs_host.c
│ ├── osal
│ │ ├── osal.h
│ │ ├── osal_definitions.h
│ │ └── osal_impl_basic.h
│ ├── peripheral
│ │ ├── adc
│ │ │ ├── plib_adc.h
│ │ │ ├── processor
│ │ │ │ ├── adc_p32mx250f128b.h
│ │ │ │ ├── adc_p32xxxx.h
│ │ │ │ └── adc_processor.h
│ │ │ └── templates
│ │ │ │ ├── adc_CalibrationControl_Default.h
│ │ │ │ ├── adc_ConversionClockSource_Default.h
│ │ │ │ ├── adc_ConversionClock_Default.h
│ │ │ │ ├── adc_ConversionControl_Default.h
│ │ │ │ ├── adc_ConversionStatus_Default.h
│ │ │ │ ├── adc_ConversionStopSequenceControl_Default.h
│ │ │ │ ├── adc_ConversionTriggerSource_Default.h
│ │ │ │ ├── adc_EnableControl_Default.h
│ │ │ │ ├── adc_MuxChannel0NegativeInput_Default.h
│ │ │ │ ├── adc_MuxChannel0PositiveInput_Default.h
│ │ │ │ ├── adc_MuxInputScanControl_Default.h
│ │ │ │ ├── adc_MuxInputScanSelectExtended_Unsupported.h
│ │ │ │ ├── adc_MuxInputScanSelect_Default.h
│ │ │ │ ├── adc_ResultBufferFillStatus_Default.h
│ │ │ │ ├── adc_ResultBufferMode_Default.h
│ │ │ │ ├── adc_ResultFormat_Default.h
│ │ │ │ ├── adc_ResultGetByIndex_Default.h
│ │ │ │ ├── adc_SamplesPerInterruptSelect_Default.h
│ │ │ │ ├── adc_SamplingAcquisitionTime_Default.h
│ │ │ │ ├── adc_SamplingAutoStart_Default.h
│ │ │ │ ├── adc_SamplingControl_Default.h
│ │ │ │ ├── adc_SamplingModeControl_Default.h
│ │ │ │ ├── adc_SamplingStatus_Default.h
│ │ │ │ ├── adc_StopInIdle_Default.h
│ │ │ │ ├── adc_VoltageReference_Default.h
│ │ │ │ └── adc_registers.h
│ │ ├── adchs
│ │ │ ├── plib_adchs.h
│ │ │ └── processor
│ │ │ │ ├── adchs_p32mx250f128b.h
│ │ │ │ ├── adchs_p32xxxx.h
│ │ │ │ └── adchs_processor.h
│ │ ├── adcp
│ │ │ ├── plib_adcp.h
│ │ │ ├── processor
│ │ │ │ ├── adcp_p32mx250f128b.h
│ │ │ │ ├── adcp_p32xxxx.h
│ │ │ │ └── adcp_processor.h
│ │ │ └── templates
│ │ │ │ └── adcp_registers.h
│ │ ├── bmx
│ │ │ ├── plib_bmx.h
│ │ │ ├── processor
│ │ │ │ ├── bmx_p32mx250f128b.h
│ │ │ │ ├── bmx_p32xxxx.h
│ │ │ │ └── bmx_processor.h
│ │ │ └── templates
│ │ │ │ ├── bmx_ArbitrationMode_Default.h
│ │ │ │ ├── bmx_BusExceptionDMA_Default.h
│ │ │ │ ├── bmx_BusExceptionData_Default.h
│ │ │ │ ├── bmx_BusExceptionICD_Default.h
│ │ │ │ ├── bmx_BusExceptionIXI_Default.h
│ │ │ │ ├── bmx_BusExceptionInstruction_Default.h
│ │ │ │ ├── bmx_DataRAMPartition_Default.h
│ │ │ │ ├── bmx_DataRAMSize_Default.h
│ │ │ │ ├── bmx_DataRamWaitState_Default.h
│ │ │ │ ├── bmx_ProgramFlashBootSize_Default.h
│ │ │ │ ├── bmx_ProgramFlashMemoryCacheDma_Default.h
│ │ │ │ ├── bmx_ProgramFlashMemorySize_Default.h
│ │ │ │ ├── bmx_ProgramFlashPartition_Default.h
│ │ │ │ └── bmx_registers.h
│ │ ├── can
│ │ │ ├── plib_can.h
│ │ │ ├── processor
│ │ │ │ ├── can_p32mx250f128b.h
│ │ │ │ ├── can_p32xxxx.h
│ │ │ │ └── can_processor.h
│ │ │ └── templates
│ │ │ │ └── can_registers.h
│ │ ├── cdac
│ │ │ ├── plib_cdac.h
│ │ │ ├── processor
│ │ │ │ ├── cdac_p32mx250f128b.h
│ │ │ │ ├── cdac_p32xxxx.h
│ │ │ │ └── cdac_processor.h
│ │ │ └── templates
│ │ │ │ └── cdac_registers.h
│ │ ├── cmp
│ │ │ ├── plib_cmp.h
│ │ │ ├── plib_cmp_compatibility.h
│ │ │ ├── processor
│ │ │ │ ├── cmp_p32mx250f128b.h
│ │ │ │ ├── cmp_p32xxxx.h
│ │ │ │ └── cmp_processor.h
│ │ │ └── templates
│ │ │ │ ├── cmp_CVREFBGRefVoltageRangeSelect_Unsupported.h
│ │ │ │ ├── cmp_CVREFEnableControl_Default.h
│ │ │ │ ├── cmp_CVREFOutputEnableControl_Default.h
│ │ │ │ ├── cmp_CVREFRefVoltageRangeSelect_Unsupported.h
│ │ │ │ ├── cmp_CVREFValueSelect_Default.h
│ │ │ │ ├── cmp_CVREFVoltageRangeSelect_Default.h
│ │ │ │ ├── cmp_CVREFWideRangeControl_Default.h
│ │ │ │ ├── cmp_ComparatorEnableControl_Default.h
│ │ │ │ ├── cmp_ComparatorEventStatusGet_Unsupported.h
│ │ │ │ ├── cmp_ComparatorOutputDigitalFilter_Unsupported.h
│ │ │ │ ├── cmp_ComparatorOutputEnableControl_Default.h
│ │ │ │ ├── cmp_ComparatorOutputMasking_Unsupported.h
│ │ │ │ ├── cmp_InterruptEventSelect_Default.h
│ │ │ │ ├── cmp_InvertOutputSelectControl_Default.h
│ │ │ │ ├── cmp_InvertingInputSelect_Default.h
│ │ │ │ ├── cmp_NonInvertingInputSelect_Default.h
│ │ │ │ ├── cmp_OpAmpEnableControl_Unsupported.h
│ │ │ │ ├── cmp_OpAmpOutputEnableControl_Unsupported.h
│ │ │ │ ├── cmp_OutputStatusGet_Default.h
│ │ │ │ ├── cmp_StopInIdle_Default.h
│ │ │ │ └── cmp_registers.h
│ │ ├── ctmu
│ │ │ ├── plib_ctmu.h
│ │ │ ├── processor
│ │ │ │ ├── ctmu_p32mx250f128b.h
│ │ │ │ ├── ctmu_p32xxxx.h
│ │ │ │ └── ctmu_processor.h
│ │ │ └── templates
│ │ │ │ ├── ctmu_AutomaticADCTrigger_Default.h
│ │ │ │ ├── ctmu_CurrentDischarge_Default.h
│ │ │ │ ├── ctmu_CurrentRange_Default.h
│ │ │ │ ├── ctmu_CurrentTrim_Default.h
│ │ │ │ ├── ctmu_EdgeEnable_Default.h
│ │ │ │ ├── ctmu_EdgePolarity_Default.h
│ │ │ │ ├── ctmu_EdgeSensitivity_Default.h
│ │ │ │ ├── ctmu_EdgeSequencing_Default.h
│ │ │ │ ├── ctmu_EdgeStatus_Default.h
│ │ │ │ ├── ctmu_EdgeTriggerSource_Default.h
│ │ │ │ ├── ctmu_ModuleEnable_Default.h
│ │ │ │ ├── ctmu_StopInIdle_Default.h
│ │ │ │ ├── ctmu_TimePulseGeneration_Default.h
│ │ │ │ └── ctmu_registers.h
│ │ ├── ctr
│ │ │ ├── plib_ctr.h
│ │ │ └── processor
│ │ │ │ ├── ctr_p32mx250f128b.h
│ │ │ │ ├── ctr_p32xxxx.h
│ │ │ │ └── ctr_processor.h
│ │ ├── ddr
│ │ │ ├── plib_ddr.h
│ │ │ └── processor
│ │ │ │ ├── ddr_p32mx250f128b.h
│ │ │ │ ├── ddr_p32xxxx.h
│ │ │ │ └── ddr_processor.h
│ │ ├── devcon
│ │ │ ├── plib_devcon.h
│ │ │ ├── processor
│ │ │ │ ├── devcon_p32mx250f128b.h
│ │ │ │ ├── devcon_p32xxxx.h
│ │ │ │ └── devcon_processor.h
│ │ │ └── templates
│ │ │ │ ├── devcon_AlternateClock_Unsupported.h
│ │ │ │ ├── devcon_AnalogChargePumpControl_Unsupported.h
│ │ │ │ ├── devcon_BootSelection_Unsupported.h
│ │ │ │ ├── devcon_DeviceRegsLockUnlock_PIC32MX.h
│ │ │ │ ├── devcon_DeviceVerAndId_Default.h
│ │ │ │ ├── devcon_ECCModes_Unsupported.h
│ │ │ │ ├── devcon_HSUARTControl_Unsupported.h
│ │ │ │ ├── devcon_IgnoreDebugFreeze_Unsupported.h
│ │ │ │ ├── devcon_JTAGEnable_Default.h
│ │ │ │ ├── devcon_JTAGUsesTDO_Default.h
│ │ │ │ ├── devcon_MPLL_Unsupported.h
│ │ │ │ ├── devcon_OTPConfigLockUnlock_Unsupported.h
│ │ │ │ ├── devcon_SysLockUnlock_Default.h
│ │ │ │ ├── devcon_TraceOutput_Unsupported.h
│ │ │ │ └── devcon_USB_PHY_SleepModeSet_Unsupported.h
│ │ ├── dma
│ │ │ ├── plib_dma.h
│ │ │ ├── processor
│ │ │ │ ├── dma_p32mx250f128b.h
│ │ │ │ ├── dma_p32xxxx.h
│ │ │ │ └── dma_processor.h
│ │ │ └── templates
│ │ │ │ ├── dma_AbortTransfer_Default.h
│ │ │ │ ├── dma_Busy_Default.h
│ │ │ │ ├── dma_CRCAppendMode_Default.h
│ │ │ │ ├── dma_CRCBitOrder_Default.h
│ │ │ │ ├── dma_CRCByteOrder_Default.h
│ │ │ │ ├── dma_CRCChannel_Default.h
│ │ │ │ ├── dma_CRCData_Default.h
│ │ │ │ ├── dma_CRCPolynomialLength_Default.h
│ │ │ │ ├── dma_CRCType_Default.h
│ │ │ │ ├── dma_CRCWriteByteOrder_Default.h
│ │ │ │ ├── dma_CRCXOREnable_Default.h
│ │ │ │ ├── dma_ChannelBits_Default.h
│ │ │ │ ├── dma_ChannelXAbortIRQ_Default.h
│ │ │ │ ├── dma_ChannelXAuto_Default.h
│ │ │ │ ├── dma_ChannelXBusy_Default.h
│ │ │ │ ├── dma_ChannelXCellProgressPointer_Default.h
│ │ │ │ ├── dma_ChannelXCellSize_Default.h
│ │ │ │ ├── dma_ChannelXChainEnbl_Default.h
│ │ │ │ ├── dma_ChannelXChain_Default.h
│ │ │ │ ├── dma_ChannelXDestinationPointer_Default.h
│ │ │ │ ├── dma_ChannelXDestinationSize_Default.h
│ │ │ │ ├── dma_ChannelXDestinationStartAddress_Default.h
│ │ │ │ ├── dma_ChannelXDisabled_Default.h
│ │ │ │ ├── dma_ChannelXEvent_Default.h
│ │ │ │ ├── dma_ChannelXINTSourceFlag_Default.h
│ │ │ │ ├── dma_ChannelXINTSource_Default.h
│ │ │ │ ├── dma_ChannelXPatternData_Default.h
│ │ │ │ ├── dma_ChannelXPatternIgnoreByte_Unsupported.h
│ │ │ │ ├── dma_ChannelXPatternIgnore_Unsupported.h
│ │ │ │ ├── dma_ChannelXPatternLength_Unsupported.h
│ │ │ │ ├── dma_ChannelXPriority_Default.h
│ │ │ │ ├── dma_ChannelXSourcePointer_Default.h
│ │ │ │ ├── dma_ChannelXSourceSize_Default.h
│ │ │ │ ├── dma_ChannelXSourceStartAddress_Default.h
│ │ │ │ ├── dma_ChannelXStartIRQ_Default.h
│ │ │ │ ├── dma_ChannelXTrigger_Default.h
│ │ │ │ ├── dma_ChannelX_Default.h
│ │ │ │ ├── dma_Crc_Default.h
│ │ │ │ ├── dma_EnableControl_Default.h
│ │ │ │ ├── dma_LastBusAccess_Default.h
│ │ │ │ ├── dma_RecentAddress_Default.h
│ │ │ │ ├── dma_Registers.h
│ │ │ │ ├── dma_StartTransfer_Default.h
│ │ │ │ ├── dma_StopInIdle_Unsupported.h
│ │ │ │ └── dma_Suspend_Default.h
│ │ ├── dmt
│ │ │ ├── plib_dmt.h
│ │ │ └── processor
│ │ │ │ ├── dmt_p32mx250f128b.h
│ │ │ │ ├── dmt_p32mxxxx.h
│ │ │ │ └── dmt_processor.h
│ │ ├── ebi
│ │ │ ├── plib_ebi.h
│ │ │ ├── processor
│ │ │ │ ├── ebi_p32mx250f128b.h
│ │ │ │ ├── ebi_p32xxxx.h
│ │ │ │ └── ebi_processor.h
│ │ │ └── templates
│ │ │ │ └── ebi_Registers.h
│ │ ├── eth
│ │ │ ├── plib_eth.h
│ │ │ ├── processor
│ │ │ │ ├── eth_p32mx250f128b.h
│ │ │ │ ├── eth_p32xxxx.h
│ │ │ │ └── eth_processor.h
│ │ │ └── templates
│ │ │ │ └── eth_registers.h
│ │ ├── glcd
│ │ │ ├── plib_glcd.h
│ │ │ └── processor
│ │ │ │ ├── glcd_p32mx250f128b.h
│ │ │ │ ├── glcd_p32xxxx.h
│ │ │ │ └── glcd_processor.h
│ │ ├── i2c
│ │ │ ├── plib_i2c.h
│ │ │ ├── plib_i2c_helper_macros.h
│ │ │ ├── processor
│ │ │ │ ├── i2c_p32mx250f128b.h
│ │ │ │ ├── i2c_p32xxxx.h
│ │ │ │ └── i2c_processor.h
│ │ │ └── templates
│ │ │ │ ├── i2c_AcksequenceIsInProgress_Unsupported.h
│ │ │ │ ├── i2c_ArbitrationLoss_Default.h
│ │ │ │ ├── i2c_BaudRate_Default.h
│ │ │ │ ├── i2c_BusIdle_Default.h
│ │ │ │ ├── i2c_ClockStretching_Default.h
│ │ │ │ ├── i2c_DataLineHoldTime_Unsupported.h
│ │ │ │ ├── i2c_GeneralCallAddressDetect_Default.h
│ │ │ │ ├── i2c_GeneralCall_Default.h
│ │ │ │ ├── i2c_HighFrequency_Default.h
│ │ │ │ ├── i2c_IPMI_Unsupported.h
│ │ │ │ ├── i2c_MasterReceiverClock1Byte_Default.h
│ │ │ │ ├── i2c_MasterStartRepeat_Default.h
│ │ │ │ ├── i2c_MasterStart_Default.h
│ │ │ │ ├── i2c_MasterStop_Default.h
│ │ │ │ ├── i2c_ModuleEnable_Default.h
│ │ │ │ ├── i2c_ReceivedByteAcknowledge_Default.h
│ │ │ │ ├── i2c_ReceivedByteAvailable_Default.h
│ │ │ │ ├── i2c_ReceivedByteGet_Default.h
│ │ │ │ ├── i2c_ReceiverOverflow_Default.h
│ │ │ │ ├── i2c_Registers.h
│ │ │ │ ├── i2c_ReservedAddressProtect_Default.h
│ │ │ │ ├── i2c_SMBus_Default.h
│ │ │ │ ├── i2c_SlaveAddress10Bit_Default.h
│ │ │ │ ├── i2c_SlaveAddress7Bit_Default.h
│ │ │ │ ├── i2c_SlaveAddressDetect_Default.h
│ │ │ │ ├── i2c_SlaveAddressHoldEnable_Unsupported.h
│ │ │ │ ├── i2c_SlaveBufferOverwrite_Unsupported.h
│ │ │ │ ├── i2c_SlaveBusCollisionDetect_Unsupported.h
│ │ │ │ ├── i2c_SlaveClockHold_Default.h
│ │ │ │ ├── i2c_SlaveDataDetect_Default.h
│ │ │ │ ├── i2c_SlaveDataHoldEnable_Unsupported.h
│ │ │ │ ├── i2c_SlaveInterruptOnStart_Unsupported.h
│ │ │ │ ├── i2c_SlaveInterruptOnStop_Unsupported.h
│ │ │ │ ├── i2c_SlaveMask_Default.h
│ │ │ │ ├── i2c_SlaveReadRequest_Default.h
│ │ │ │ ├── i2c_StartDetect_Default.h
│ │ │ │ ├── i2c_StopDetect_Default.h
│ │ │ │ ├── i2c_StopInIdle_Default.h
│ │ │ │ ├── i2c_TransmitterBusy_Default.h
│ │ │ │ ├── i2c_TransmitterByteAcknowledge_Default.h
│ │ │ │ ├── i2c_TransmitterByteComplete_Default.h
│ │ │ │ ├── i2c_TransmitterByteSend_Default.h
│ │ │ │ └── i2c_TransmitterOverflow_Default.h
│ │ ├── ic
│ │ │ ├── plib_ic.h
│ │ │ ├── processor
│ │ │ │ ├── ic_p32mx250f128b.h
│ │ │ │ ├── ic_p32xxxx.h
│ │ │ │ └── ic_processor.h
│ │ │ └── templates
│ │ │ │ ├── ic_AlternateClock_Unsupported.h
│ │ │ │ ├── ic_AlternateTimerSelect_Unsupported.h
│ │ │ │ ├── ic_BufferIsEmptyStatus_Default.h
│ │ │ │ ├── ic_BufferOverflowStatus_Default.h
│ │ │ │ ├── ic_BufferSize_Default.h
│ │ │ │ ├── ic_BufferValue_32Bit_Variant.h
│ │ │ │ ├── ic_CaptureMode_Default.h
│ │ │ │ ├── ic_EdgeCapture_Default.h
│ │ │ │ ├── ic_EnableControl_Default.h
│ │ │ │ ├── ic_EventsPerInterruptSelect_Default.h
│ │ │ │ ├── ic_Registers.h
│ │ │ │ ├── ic_StopInIdle_Default.h
│ │ │ │ └── ic_TimerSelect_Default.h
│ │ ├── int
│ │ │ ├── plib_int.h
│ │ │ ├── plib_int_private_pic32.h
│ │ │ ├── processor
│ │ │ │ ├── int_p32mx250f128b.h
│ │ │ │ ├── int_p32xxxx.h
│ │ │ │ └── int_processor.h
│ │ │ └── templates
│ │ │ │ ├── int_CPUCurrentPriorityLevel_Default.h
│ │ │ │ ├── int_EnableControl_PIC32.h
│ │ │ │ ├── int_ExternalINTEdgeSelect_Default.h
│ │ │ │ ├── int_INTCPUPriority_Default.h
│ │ │ │ ├── int_INTCPUVector_MX.h
│ │ │ │ ├── int_ProximityTimerControl_Default.h
│ │ │ │ ├── int_ProximityTimerEnable_Default.h
│ │ │ │ ├── int_ShadowRegisterAssign_Unsupported.h
│ │ │ │ ├── int_SingleVectorShadowSet_MX.h
│ │ │ │ ├── int_SoftwareNMI_Unsupported.h
│ │ │ │ ├── int_SourceControl_Default.h
│ │ │ │ ├── int_SourceFlag_Default.h
│ │ │ │ ├── int_VariableOffset_Unsupported.h
│ │ │ │ ├── int_VectorPriority_Default.h
│ │ │ │ └── int_VectorSelect_Default.h
│ │ ├── mcpwm
│ │ │ ├── plib_mcpwm.h
│ │ │ ├── processor
│ │ │ │ ├── mcpwm_p32mx250f128b.h
│ │ │ │ ├── mcpwm_p32xxxx.h
│ │ │ │ └── mcpwm_processor.h
│ │ │ └── templates
│ │ │ │ └── mcpwm_registers.h
│ │ ├── nvm
│ │ │ ├── plib_nvm.h
│ │ │ ├── processor
│ │ │ │ ├── nvm_p32mx250f128b.h
│ │ │ │ ├── nvm_p32xxxx.h
│ │ │ │ └── nvm_processor.h
│ │ │ └── templates
│ │ │ │ ├── nvm_AddressModifyControl_Default.h
│ │ │ │ ├── nvm_BootFlashBankRegion_Unsupported.h
│ │ │ │ ├── nvm_BootPageWriteProtect_Unsupported.h
│ │ │ │ ├── nvm_EEPROMAddressControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMCalibrationData_Unsupported.h
│ │ │ │ ├── nvm_EEPROMDataControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMEnableControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMEnableOperationControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMErrorStatus_Unsupported.h
│ │ │ │ ├── nvm_EEPROMKeySequence_Unsupported.h
│ │ │ │ ├── nvm_EEPROMLongWriteStatus_Unsupported.h
│ │ │ │ ├── nvm_EEPROMOperationAbortControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMOperationModeControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMStartOperationControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMStopInIdleControl_Unsupported.h
│ │ │ │ ├── nvm_EEPROMWaitStates_Unsupported.h
│ │ │ │ ├── nvm_FlashBankRegionSelect_Unsupported.h
│ │ │ │ ├── nvm_FlashWPMemoryRangeProvide_Unsupported.h
│ │ │ │ ├── nvm_KeySequence_Default.h
│ │ │ │ ├── nvm_LockBootSelect_Unsupported.h
│ │ │ │ ├── nvm_LockPFMSelect_Unsupported.h
│ │ │ │ ├── nvm_LowVoltageError_Default.h
│ │ │ │ ├── nvm_LowVoltageStatus_Default.h
│ │ │ │ ├── nvm_MemoryModificationControl_Default.h
│ │ │ │ ├── nvm_OperationMode_Default.h
│ │ │ │ ├── nvm_ProvideData_MX.h
│ │ │ │ ├── nvm_ProvideQuadData_Unsupported.h
│ │ │ │ ├── nvm_SourceAddress_Default.h
│ │ │ │ ├── nvm_SwapLockControl_Unsupported.h
│ │ │ │ ├── nvm_WriteErrorStatus_Default.h
│ │ │ │ └── nvm_WriteOperation_Default.h
│ │ ├── oc
│ │ │ ├── plib_oc.h
│ │ │ ├── processor
│ │ │ │ ├── oc_p32mx250f128b.h
│ │ │ │ ├── oc_p32xxxx.h
│ │ │ │ └── oc_processor.h
│ │ │ └── templates
│ │ │ │ ├── oc_AlternateClock_Unsupported.h
│ │ │ │ ├── oc_AlternateTimerSelect_Unsupported.h
│ │ │ │ ├── oc_BufferSize_Default.h
│ │ │ │ ├── oc_BufferValue_32Bit_Variant.h
│ │ │ │ ├── oc_CompareModeSelect_Default.h
│ │ │ │ ├── oc_EnableControl_Default.h
│ │ │ │ ├── oc_FaultInput_Default.h
│ │ │ │ ├── oc_FaultStatus_Default.h
│ │ │ │ ├── oc_PulseWidth_32Bit_Variant.h
│ │ │ │ ├── oc_Registers.h
│ │ │ │ ├── oc_StopInIdle_Default.h
│ │ │ │ └── oc_TimerSelect_Default.h
│ │ ├── osc
│ │ │ ├── plib_osc.h
│ │ │ ├── processor
│ │ │ │ ├── osc_p32mx250f128b.h
│ │ │ │ ├── osc_p32xxxx.h
│ │ │ │ └── osc_processor.h
│ │ │ └── templates
│ │ │ │ ├── osc_BTPLLClockOut_Unsupported.h
│ │ │ │ ├── osc_BTPLLFrequencyRange_Unsupported.h
│ │ │ │ ├── osc_BTPLLInputClockSource_Unsupported.h
│ │ │ │ ├── osc_BTPLLInputDivisor_Unsupported.h
│ │ │ │ ├── osc_BTPLLMultiplier_Unsupported.h
│ │ │ │ ├── osc_BTPLLOutputDivisor_Unsupported.h
│ │ │ │ ├── osc_ClockDiagStatus_Unsupported.h
│ │ │ │ ├── osc_ClockFail_Default.h
│ │ │ │ ├── osc_ClockReadyStatus_Unsupported.h
│ │ │ │ ├── osc_ClockSlewingStatus_Unsupported.h
│ │ │ │ ├── osc_DreamModeControl_Unsupported.h
│ │ │ │ ├── osc_FRCDivisor_Default.h
│ │ │ │ ├── osc_FRCTuning_Default.h
│ │ │ │ ├── osc_ForceLock_Unsupported.h
│ │ │ │ ├── osc_OnWaitAction_Default.h
│ │ │ │ ├── osc_OscCurrentGet_Default.h
│ │ │ │ ├── osc_OscSelect_Default.h
│ │ │ │ ├── osc_OscSwitchInit_Default.h
│ │ │ │ ├── osc_PBClockDivisor_PIC32_1.h
│ │ │ │ ├── osc_PBClockOutputEnable_Unsupported.h
│ │ │ │ ├── osc_PBClockReady_Default.h
│ │ │ │ ├── osc_PLLBypass_Unsupported.h
│ │ │ │ ├── osc_PLLClockLock_Default.h
│ │ │ │ ├── osc_PLLFrequencyRange_Unsupported.h
│ │ │ │ ├── osc_PLLInputClockSource_Unsupported.h
│ │ │ │ ├── osc_PLLInputDivisor_Unsupported.h
│ │ │ │ ├── osc_PLLLockStatus_Default.h
│ │ │ │ ├── osc_PLLMultiplier_PIC32_1.h
│ │ │ │ ├── osc_PLLOutputDivisor_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscBaseClock_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscChangeActive_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscChange_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscDivisor_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscEnable_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscStopInIdleEnable_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscStopInSleep_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOscTrim_PIC32_1.h
│ │ │ │ ├── osc_ReferenceOutputEnable_PIC32_1.h
│ │ │ │ ├── osc_ResetPLL_Unsupported.h
│ │ │ │ ├── osc_SecondaryEnable_Default.h
│ │ │ │ ├── osc_SecondaryReady_Default.h
│ │ │ │ ├── osc_SleepToStartupClock_Unsupported.h
│ │ │ │ ├── osc_SlewDivisorStepControl_Unsupported.h
│ │ │ │ ├── osc_SlewEnableControl_Unsupported.h
│ │ │ │ ├── osc_SystemClockDivisorControl_Unsupported.h
│ │ │ │ ├── osc_UPLLFrequencyRange_Unsupported.h
│ │ │ │ ├── osc_UPLLInputDivisor_Unsupported.h
│ │ │ │ ├── osc_UPLLMultiplier_Unsupported.h
│ │ │ │ ├── osc_UPLLOutputDivisor_Unsupported.h
│ │ │ │ └── osc_UsbClockSource_Default.h
│ │ ├── pcache
│ │ │ ├── plib_pcache.h
│ │ │ ├── processor
│ │ │ │ ├── pcache_p32mx250f128b.h
│ │ │ │ ├── pcache_p32xxxx.h
│ │ │ │ └── pcache_processor.h
│ │ │ └── templates
│ │ │ │ └── pcache_Registers.h
│ │ ├── peripheral.h
│ │ ├── peripheral_common.h
│ │ ├── peripheral_common_32bit.h
│ │ ├── pmp
│ │ │ ├── plib_pmp.h
│ │ │ ├── processor
│ │ │ │ ├── pmp_p32mx250f128b.h
│ │ │ │ ├── pmp_p32xxxx.h
│ │ │ │ └── pmp_processor.h
│ │ │ └── templates
│ │ │ │ ├── pmp_AddressControl_Default.h
│ │ │ │ ├── pmp_AddressLatchPolarity_Default.h
│ │ │ │ ├── pmp_AddressLatchStrobePortControl_Default.h
│ │ │ │ ├── pmp_AddressPortPinControl_Basic.h
│ │ │ │ ├── pmp_BufferOverFlow_Default.h
│ │ │ │ ├── pmp_BufferRead_32bit.h
│ │ │ │ ├── pmp_BufferType_Default.h
│ │ │ │ ├── pmp_BufferUnderFlow_Default.h
│ │ │ │ ├── pmp_BufferWrite_32bit.h
│ │ │ │ ├── pmp_BusyStatus_Default.h
│ │ │ │ ├── pmp_CSXActiveStatus_Default.h
│ │ │ │ ├── pmp_ChipSelectEnable_Basic.h
│ │ │ │ ├── pmp_ChipSelectoperation_Default.h
│ │ │ │ ├── pmp_ChipXPolarity_Default.h
│ │ │ │ ├── pmp_DataHoldWaitStates_Default.h
│ │ │ │ ├── pmp_DataSetUpWaitStates_Default.h
│ │ │ │ ├── pmp_DataStrobeWaitStates_Default.h
│ │ │ │ ├── pmp_DataTransferSize_Unsupported.h
│ │ │ │ ├── pmp_DualBufferControl_Unsupported.h
│ │ │ │ ├── pmp_DualModeMasterRXTX_Unsupported.h
│ │ │ │ ├── pmp_DualModeReadAddressControl_Unsupported.h
│ │ │ │ ├── pmp_DualModeWriteAddressControl_Unsupported.h
│ │ │ │ ├── pmp_EnableControl_Default.h
│ │ │ │ ├── pmp_IncrementMode_Default.h
│ │ │ │ ├── pmp_InputBufferFull_Default.h
│ │ │ │ ├── pmp_InputBufferXStatus_Default.h
│ │ │ │ ├── pmp_InterruptMode_Default.h
│ │ │ │ ├── pmp_MUXModeSelect_Default.h
│ │ │ │ ├── pmp_MasterRXTX_Default.h
│ │ │ │ ├── pmp_OperationMode_Default.h
│ │ │ │ ├── pmp_OutPutBufferEmpty_Default.h
│ │ │ │ ├── pmp_OutputBufferXStatus_Default.h
│ │ │ │ ├── pmp_ReadChipSelectEnable_Unsupported.h
│ │ │ │ ├── pmp_ReadWritePolarity_Basic.h
│ │ │ │ ├── pmp_ReadWriteStrobePortControl_Default.h
│ │ │ │ ├── pmp_SlaveRX_Default.h
│ │ │ │ ├── pmp_SlaveTX_Default.h
│ │ │ │ ├── pmp_StartReadControl_Unsupported.h
│ │ │ │ ├── pmp_StopInIdleControl_Default.h
│ │ │ │ ├── pmp_WriteChipSelectEnable_Unsupported.h
│ │ │ │ ├── pmp_WriteEnablePolarity_Basic.h
│ │ │ │ └── pmp_WriteEnablePortControl_Default.h
│ │ ├── ports
│ │ │ ├── plib_ports.h
│ │ │ ├── plib_ports_compatibility.h
│ │ │ ├── processor
│ │ │ │ ├── ports_p32mx250f128b.h
│ │ │ │ ├── ports_p32xxxx.h
│ │ │ │ └── ports_processor.h
│ │ │ └── templates
│ │ │ │ ├── ports_AnPinsMode_Unsupported.h
│ │ │ │ ├── ports_ChangeNoticeEdgeControl_Unsupported.h
│ │ │ │ ├── ports_ChangeNoticeEdgeStatus_Unsupported.h
│ │ │ │ ├── ports_ChangeNoticeInIdlePerPort_Default.h
│ │ │ │ ├── ports_ChangeNoticeInIdle_Unsupported.h
│ │ │ │ ├── ports_ChangeNoticePerPortStatus_Default.h
│ │ │ │ ├── ports_ChangeNoticePerPortTurnOn_Default.h
│ │ │ │ ├── ports_ChangeNoticePullDownPerPort_Default.h
│ │ │ │ ├── ports_ChangeNoticePullUpPerPort_Default.h
│ │ │ │ ├── ports_ChangeNoticePullup_Unsupported.h
│ │ │ │ ├── ports_ChangeNotice_Unsupported.h
│ │ │ │ ├── ports_ChannelChangeNoticeMethod_Unsupported.h
│ │ │ │ ├── ports_LatchRead_MCU32_PPS.h
│ │ │ │ ├── ports_PinChangeNoticePerPort_Default.h
│ │ │ │ ├── ports_PinChangeNotice_Unsupported.h
│ │ │ │ ├── ports_PinModePerPort_Default.h
│ │ │ │ ├── ports_PinMode_PPS.h
│ │ │ │ ├── ports_PortsDirection_MCU32_PPS.h
│ │ │ │ ├── ports_PortsOpenDrain_MCU32_PPS.h
│ │ │ │ ├── ports_PortsRead_MCU32_PPS.h
│ │ │ │ ├── ports_PortsWrite_MCU32_PPS.h
│ │ │ │ ├── ports_RemapInput_default.h
│ │ │ │ ├── ports_RemapOutput_PIC32_2.h
│ │ │ │ └── ports_SlewRateControl_Unsupported.h
│ │ ├── power
│ │ │ ├── plib_power.h
│ │ │ ├── processor
│ │ │ │ ├── power_p32mx250f128b.h
│ │ │ │ ├── power_p32xxxx.h
│ │ │ │ └── power_processor.h
│ │ │ └── templates
│ │ │ │ ├── power_DeepSleepEventStatus_Unsupported.h
│ │ │ │ ├── power_DeepSleepGPROperation_Unsupported.h
│ │ │ │ ├── power_DeepSleepGPRsRetentionControl_Unsupported.h
│ │ │ │ ├── power_DeepSleepModeControl_Unsupported.h
│ │ │ │ ├── power_DeepSleepModeOccurrence_Unsupported.h
│ │ │ │ ├── power_DeepSleepModuleControl_Unsupported.h
│ │ │ │ ├── power_DeepSleepPortPinsStateControl_Unsupported.h
│ │ │ │ ├── power_DeepSleepWakeupEventControl_Unsupported.h
│ │ │ │ ├── power_HLVDBandGapVoltageStability_Unsupported.h
│ │ │ │ ├── power_HLVDEnableControl_Unsupported.h
│ │ │ │ ├── power_HLVDLimitSelection_Unsupported.h
│ │ │ │ ├── power_HLVDModeControl_Unsupported.h
│ │ │ │ ├── power_HLVDStatus_Unsupported.h
│ │ │ │ ├── power_HLVDStopInIdleControl_Unsupported.h
│ │ │ │ ├── power_HighVoltageOnVDD1V8_Unsupported.h
│ │ │ │ ├── power_IdleStatus_Default.h
│ │ │ │ ├── power_PeripheralModuleControl_PIC32_1.h
│ │ │ │ ├── power_SleepStatus_Default.h
│ │ │ │ └── power_VoltageRegulatorControl_Default.h
│ │ ├── ptg
│ │ │ ├── plib_ptg.h
│ │ │ └── processor
│ │ │ │ ├── ptg_p32mx250f128b.h
│ │ │ │ ├── ptg_p32xxxx.h
│ │ │ │ └── ptg_processor.h
│ │ ├── reset
│ │ │ ├── plib_reset.h
│ │ │ ├── processor
│ │ │ │ ├── reset_p32mx250f128b.h
│ │ │ │ ├── reset_p32xxxx.h
│ │ │ │ └── reset_processor.h
│ │ │ └── templates
│ │ │ │ ├── reset_ConfigRegReadError_Unsupported.h
│ │ │ │ ├── reset_NmiControl_Unsupported.h
│ │ │ │ ├── reset_NmiCounter_Unsupported.h
│ │ │ │ ├── reset_ResetReasonStatus_MX.h
│ │ │ │ ├── reset_SoftwareResetTrigger_Default.h
│ │ │ │ └── reset_WdtoInSleep_Unsupported.h
│ │ ├── rtcc
│ │ │ ├── plib_rtcc.h
│ │ │ ├── processor
│ │ │ │ ├── rtcc_p32mx250f128b.h
│ │ │ │ ├── rtcc_p32xxxx.h
│ │ │ │ └── rtcc_processor.h
│ │ │ └── templates
│ │ │ │ ├── rtcc_AlarmChimeControl_Default.h
│ │ │ │ ├── rtcc_AlarmControl_Default.h
│ │ │ │ ├── rtcc_AlarmDate_Default.h
│ │ │ │ ├── rtcc_AlarmMaskControl_Default.h
│ │ │ │ ├── rtcc_AlarmPulseInitial_Default.h
│ │ │ │ ├── rtcc_AlarmRepeatControl_Default.h
│ │ │ │ ├── rtcc_AlarmSync_Default.h
│ │ │ │ ├── rtcc_AlarmTime_Default.h
│ │ │ │ ├── rtcc_Calibration_Default.h
│ │ │ │ ├── rtcc_ClockRunning_Default.h
│ │ │ │ ├── rtcc_ClockSelect_Unsupported.h
│ │ │ │ ├── rtcc_EnableControl_Default.h
│ │ │ │ ├── rtcc_HalfSecond_Default.h
│ │ │ │ ├── rtcc_OutputControl_Default.h
│ │ │ │ ├── rtcc_OutputSelect_Default.h
│ │ │ │ ├── rtcc_RTCDate_Default.h
│ │ │ │ ├── rtcc_RTCTime_Default.h
│ │ │ │ ├── rtcc_Registers.h
│ │ │ │ ├── rtcc_StopInIdle_Default.h
│ │ │ │ ├── rtcc_Sync_Default.h
│ │ │ │ └── rtcc_WriteEnable_Default.h
│ │ ├── sb
│ │ │ ├── plib_sb.h
│ │ │ └── processor
│ │ │ │ ├── sb_p32mx250f128b.h
│ │ │ │ ├── sb_p32xxxx.h
│ │ │ │ └── sb_processor.h
│ │ ├── spi
│ │ │ ├── plib_spi.h
│ │ │ ├── processor
│ │ │ │ ├── spi_p32mx250f128b.h
│ │ │ │ ├── spi_p32xxxx.h
│ │ │ │ └── spi_processor.h
│ │ │ └── templates
│ │ │ │ ├── spi_AudioCommunicationWidth_PIC32.h
│ │ │ │ ├── spi_AudioErrorControl_Default.h
│ │ │ │ ├── spi_AudioProtocolControl_Default.h
│ │ │ │ ├── spi_AudioProtocolMode_Default.h
│ │ │ │ ├── spi_AudioTransmitMode_Default.h
│ │ │ │ ├── spi_BaudRateClock_Default.h
│ │ │ │ ├── spi_BaudRate_Default.h
│ │ │ │ ├── spi_Buffer16bit_Default.h
│ │ │ │ ├── spi_Buffer32bit_Default.h
│ │ │ │ ├── spi_Buffer_Default.h
│ │ │ │ ├── spi_BusStatus_Default.h
│ │ │ │ ├── spi_ClockPolarity_Default.h
│ │ │ │ ├── spi_CommunicationWidth_PIC32.h
│ │ │ │ ├── spi_EnableControl_Default.h
│ │ │ │ ├── spi_ErrorInterruptControl_Default.h
│ │ │ │ ├── spi_FIFOControl_Default.h
│ │ │ │ ├── spi_FIFOCount_PIC32.h
│ │ │ │ ├── spi_FIFOInterruptMode_PIC32.h
│ │ │ │ ├── spi_FIFOShiftRegisterEmptyStatus_Default.h
│ │ │ │ ├── spi_FrameErrorStatus_Default.h
│ │ │ │ ├── spi_FrameSyncPulseCounter_PIC32.h
│ │ │ │ ├── spi_FrameSyncPulseDirection_Default.h
│ │ │ │ ├── spi_FrameSyncPulseEdge_Default.h
│ │ │ │ ├── spi_FrameSyncPulsePolarity_Default.h
│ │ │ │ ├── spi_FrameSyncPulseWidth_Default.h
│ │ │ │ ├── spi_FramedCommunication_Default.h
│ │ │ │ ├── spi_InputSamplePhase_Default.h
│ │ │ │ ├── spi_MasterControl_Default.h
│ │ │ │ ├── spi_OutputDataPhase_Default.h
│ │ │ │ ├── spi_PinControl_PIC32.h
│ │ │ │ ├── spi_ReadDataSignStatus_Default.h
│ │ │ │ ├── spi_ReceiveBufferStatus_Default.h
│ │ │ │ ├── spi_ReceiveFIFOStatus_Default.h
│ │ │ │ ├── spi_ReceiverOverflow_Default.h
│ │ │ │ ├── spi_SlaveSelectControl_Default.h
│ │ │ │ ├── spi_StopInIdle_Default.h
│ │ │ │ ├── spi_TransmitBufferEmptyStatus_Default.h
│ │ │ │ ├── spi_TransmitBufferFullStatus_Default.h
│ │ │ │ ├── spi_TransmitUnderRunStatus_Default.h
│ │ │ │ └── spi_registers.h
│ │ ├── sqi
│ │ │ ├── plib_sqi.h
│ │ │ ├── processor
│ │ │ │ ├── sqi_p32mx250f128b.h
│ │ │ │ ├── sqi_p32xxxx.h
│ │ │ │ └── sqi_processor.h
│ │ │ └── templates
│ │ │ │ └── sqi_registers.h
│ │ ├── tmr
│ │ │ ├── plib_tmr.h
│ │ │ ├── processor
│ │ │ │ ├── tmr_p32mx250f128b.h
│ │ │ │ ├── tmr_p32xxxx.h
│ │ │ │ └── tmr_processor.h
│ │ │ └── templates
│ │ │ │ ├── tmr_ClockSourceSync_Inverted.h
│ │ │ │ ├── tmr_ClockSource_Default.h
│ │ │ │ ├── tmr_Counter16Bit_In16BitRegister.h
│ │ │ │ ├── tmr_Counter32Bit_In16BitRegister.h
│ │ │ │ ├── tmr_CounterAsyncWriteControl_Default.h
│ │ │ │ ├── tmr_CounterAsyncWriteInProgress_Default.h
│ │ │ │ ├── tmr_EnableControl_Default.h
│ │ │ │ ├── tmr_GatedTimeAccumulation_Default.h
│ │ │ │ ├── tmr_Mode16Bit_Default.h
│ │ │ │ ├── tmr_Mode32Bit_Default.h
│ │ │ │ ├── tmr_Period16Bit_Default.h
│ │ │ │ ├── tmr_Period32Bit_In16BitRegister_pic32.h
│ │ │ │ ├── tmr_Prescale_Default.h
│ │ │ │ ├── tmr_StopInIdle_Default.h
│ │ │ │ ├── tmr_TimerOperationMode_Default.h
│ │ │ │ └── tmr_registers.h
│ │ ├── usart
│ │ │ ├── plib_usart.h
│ │ │ ├── processor
│ │ │ │ ├── usart_p32mx250f128b.h
│ │ │ │ ├── usart_p32xxxx.h
│ │ │ │ └── usart_processor.h
│ │ │ └── templates
│ │ │ │ ├── usart_BRGClockSourceSelect_Unsupported.h
│ │ │ │ ├── usart_BaudRateAutoDetect_Default.h
│ │ │ │ ├── usart_BaudRateHigh_In16BitRegister.h
│ │ │ │ ├── usart_BaudRate_In16BitRegister.h
│ │ │ │ ├── usart_EnableControl_Default.h
│ │ │ │ ├── usart_HandShakeMode_Default.h
│ │ │ │ ├── usart_IrDAControl_Default.h
│ │ │ │ ├── usart_LineControlMode_RXandTXCombined.h
│ │ │ │ ├── usart_Loopback_Default.h
│ │ │ │ ├── usart_OperationMode_Default.h
│ │ │ │ ├── usart_Receiver9Bits_Default.h
│ │ │ │ ├── usart_ReceiverAddressAutoDetect_Default.h
│ │ │ │ ├── usart_ReceiverAddressDetect_Default.h
│ │ │ │ ├── usart_ReceiverAddressMask_Unsupported.h
│ │ │ │ ├── usart_ReceiverAddress_Default.h
│ │ │ │ ├── usart_ReceiverDataAvailable_Default.h
│ │ │ │ ├── usart_ReceiverEnableControl_Default.h
│ │ │ │ ├── usart_ReceiverFramingError_Default.h
│ │ │ │ ├── usart_ReceiverIdle_Default.h
│ │ │ │ ├── usart_ReceiverInterruptMode_Default.h
│ │ │ │ ├── usart_ReceiverOverrunError_Default.h
│ │ │ │ ├── usart_ReceiverParityError_Default.h
│ │ │ │ ├── usart_ReceiverPolarityInvert_Default.h
│ │ │ │ ├── usart_Receiver_Default.h
│ │ │ │ ├── usart_RunInOverflow_Unsupported.h
│ │ │ │ ├── usart_RunInSleepMode_Unsupported.h
│ │ │ │ ├── usart_StopInIdle_Default.h
│ │ │ │ ├── usart_Transmitter9Bits_InDataOnly.h
│ │ │ │ ├── usart_TransmitterBreak_Default.h
│ │ │ │ ├── usart_TransmitterBufferFull_Default.h
│ │ │ │ ├── usart_TransmitterEmpty_Default.h
│ │ │ │ ├── usart_TransmitterEnableControl_Default.h
│ │ │ │ ├── usart_TransmitterIdleIsLow_pic32.h
│ │ │ │ ├── usart_TransmitterInterruptMode_Default.h
│ │ │ │ ├── usart_Transmitter_Default.h
│ │ │ │ ├── usart_UsartModuleStatus_Unsupported.h
│ │ │ │ ├── usart_WakeOnStart_Default.h
│ │ │ │ └── usart_registers.h
│ │ ├── usb
│ │ │ ├── plib_usb.h
│ │ │ ├── processor
│ │ │ │ ├── usb_p32mx250f128b.h
│ │ │ │ ├── usb_p32xxxx.h
│ │ │ │ └── usb_processor.h
│ │ │ └── templates
│ │ │ │ ├── usb_ALL_Interrupt_Default.h
│ │ │ │ ├── usb_ActivityPending_Default.h
│ │ │ │ ├── usb_AutomaticSuspend_Default.h
│ │ │ │ ├── usb_BDTBaseAddress_Default.h
│ │ │ │ ├── usb_BDTFunctions_PIC32.h
│ │ │ │ ├── usb_BufferFreeze_Default.h
│ │ │ │ ├── usb_DeviceAddress_Default.h
│ │ │ │ ├── usb_EP0LowSpeedConnect_Default.h
│ │ │ │ ├── usb_EP0NAKRetry_Default.h
│ │ │ │ ├── usb_EPnRxEnableEnhanced_PIC32.h
│ │ │ │ ├── usb_EPnTxRx_Default.h
│ │ │ │ ├── usb_ERR_InterruptStatus_Default.h
│ │ │ │ ├── usb_ERR_Interrupt_Default.h
│ │ │ │ ├── usb_EyePattern_Default.h
│ │ │ │ ├── usb_FrameNumber_Default.h
│ │ │ │ ├── usb_GEN_InterruptStatus_Default.h
│ │ │ │ ├── usb_GEN_Interrupt_Default.h
│ │ │ │ ├── usb_HostBusyWithToken_Default.h
│ │ │ │ ├── usb_HostGeneratesReset_Default.h
│ │ │ │ ├── usb_LastDirection_Default.h
│ │ │ │ ├── usb_LastEndpoint_Default.h
│ │ │ │ ├── usb_LastPingPong_Default.h
│ │ │ │ ├── usb_LastTransactionDetails_Default.h
│ │ │ │ ├── usb_LiveJState_Default.h
│ │ │ │ ├── usb_LiveSingleEndedZero_Default.h
│ │ │ │ ├── usb_ModuleBusy_Default.h
│ │ │ │ ├── usb_ModulePower_32Bit16Bit.h
│ │ │ │ ├── usb_NextTokenSpeed_Default.h
│ │ │ │ ├── usb_OTG_ASessionValid_Default.h
│ │ │ │ ├── usb_OTG_BSessionEnd_Default.h
│ │ │ │ ├── usb_OTG_IDPinState_Default.h
│ │ │ │ ├── usb_OTG_InterruptStatus_Default.h
│ │ │ │ ├── usb_OTG_Interrupt_Default.h
│ │ │ │ ├── usb_OTG_LineState_Default.h
│ │ │ │ ├── usb_OTG_PullUpPullDown_Default.h
│ │ │ │ ├── usb_OTG_SessionValid_Default.h
│ │ │ │ ├── usb_OTG_VbusCharge_Default.h
│ │ │ │ ├── usb_OTG_VbusDischarge_Default.h
│ │ │ │ ├── usb_OTG_VbusPowerOnOff_Default.h
│ │ │ │ ├── usb_OnChipPullup_Unsupported.h
│ │ │ │ ├── usb_OnChipTransceiver_Unsupported.h
│ │ │ │ ├── usb_OpModeSelect_Default.h
│ │ │ │ ├── usb_PacketTransfer_Default.h
│ │ │ │ ├── usb_PingPongMode_Unsupported.h
│ │ │ │ ├── usb_ResumeSignaling_Default.h
│ │ │ │ ├── usb_SOFThreshold_Default.h
│ │ │ │ ├── usb_SleepEntryGuard_Default.h
│ │ │ │ ├── usb_SpeedControl_Unsupported.h
│ │ │ │ ├── usb_StartOfFrames_Default.h
│ │ │ │ ├── usb_StopInIdle_Default.h
│ │ │ │ ├── usb_Suspend_Default.h
│ │ │ │ ├── usb_TokenEP_Default.h
│ │ │ │ ├── usb_TokenPID_Default.h
│ │ │ │ ├── usb_UOEMonitor_Unsupported.h
│ │ │ │ └── usb_registers.h
│ │ ├── usbhs
│ │ │ ├── plib_usbhs.h
│ │ │ ├── processor
│ │ │ │ ├── usbhs_p32mx250f128b.h
│ │ │ │ ├── usbhs_p32xxxx.h
│ │ │ │ └── usbhs_processor.h
│ │ │ └── templates
│ │ │ │ └── usbhs_registers.h
│ │ └── wdt
│ │ │ ├── plib_wdt.h
│ │ │ ├── processor
│ │ │ ├── wdt_p32mx250f128b.h
│ │ │ ├── wdt_p32xxxx.h
│ │ │ └── wdt_processor.h
│ │ │ └── templates
│ │ │ ├── wdt_EnableControl_Default.h
│ │ │ ├── wdt_PostscalerValue_Default.h
│ │ │ ├── wdt_SleepModePostscalerValue_Unsupported.h
│ │ │ ├── wdt_TimerClear_Default.h
│ │ │ └── wdt_WindowEnable_Default.h
│ ├── system
│ │ ├── clk
│ │ │ ├── src
│ │ │ │ └── sys_clk_pic32mx.c
│ │ │ ├── sys_clk.h
│ │ │ ├── sys_clk_compatibility.h
│ │ │ └── sys_clk_mapping.h
│ │ ├── common
│ │ │ ├── sys_buffer.h
│ │ │ ├── sys_common.h
│ │ │ ├── sys_module.h
│ │ │ └── sys_queue.h
│ │ ├── debug
│ │ │ └── sys_debug.h
│ │ ├── devcon
│ │ │ ├── src
│ │ │ │ ├── sys_devcon.c
│ │ │ │ ├── sys_devcon_local.h
│ │ │ │ └── sys_devcon_pic32mx.c
│ │ │ └── sys_devcon.h
│ │ ├── int
│ │ │ ├── src
│ │ │ │ ├── sys_int_pic32.c
│ │ │ │ └── sys_int_private.h
│ │ │ ├── sys_int.h
│ │ │ └── sys_int_mapping.h
│ │ ├── ports
│ │ │ ├── src
│ │ │ │ └── sys_ports_static.c
│ │ │ ├── sys_ports.h
│ │ │ └── sys_ports_definitions.h
│ │ ├── reset
│ │ │ └── src
│ │ │ │ └── sys_reset.c
│ │ ├── system.h
│ │ └── tmr
│ │ │ ├── src
│ │ │ ├── sys_tmr.c
│ │ │ └── sys_tmr_local.h
│ │ │ └── sys_tmr.h
│ └── usb
│ │ ├── src
│ │ ├── dynamic
│ │ │ ├── usb_host.c
│ │ │ ├── usb_host_hid.c
│ │ │ └── usb_host_hid_keyboard.c
│ │ ├── usb_host_hid_keyboard_local.h
│ │ ├── usb_host_hid_local.h
│ │ ├── usb_host_hub_mapping.h
│ │ └── usb_host_local.h
│ │ ├── usb_chapter_9.h
│ │ ├── usb_common.h
│ │ ├── usb_hid.h
│ │ ├── usb_host.h
│ │ ├── usb_host_client_driver.h
│ │ ├── usb_host_hid.h
│ │ ├── usb_host_hid_keyboard.h
│ │ ├── usb_host_hub.h
│ │ ├── usb_host_hub_interface.h
│ │ └── usb_hub.h
│ ├── system_config.h
│ ├── system_definitions.h
│ ├── system_exceptions.c
│ ├── system_init.c
│ ├── system_interrupt.c
│ └── system_tasks.c
├── vt100.c
└── vt100.h
/firmware/TerminalUSB.X/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | dist
3 | debug
4 | disassembly
5 |
--------------------------------------------------------------------------------
/firmware/TerminalUSB.X/.gitignore~:
--------------------------------------------------------------------------------
1 | build
2 | dist
3 | debug
4 | disassembly
--------------------------------------------------------------------------------
/firmware/TerminalUSB.X/nbproject/.gitignore:
--------------------------------------------------------------------------------
1 | private
2 | Makefile-*
3 | Package-*.bash
--------------------------------------------------------------------------------
/firmware/TerminalUSB.X/nbproject/project.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dhansel/TerminalUSB/697e4ee5f5607c8a226289e09104da35410087e3/firmware/TerminalUSB.X/nbproject/project.properties
--------------------------------------------------------------------------------
/firmware/TerminalUSB.X/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.microchip.mplab.nbide.embedded.makeproject
4 |
5 |
6 |
7 | TerminalUSB
8 | e54023e9-3948-44ef-bf6f-29d8b223e555
9 | 0
10 | c
11 |
12 | h
13 |
14 | ISO-8859-1
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/bin/framework/peripheral/PIC32MX250F128B_peripherals.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dhansel/TerminalUSB/697e4ee5f5607c8a226289e09104da35410087e3/firmware/src/system_config/default/bin/framework/peripheral/PIC32MX250F128B_peripherals.a
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/driver/driver.h:
--------------------------------------------------------------------------------
1 | /*************************************************************************
2 | Driver Library Interface Header Definitions
3 |
4 | Company:
5 | Microchip Technology Inc.
6 |
7 | File Name:
8 | drv.h
9 |
10 | Summary:
11 | This file aggregates all of the driver library interface headers.
12 |
13 | Description:
14 | Driver Library Interface Header
15 | This file aggregates all of the driver library interface headers so
16 | client code only needs to include this one single header to obtain
17 | prototypes and definitions for the interfaces to all driver libraries.
18 | A device driver provides a simple well-defined interface to a hardware
19 | peripheral that can be used without operating system support or that
20 | can be easily ported to a variety of operating systems.
21 | A driver has the fundamental responsibilities:
22 | * Providing a highly abstracted interface to a peripheral
23 | * Controlling access to a peripheral
24 | * Managing the state of a peripheral
25 |
26 | Remarks:
27 | The directory in which this file resides should be added to the
28 | compiler's search path for header files.
29 | *************************************************************************/
30 |
31 | //DOM-IGNORE-BEGIN
32 | /*******************************************************************************
33 | Copyright (c) 2010-2013 released Microchip Technology Inc. All rights reserved.
34 |
35 | Microchip licenses to you the right to use, modify, copy and distribute
36 | Software only when embedded on a Microchip microcontroller or digital signal
37 | controller that is integrated into your product or third party product
38 | (pursuant to the sublicense terms in the accompanying license agreement).
39 |
40 | You should refer to the license agreement accompanying this Software for
41 | additional information regarding your rights and obligations.
42 |
43 | SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
44 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
45 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
46 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
47 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
48 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
49 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
50 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
51 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
52 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
53 | *******************************************************************************/
54 | //DOM-IGNORE-END
55 |
56 | #ifndef _DRIVER_H
57 | #define _DRIVER_H
58 |
59 |
60 | // *****************************************************************************
61 | // *****************************************************************************
62 | // Section: Included Driver Module Headers Files
63 | // *****************************************************************************
64 | // *****************************************************************************
65 |
66 | #include "driver/driver_common.h"
67 |
68 |
69 | #endif // _DRIVER_H
70 | /*******************************************************************************
71 | End of File
72 | */
73 |
74 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/osal/osal_definitions.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __OSAL_DEFINITIONS_H
3 | #define __OSAL_DEFINITIONS_H
4 |
5 | #if !defined(OSAL_USE_RTOS) && !defined(OSAL_USE_BASIC) && !defined(OSAL_USE_NONE)
6 | #define OSAL_USE_BASIC
7 | #endif
8 |
9 | #ifdef OSAL_USE_BASIC
10 | #include "osal/osal_impl_basic.h"
11 | #elif defined(OSAL_USE_NONE)
12 | //#error OSAL_USE_NONE has been defined. The use of OSAL_USE_NONE, is currently prohibited. Please select OSAL_USE_BASIC, or OSAL_USE_RTOS.
13 | #include "osal/osal_impl_none.h"
14 | #elif (OSAL_USE_RTOS == 0xFFFF)
15 | #include "osal/osal_user.h"
16 | #elif (OSAL_USE_RTOS == 1 || OSAL_USE_RTOS == 9)
17 | #include "osal/osal_freertos.h"
18 | #elif (OSAL_USE_RTOS == 2)
19 | #include "osal/osal_freertos_v7xx.h"
20 | #elif (OSAL_USE_RTOS == 3)
21 | #include "osal/osal_openrtos.h"
22 | #elif (OSAL_USE_RTOS == 4)
23 | #include "osal/osal_openrtos_v7xx.h"
24 | #elif (OSAL_USE_RTOS == 5)
25 | #include "osal/osal_ucos3.h"
26 | #elif (OSAL_USE_RTOS == 6)
27 | #include "osal/osal_ucos2.h"
28 | #elif (OSAL_USE_RTOS == 7)
29 | #include "osal/osal_threadx.h"
30 | #elif (OSAL_USE_RTOS == 8)
31 | #include "osal/osal_embos.h"
32 | #else
33 | #error OSAL_USE_RTOS was defined, but to an unrecognized value. Define OSAL_USE_RTOS to a value which indicates the RTOS being used.
34 | #endif
35 |
36 | #endif//__OSAL_DEFINITIONS_H
37 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/adc/processor/adc_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_ADC_PROCESSOR_H
27 | #define _PLIB_ADC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "adc_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "adc_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "adc_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "adc_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_ADC_PROCESSOR_H
47 |
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/adchs/processor/adchs_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_ADCHS_PROCESSOR_H
27 | #define _PLIB_ADCHS_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "adchs_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "adchs_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "adchs_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "adchs_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_ADCHS_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/adcp/processor/adcp_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_ADCP_PROCESSOR_H
27 | #define _PLIB_ADCP_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "adcp_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "adcp_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "adcp_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "adcp_p32xxxx.h"
40 |
41 | #else
42 | #error Cant find header
43 |
44 | #endif
45 |
46 | #endif//_PLIB_ADCP_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/bmx/plib_bmx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dhansel/TerminalUSB/697e4ee5f5607c8a226289e09104da35410087e3/firmware/src/system_config/default/framework/peripheral/bmx/plib_bmx.h
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/bmx/processor/bmx_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _BMX_PROCESSOR_H
27 | #define _BMX_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "bmx_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "bmx_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "bmx_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "bmx_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_BMX_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/bmx/templates/bmx_registers.h:
--------------------------------------------------------------------------------
1 | #ifndef __PLIB_BMX_TEMPLATE_BMX_REGISTERS_H__
2 | #define __PLIB_BMX_TEMPLATE_BMX_REGISTERS_H__
3 |
4 | typedef struct bmx_regs {
5 | __BMXCONbits_t BMXCON;
6 | uint32_t BMXCONCLR;
7 | uint32_t BMXCONSET;
8 | uint32_t BMXCONINV;
9 | uint32_t BMXDKPBA;
10 | uint32_t Reserved1[3];
11 | uint32_t BMXDUDBA;
12 | uint32_t Reserved2[3];
13 | uint32_t BMXDUPBA;
14 | uint32_t Reserved3[3];
15 | uint32_t BMXDRMSZ;
16 | uint32_t Reserved4[3];
17 | uint32_t BMXPUPBA;
18 | uint32_t BMXPUPBACLR;
19 | uint32_t BMXPUPBASET;
20 | uint32_t BMXPUPBAINV;
21 | uint32_t BMXPFMSZ;
22 | uint32_t Reserved5[3];
23 | uint32_t BMXBOOTSZ;
24 | uint32_t Reserved6[3];
25 | } bmx_register_t;
26 |
27 | #endif /* __PLIB_BMX_TEMPLATE_BMX_REGISTERS_H__ */
28 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/can/processor/can_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_CAN_PROCESSOR_H
27 | #define _PLIB_CAN_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "can_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "can_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "can_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "can_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_CAN_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/cdac/processor/cdac_p32mx250f128b.h:
--------------------------------------------------------------------------------
1 | /* Created by plibgen $Revision: 1.31 $ */
2 |
3 | #ifndef _CDAC_P32MX250F128B_H
4 | #define _CDAC_P32MX250F128B_H
5 |
6 | /* Section 1 - Enumerate instances, define constants, VREGs */
7 |
8 | #include
9 | #include
10 |
11 | #include "peripheral/peripheral_common_32bit.h"
12 |
13 | /* Default definition used for all API dispatch functions */
14 | #ifndef PLIB_INLINE_API
15 | #define PLIB_INLINE_API extern inline
16 | #endif
17 |
18 | /* Default definition used for all other functions */
19 | #ifndef PLIB_INLINE
20 | #define PLIB_INLINE extern inline
21 | #endif
22 |
23 | typedef enum {
24 |
25 | CDAC_NUMBER_OF_MODULES = 0
26 |
27 | } CDAC_MODULE_ID;
28 |
29 | typedef enum {
30 |
31 | CDAC_OUTPUT_SELECTION_NONE
32 |
33 | } CDAC_OUTPUT_SELECTION;
34 |
35 | typedef enum {
36 |
37 | CDAC_MODULE_ENABLE_NONE
38 |
39 | } CDAC_MODULE_ENABLE;
40 |
41 | typedef enum {
42 |
43 | CDAC_OUTPUT_ENABLE_NONE
44 |
45 | } CDAC_OUTPUT_ENABLE;
46 |
47 | typedef enum {
48 |
49 | CDAC_REF_SEL_NONE
50 |
51 | } CDAC_REF_SEL;
52 |
53 | /* Section 2 - Feature variant inclusion */
54 |
55 | #define PLIB_TEMPLATE PLIB_INLINE
56 |
57 | /* Section 3 - PLIB dispatch function definitions */
58 |
59 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_Enable(CDAC_MODULE_ID index)
60 | {
61 |
62 | }
63 |
64 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_Disable(CDAC_MODULE_ID index)
65 | {
66 |
67 | }
68 |
69 | PLIB_INLINE_API bool PLIB_CDAC_ExistsEnableControl(CDAC_MODULE_ID index)
70 | {
71 | return (bool)0;
72 | }
73 |
74 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_OutputEnable(CDAC_MODULE_ID index, CDAC_OUTPUT_SELECTION output)
75 | {
76 |
77 | }
78 |
79 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_OutputDisable(CDAC_MODULE_ID index, CDAC_OUTPUT_SELECTION output)
80 | {
81 |
82 | }
83 |
84 | PLIB_INLINE_API bool PLIB_CDAC_ExistsOutputControl(CDAC_MODULE_ID index)
85 | {
86 | return (bool)0;
87 | }
88 |
89 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_ReferenceVoltageSelect(CDAC_MODULE_ID index, CDAC_REF_SEL refSel)
90 | {
91 |
92 | }
93 |
94 | PLIB_INLINE_API bool PLIB_CDAC_ExistsReferenceVoltageSelect(CDAC_MODULE_ID index)
95 | {
96 | return (bool)0;
97 | }
98 |
99 | PLIB_INLINE_API uint16_t _PLIB_UNSUPPORTED PLIB_CDAC_DataRead(CDAC_MODULE_ID index)
100 | {
101 | return (uint16_t)0;
102 | }
103 |
104 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_CDAC_DataWrite(CDAC_MODULE_ID index, uint16_t cdacData)
105 | {
106 |
107 | }
108 |
109 | PLIB_INLINE_API bool PLIB_CDAC_ExistsDataControl(CDAC_MODULE_ID index)
110 | {
111 | return (bool)0;
112 | }
113 |
114 | #endif
115 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/cdac/processor/cdac_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_CDAC_PROCESSOR_H
27 | #define _PLIB_CDAC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "cdac_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "cdac_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "cdac_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "cdac_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_CDAC_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/cdac/templates/cdac_registers.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | SPI Peripheral Library structure implementation
3 |
4 | File Name:
5 | spi_registers.h
6 |
7 | Summary:
8 | SPI PLIB base structure implementation
9 |
10 | Description:
11 | This header file contains instance structure for spi plib module.
12 | SPI2 is used as reference instance instead of SPI1 because
13 | some devices doesn't support SPI1
14 |
15 | *******************************************************************************/
16 |
17 | //DOM-IGNORE-BEGIN
18 | /*******************************************************************************
19 | Copyright (c) 2015 released Microchip Technology Inc. All rights reserved.
20 |
21 | Microchip licenses to you the right to use, modify, copy and distribute
22 | Software only when embedded on a Microchip microcontroller or digital signal
23 | controller that is integrated into your product or third party product
24 | (pursuant to the sublicense terms in the accompanying license agreement).
25 |
26 | You should refer to the license agreement accompanying this Software for
27 | additional information regarding your rights and obligations.
28 |
29 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
30 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
31 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
32 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
33 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
34 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
35 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
36 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
37 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
38 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
39 | *******************************************************************************/
40 |
41 | //DOM-IGNORE-END
42 | #include
43 |
44 | #ifndef _CDAC_STRUCTURE_H
45 | #define _CDAC_STRUCTURE_H
46 |
47 | /* This is the register set structure of CDAC module */
48 | typedef struct __attribute__((packed , aligned(4)))
49 | {
50 | __DAC1CONbits_t DACxCON;
51 | volatile unsigned int DACxCONCLR;
52 | volatile unsigned int DACxCONSET;
53 | volatile unsigned int DACxCONINV;
54 | } cdac_registers_t;
55 |
56 | #endif /*_CDAC_STRUCTURE_H*/
57 |
58 | /******************************************************************************
59 | End of File
60 | */
61 |
62 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/cmp/processor/cmp_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_CMP_PROCESSOR_H
27 | #define _PLIB_CMP_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "cmp_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "cmp_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "cmp_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "cmp_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_CMP_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ctmu/processor/ctmu_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_CTMU_PROCESSOR_H
27 | #define _PLIB_CTMU_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "ctmu_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "ctmu_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "ctmu_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "ctmu_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_CTMU_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ctmu/templates/ctmu_registers.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | CTMU Peripheral Library structure implementation
3 |
4 | File Name:
5 | ctmu_structure.h
6 |
7 | Summary:
8 | CTMU PLIB base structure implementation
9 |
10 | Description:
11 | This header file contains instance structure for CTMU plib module.
12 |
13 | *******************************************************************************/
14 |
15 | //DOM-IGNORE-BEGIN
16 | /*******************************************************************************
17 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
18 |
19 | Microchip licenses to you the right to use, modify, copy and distribute
20 | Software only when embedded on a Microchip microcontroller or digital signal
21 | controller that is integrated into your product or third party product
22 | (pursuant to the sublicense terms in the accompanying license agreement).
23 |
24 | You should refer to the license agreement accompanying this Software for
25 | additional information regarding your rights and obligations.
26 |
27 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
28 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
29 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
30 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
31 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
32 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
33 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
34 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
35 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
36 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
37 | *******************************************************************************/
38 |
39 | //DOM-IGNORE-END
40 |
41 | #include
42 |
43 | #ifndef _CTMU_STRUCTURE_H
44 | #define _CTMU_STRUCTURE_H
45 |
46 | typedef struct __attribute__((packed , aligned(4)))
47 | {
48 | __CTMUCONbits_t CTMUCON;
49 | volatile unsigned int CTMUCONCLR;
50 | volatile unsigned int CTMUCONSET;
51 | volatile unsigned int CTMUCONINV;
52 |
53 | } ctmu_registers_t ;
54 |
55 | #endif /*_CTMU_STRUCTURE_H*/
56 |
57 | /******************************************************************************
58 | End of File
59 | */
60 |
61 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ctr/processor/ctr_processor.h:
--------------------------------------------------------------------------------
1 | #ifndef _CTR_PROCESSOR_H
2 | #define _CTR_PROCESSOR_H
3 |
4 | #if defined(__PIC32MX__)
5 | #include "ctr_p32xxxx.h"
6 |
7 | #elif defined(__PIC32MZ__)
8 | #include "ctr_p32xxxx.h"
9 |
10 | #elif defined(__PIC32MK__)
11 | #include "ctr_p32xxxx.h"
12 |
13 | #elif defined(__PIC32WK__)
14 | #include "ctr_p32xxxx.h"
15 |
16 | #else
17 | #error "Can't find header"
18 |
19 | #endif
20 |
21 | #endif//B_CTR_PROCESSOR_H
22 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ddr/processor/ddr_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_DDR_PROCESSOR_H
27 | #define _PLIB_DDR_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include
34 |
35 | #elif defined(__PIC32MK__)
36 | #include
37 |
38 | #elif defined(__PIC32WK__)
39 | #include
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_DDR_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/devcon/processor/devcon_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _DEVCON_PROCESSOR_H
27 | #define _DEVCON_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "devcon_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "devcon_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "devcon_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "devcon_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_DEVCON_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/dma/processor/dma_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_DMA_PROCESSOR_H
27 | #define _PLIB_DMA_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include
34 |
35 | #elif defined(__PIC32MK__)
36 | #include
37 |
38 | #elif defined(__PIC32WK__)
39 | #include
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_DMA_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/dma/templates/dma_Registers.h:
--------------------------------------------------------------------------------
1 | #ifndef __PERPHERAL_DMA_TEMPLATE_REGISTERS_H
2 | #define __PERPHERAL_DMA_TEMPLATE_REGISTERS_H
3 |
4 | /* DMA Core Registers */
5 | typedef struct dma_regs {
6 | /* Control */
7 | __DMACONbits_t DMACON;
8 | uint32_t DMACONCLR;
9 | uint32_t DMACONSET;
10 | uint32_t DMACONINV;
11 | /* DMA status */
12 | __DMASTATbits_t DMASTAT;
13 | uint32_t DMASTATCLR;
14 | uint32_t DMASTATSET;
15 | uint32_t DMASTATINV;
16 | /* DMA address */
17 | uint32_t DMAADDR;
18 | uint32_t DONTUSE1[3];
19 | /* CRC Control */
20 | __DCRCCONbits_t DCRCCON;
21 | uint32_t DCRCCONCLR;
22 | uint32_t DCRCCONSET;
23 | uint32_t DCRCCONINV;
24 | /* CRC Data */
25 | uint32_t DCRCDATA;
26 | uint32_t DONTUSE2[3];
27 | /* CRC XOR */
28 | uint32_t DCRCXOR;
29 | uint32_t DONTUSE3[3];
30 | } dma_register_t;
31 |
32 | /* DMA Channel Register */
33 | typedef struct dma_ch_regs {
34 | /* DMA Channel Control */
35 | __DCH0CONbits_t DCHxCON;
36 | uint32_t DCHxCONCLR;
37 | uint32_t DCHxCONSET;
38 | uint32_t DCHxCONINV;
39 | /* DMA Channel Event */
40 | __DCH0ECONbits_t DCHxECON;
41 | uint32_t DCHxECONCLR;
42 | uint32_t DCHxECONSET;
43 | uint32_t DCHxECONINV;
44 | /* DMA Channel Interrupt */
45 | __DCH0INTbits_t DCHxINT;
46 | uint32_t DCHxINTCLR;
47 | uint32_t DCHxINTSET;
48 | uint32_t DCHxINTINV;
49 | /* DMA Source Start Address */
50 | uint32_t DCHxSSA;
51 | uint32_t DONTUSE4[3];
52 | /* DMA Destination Start Address */
53 | uint32_t DCHxDSA;
54 | uint32_t DONTUSE5[3];
55 | /* DMA Source Size */
56 | uint32_t DCHxSSIZ;
57 | uint32_t DONTUSE6[3];
58 | /* DMA Destination Size */
59 | uint32_t DCHxDSIZ;
60 | uint32_t DONTUSE7[3];
61 | /* DMA Source Pointer */
62 | uint32_t DCHxSPTR;
63 | uint32_t DONTUSE8[3];
64 | /* DMA Destination Pointer */
65 | uint32_t DCHxDPTR;
66 | uint32_t DONTUSE9[3];
67 | /* DMA Cell Size */
68 | uint32_t DCHxCSIZ;
69 | uint32_t DONTUSE10[3];
70 | /* DMA Cell Pointer */
71 | uint32_t DCHxCPTR;
72 | uint32_t DONTUSE11[3];
73 | /* DMA Data Pattern */
74 | uint32_t DCHxDAT;
75 | uint32_t DONTUSE12[3];
76 | } dma_ch_register_t;
77 |
78 | #endif /* __PERPHERAL_DMA_TEMPLATE_REGISTERS_H */
79 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/dmt/processor/dmt_p32mx250f128b.h:
--------------------------------------------------------------------------------
1 | /* Created by plibgen $Revision: 1.31 $ */
2 |
3 | #ifndef _DMT_P32MX250F128B_H
4 | #define _DMT_P32MX250F128B_H
5 |
6 | /* Section 1 - Enumerate instances, define constants, VREGs */
7 |
8 | #include
9 | #include
10 |
11 | #include "peripheral/peripheral_common_32bit.h"
12 |
13 | /* Default definition used for all API dispatch functions */
14 | #ifndef PLIB_INLINE_API
15 | #define PLIB_INLINE_API extern inline
16 | #endif
17 |
18 | /* Default definition used for all other functions */
19 | #ifndef PLIB_INLINE
20 | #define PLIB_INLINE extern inline
21 | #endif
22 |
23 | typedef enum {
24 |
25 | DMT_NUMBER_OF_MODULES = 0
26 |
27 | } DMT_MODULE_ID;
28 |
29 | /* Section 2 - Feature variant inclusion */
30 |
31 | #define PLIB_TEMPLATE PLIB_INLINE
32 |
33 | /* Section 3 - PLIB dispatch function definitions */
34 |
35 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_DMT_Enable(DMT_MODULE_ID index)
36 | {
37 |
38 | }
39 |
40 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_DMT_Disable(DMT_MODULE_ID index)
41 | {
42 |
43 | }
44 |
45 | PLIB_INLINE_API bool _PLIB_UNSUPPORTED PLIB_DMT_IsEnabled(DMT_MODULE_ID index)
46 | {
47 | return (bool)0;
48 | }
49 |
50 | PLIB_INLINE_API bool PLIB_DMT_ExistsEnableControl(DMT_MODULE_ID index)
51 | {
52 | return (bool)0;
53 | }
54 |
55 | PLIB_INLINE_API bool _PLIB_UNSUPPORTED PLIB_DMT_WindowIsOpen(DMT_MODULE_ID index)
56 | {
57 | return (bool)0;
58 | }
59 |
60 | PLIB_INLINE_API bool _PLIB_UNSUPPORTED PLIB_DMT_EventOccurred(DMT_MODULE_ID index)
61 | {
62 | return (bool)0;
63 | }
64 |
65 | PLIB_INLINE_API bool _PLIB_UNSUPPORTED PLIB_DMT_BAD2Get(DMT_MODULE_ID index)
66 | {
67 | return (bool)0;
68 | }
69 |
70 | PLIB_INLINE_API bool _PLIB_UNSUPPORTED PLIB_DMT_BAD1Get(DMT_MODULE_ID index)
71 | {
72 | return (bool)0;
73 | }
74 |
75 | PLIB_INLINE_API bool PLIB_DMT_ExistsStatus(DMT_MODULE_ID index)
76 | {
77 | return (bool)0;
78 | }
79 |
80 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_DMT_ClearStep1(DMT_MODULE_ID index)
81 | {
82 |
83 | }
84 |
85 | PLIB_INLINE_API bool PLIB_DMT_ExistsStep1(DMT_MODULE_ID index)
86 | {
87 | return (bool)0;
88 | }
89 |
90 | PLIB_INLINE_API void _PLIB_UNSUPPORTED PLIB_DMT_ClearStep2(DMT_MODULE_ID index)
91 | {
92 |
93 | }
94 |
95 | PLIB_INLINE_API bool PLIB_DMT_ExistsStep2(DMT_MODULE_ID index)
96 | {
97 | return (bool)0;
98 | }
99 |
100 | PLIB_INLINE_API uint32_t _PLIB_UNSUPPORTED PLIB_DMT_CounterGet(DMT_MODULE_ID index)
101 | {
102 | return (uint32_t)0;
103 | }
104 |
105 | PLIB_INLINE_API bool PLIB_DMT_ExistsCounter(DMT_MODULE_ID index)
106 | {
107 | return (bool)0;
108 | }
109 |
110 | PLIB_INLINE_API uint32_t _PLIB_UNSUPPORTED PLIB_DMT_PostscalerValueGet(DMT_MODULE_ID index)
111 | {
112 | return (uint32_t)0;
113 | }
114 |
115 | PLIB_INLINE_API bool PLIB_DMT_ExistsPostscalerValue(DMT_MODULE_ID index)
116 | {
117 | return (bool)0;
118 | }
119 |
120 | PLIB_INLINE_API uint32_t _PLIB_UNSUPPORTED PLIB_DMT_PostscalerIntervalGet(DMT_MODULE_ID index)
121 | {
122 | return (uint32_t)0;
123 | }
124 |
125 | PLIB_INLINE_API bool PLIB_DMT_ExistsPostscalerInterval(DMT_MODULE_ID index)
126 | {
127 | return (bool)0;
128 | }
129 |
130 | #endif
131 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/dmt/processor/dmt_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _DMT_PROCESSOR_H
27 | #define _DMT_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "dmt_p32mxxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "dmt_p32mxxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "dmt_p32mxxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "dmt_p32mxxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_DMT_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ebi/processor/ebi_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_EBI_PROCESSOR_H
27 | #define _PLIB_EBI_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "ebi_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "ebi_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "ebi_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "ebi_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_EBI_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ebi/templates/ebi_Registers.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 |
25 | //DOM-IGNORE-END
26 |
27 | #ifndef __EBI_REGISTERS_H_
28 | #define __EBI_REGISTERS_H_
29 |
30 | /* EBI Registers */
31 | typedef struct ebi_regs {
32 | __EBICS0bits_t EBICSx[4];
33 | uint32_t DONTUSE1[12];
34 | __EBIMSK0bits_t EBIMSKx[4];
35 | uint32_t DONTUSE2[12];
36 | __EBISMT0bits_t EBISMTx[3];
37 | __EBIFTRPDbits_t EBIFTRPD;
38 | __EBISMCONbits_t EBISMCON;
39 | } ebi_register_t;
40 |
41 | /* EBI Configuration Registers */
42 | typedef struct ebi_cfg_regs {
43 | __CFGEBIAbits_t CFGEBIA;
44 | uint32_t DONT_USE[3];
45 | __CFGEBICbits_t CFGEBIC;
46 | uint32_t DONT_USE1[3];
47 | } cfgebi_register_t;
48 |
49 | #endif /* __EBI_REGISTERS_H_ */
50 |
51 | /******************************************************************************
52 | End of File
53 | */
54 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/eth/processor/eth_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _ETH_PROCESSOR_H
27 | #define _ETH_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "eth_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "eth_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "eth_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "eth_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_ETH_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/glcd/processor/glcd_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _GLCD_PROCESSOR_H
27 | #define _GLCD_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 |
31 | #include "glcd_p32xxxx.h"
32 |
33 | #elif defined(__PIC32MZ__)
34 |
35 | #include "glcd_p32xxxx.h"
36 |
37 | #elif defined(__PIC32MK__)
38 |
39 | #include "glcd_p32xxxx.h"
40 |
41 | #elif defined(__PIC32WK__)
42 |
43 | #include "glcd_p32xxxx.h"
44 |
45 | #else
46 |
47 | #error "Can't find header"
48 |
49 | #endif
50 |
51 | #endif//B_USB_PROCESSOR_H
52 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/i2c/plib_i2c_helper_macros.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dhansel/TerminalUSB/697e4ee5f5607c8a226289e09104da35410087e3/firmware/src/system_config/default/framework/peripheral/i2c/plib_i2c_helper_macros.h
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/i2c/processor/i2c_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_I2C_PROCESSOR_H
27 | #define _PLIB_I2C_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "i2c_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "i2c_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "i2c_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_I2C_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/i2c/templates/i2c_MasterStart_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | I2C Peripheral Library Template Implementation
3 |
4 | File Name:
5 | i2c_MasterStart_Default.h
6 |
7 | Summary:
8 | I2C PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : MasterStart
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_I2C_MasterStart
16 | PLIB_I2C_ExistsMasterStart
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _I2C_MASTERSTART_DEFAULT_H
47 | #define _I2C_MASTERSTART_DEFAULT_H
48 |
49 | #include "i2c_Registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : I2C_MasterStart_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_I2C_MasterStart
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_I2C_MasterStart function.
59 | */
60 |
61 | PLIB_TEMPLATE void I2C_MasterStart_Default( I2C_MODULE_ID index )
62 | {
63 | volatile i2c_register_t *regs = (i2c_register_t *)index;
64 |
65 | regs->I2CxCONSET = I2CxCON_SEN_MASK;
66 | }
67 |
68 |
69 | //******************************************************************************
70 | /* Function : I2C_ExistsMasterStart_Default
71 |
72 | Summary:
73 | Implements Default variant of PLIB_I2C_ExistsMasterStart
74 |
75 | Description:
76 | This template implements the Default variant of the PLIB_I2C_ExistsMasterStart function.
77 | */
78 |
79 | #define PLIB_I2C_ExistsMasterStart PLIB_I2C_ExistsMasterStart
80 | PLIB_TEMPLATE bool I2C_ExistsMasterStart_Default( I2C_MODULE_ID index )
81 | {
82 | return true;
83 | }
84 |
85 |
86 | #endif /*_I2C_MASTERSTART_DEFAULT_H*/
87 |
88 | /******************************************************************************
89 | End of File
90 | */
91 |
92 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/i2c/templates/i2c_MasterStop_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | I2C Peripheral Library Template Implementation
3 |
4 | File Name:
5 | i2c_MasterStop_Default.h
6 |
7 | Summary:
8 | I2C PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : MasterStop
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_I2C_MasterStop
16 | PLIB_I2C_ExistsMasterStop
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _I2C_MASTERSTOP_DEFAULT_H
47 | #define _I2C_MASTERSTOP_DEFAULT_H
48 |
49 | #include "i2c_Registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : I2C_MasterStop_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_I2C_MasterStop
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_I2C_MasterStop function.
59 | */
60 |
61 | PLIB_TEMPLATE void I2C_MasterStop_Default( I2C_MODULE_ID index )
62 | {
63 | volatile i2c_register_t *regs = (i2c_register_t *)index;
64 |
65 | regs->I2CxCONSET = I2CxCON_PEN_MASK;
66 | }
67 |
68 |
69 | //******************************************************************************
70 | /* Function : I2C_ExistsMasterStop_Default
71 |
72 | Summary:
73 | Implements Default variant of PLIB_I2C_ExistsMasterStop
74 |
75 | Description:
76 | This template implements the Default variant of the PLIB_I2C_ExistsMasterStop function.
77 | */
78 |
79 | #define PLIB_I2C_ExistsMasterStop PLIB_I2C_ExistsMasterStop
80 | PLIB_TEMPLATE bool I2C_ExistsMasterStop_Default( I2C_MODULE_ID index )
81 | {
82 | return true;
83 | }
84 |
85 |
86 | #endif /*_I2C_MASTERSTOP_DEFAULT_H*/
87 |
88 | /******************************************************************************
89 | End of File
90 | */
91 |
92 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/i2c/templates/i2c_Registers.h:
--------------------------------------------------------------------------------
1 | #ifndef __TEMPLATE_I2C_REGISTERS_H__
2 | #define __TEMPLATE_I2C_REGISTERS_H__
3 |
4 | typedef struct i2c_regs {
5 | __I2C1CONbits_t I2CxCON;
6 | volatile unsigned int I2CxCONCLR;
7 | volatile unsigned int I2CxCONSET;
8 | volatile unsigned int I2CxCONINV;
9 | __I2C1STATbits_t I2CxSTAT;
10 | volatile unsigned int I2CxSTATCLR;
11 | volatile unsigned int I2CxSTATSET;
12 | volatile unsigned int I2CxSTATINV;
13 | volatile unsigned int I2CxADD;
14 | unsigned int DONTUSE1[3];
15 | volatile unsigned int I2CxMSK;
16 | unsigned int DONTUSE2[3];
17 | volatile unsigned int I2CxBRG;
18 | unsigned int DONTUSE3[3];
19 | volatile unsigned int I2CxTRN;
20 | unsigned int DONTUSE4[3];
21 | volatile unsigned int I2CxRCV;
22 | unsigned int DONTUSE5[3];
23 | } i2c_register_t;
24 |
25 | #define I2CxCON_SEN_MASK _I2C1CON_SEN_MASK /* start */
26 | #define I2CxCON_RSEN_MASK _I2C1CON_RSEN_MASK /* repeat-start*/
27 | #define I2CxCON_PEN_MASK _I2C1CON_PEN_MASK /* stop */
28 | #define I2CxCON_RCEN_MASK _I2C1CON_RCEN_MASK /* receive */
29 | #define I2CxCON_ACKEN_MASK _I2C1CON_ACKEN_MASK /* ack */
30 | #define I2CxCON_ACKDT_MASK _I2C1CON_ACKDT_MASK /* ack data */
31 | #define I2CxCON_STREN_MASK _I2C1CON_STREN_MASK /* clock stretch */
32 | #define I2CxCON_A10M_MASK _I2C1CON_A10M_MASK /* 10-bit address */
33 | #define I2CxCON_SCLREL_MASK _I2C1CON_SCLREL_MASK /* hold clock */
34 | #define I2CxCON_ON_MASK _I2C1CON_ON_MASK /* Enable */
35 | #define I2CxCON_SIDL_MASK _I2C1CON_SIDL_MASK /* idle */
36 | #define I2CxCON_STRICT_MASK _I2C1CON_STRICT_MASK /* Strict */
37 | #define I2CxCON_DISSLW_MASK _I2C1CON_DISSLW_MASK /* Slew */
38 | #define I2CxCON_SMEN_MASK _I2C1CON_SMEN_MASK /* SMBus */
39 | #define I2CxCON_GCEN_MASK _I2C1CON_GCEN_MASK /* General Call */
40 | #define I2CxCON_PCIE_MASK _I2C1CON_PCIE_MASK /* Interrupt on Stop */
41 | #define I2CxCON_SCIE_MASK _I2C1CON_SCIE_MASK /* Interrupt on Start */
42 | #define I2CxCON_BOEN_MASK _I2C1CON_BOEN_MASK /* Interrupt on Buffer Over */
43 | #define I2CxCON_SBCDE_MASK _I2C1CON_SBCDE_MASK /* Int on Bus collision */
44 | #define I2CxCON_AHEN_MASK _I2C1CON_AHEN_MASK /* Address Hold Enable */
45 | #define I2CxCON_DHEN_MASK _I2C1CON_DHEN_MASK /* Hold enable */
46 |
47 | /* Status */
48 | #define I2CxSTAT_I2COV_MASK _I2C1STAT_I2COV_MASK /* overflow */
49 | #define I2CxSTAT_IWCOL_MASK _I2C1STAT_IWCOL_MASK /* Write Collision */
50 | #define I2CxSTAT_BCL_MASK _I2C1STAT_BCL_MASK /* Bus Collision */
51 | #define I2CxSTAT_P_MASK _I2C1STAT_P_MASK /* stop */
52 | #define I2CxSTAT_S_MASK _I2C1STAT_S_MASK /* start */
53 |
54 | #endif /* __TEMPLATE_I2C_REGISTERS_H__ */
55 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ic/processor/ic_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _IC_PROCESSOR_H
27 | #define _IC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "ic_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "ic_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "ic_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "ic_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_IC_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ic/templates/ic_CaptureMode_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | IC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | ic_CaptureMode_Default.h
6 |
7 | Summary:
8 | IC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : CaptureMode
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_IC_ModeSelect
16 | PLIB_IC_ExistsCaptureMode
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _IC_CAPTUREMODE_DEFAULT_H
47 | #define _IC_CAPTUREMODE_DEFAULT_H
48 |
49 | #include "ic_Registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : IC_ModeSelect_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_IC_ModeSelect
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_IC_ModeSelect function.
59 | */
60 |
61 | PLIB_TEMPLATE void IC_ModeSelect_Default( IC_MODULE_ID index , IC_INPUT_CAPTURE_MODES modeSel )
62 | {
63 | volatile ic_register_t *regs = (ic_register_t *)index;
64 |
65 | regs->ICxCON.ICM = modeSel;
66 | }
67 |
68 |
69 | //******************************************************************************
70 | /* Function : IC_ExistsCaptureMode_Default
71 |
72 | Summary:
73 | Implements Default variant of PLIB_IC_ExistsCaptureMode
74 |
75 | Description:
76 | This template implements the Default variant of the PLIB_IC_ExistsCaptureMode function.
77 | */
78 |
79 | #define PLIB_IC_ExistsCaptureMode PLIB_IC_ExistsCaptureMode
80 | PLIB_TEMPLATE bool IC_ExistsCaptureMode_Default( IC_MODULE_ID index )
81 | {
82 | return true;
83 | }
84 |
85 |
86 | #endif /*_IC_CAPTUREMODE_DEFAULT_H*/
87 |
88 | /******************************************************************************
89 | End of File
90 | */
91 |
92 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ic/templates/ic_Registers.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __FRAMEWORK_PERIPHERAL_IC_REGISTERS__
3 | #define __FRAMEWORK_PERIPHERAL_IC_REGISTERS__
4 |
5 | typedef struct ic_regs {
6 | __IC1CONbits_t ICxCON;
7 | uint32_t ICxCONCLR;
8 | uint32_t ICxCONSET;
9 | uint32_t ICxCONINV;
10 | uint32_t ICxBUF;
11 | uint32_t DONTUSE[3];
12 | } ic_register_t;
13 |
14 | #define ICxCON_ICTMR_MASK _IC1CON_ICTMR_MASK
15 |
16 | #endif /* __FRAMEWORK_PERIPHERAL_IC_REGISTERS__ */
17 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ic/templates/ic_TimerSelect_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | IC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | ic_TimerSelect_Default.h
6 |
7 | Summary:
8 | IC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : TimerSelect
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_IC_TimerSelect
16 | PLIB_IC_ExistsTimerSelect
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _IC_TIMERSELECT_DEFAULT_H
47 | #define _IC_TIMERSELECT_DEFAULT_H
48 |
49 | #include "ic_Registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : IC_TimerSelect_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_IC_TimerSelect
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_IC_TimerSelect function.
59 | */
60 |
61 | PLIB_TEMPLATE void IC_TimerSelect_Default( IC_MODULE_ID index , IC_TIMERS tmr )
62 | {
63 | volatile ic_register_t *regs = (ic_register_t *)index;
64 |
65 | regs->ICxCON.ICTMR = tmr;
66 | }
67 |
68 | //******************************************************************************
69 | /* Function : IC_ExistsTimerSelect_Default
70 |
71 | Summary:
72 | Implements Default variant of PLIB_IC_ExistsTimerSelect
73 |
74 | Description:
75 | This template implements the Default variant of the PLIB_IC_ExistsTimerSelect function.
76 | */
77 |
78 | #define PLIB_IC_ExistsTimerSelect PLIB_IC_ExistsTimerSelect
79 | PLIB_TEMPLATE bool IC_ExistsTimerSelect_Default( IC_MODULE_ID index )
80 | {
81 | return true;
82 | }
83 |
84 |
85 | #endif /*_IC_TIMERSELECT_DEFAULT_H*/
86 |
87 | /******************************************************************************
88 | End of File
89 | */
90 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/int/plib_int_private_pic32.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Interrupt Peripheral Library Interface Header
3 |
4 | Company:
5 | Microchip Technology Inc.
6 |
7 | File Name:
8 | plib_int_private_pic32.h
9 |
10 | Summary:
11 | Defines the interrupt peripehral library interface
12 |
13 | Description:
14 | This header file contains the function prototypes and definitions of
15 | the data types and constants that make up the interface to the interrupt
16 | (INT) periheral library (PLIB) for Microchip microcontrollers. The
17 | definitions in this file are for interrupt controller module.
18 | *******************************************************************************/
19 |
20 | // DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 | // DOM-IGNORE-END
44 |
45 | #ifndef _PLIB_INT_PRIVATE_PIC32_H
46 | #define _PLIB_INT_PRIVATE_PIC32_H
47 |
48 | // *****************************************************************************
49 | // *****************************************************************************
50 | // Section: Function prototypes
51 | // *****************************************************************************
52 | // *****************************************************************************
53 |
54 | void __attribute__((nomips16)) PLIB_INT_Enable_pic32( void );
55 |
56 | void __attribute__((nomips16)) PLIB_INT_Disable_pic32( void );
57 |
58 |
59 | #endif //end of _PLIB_INT_PRIVATE_PIC32_H
60 | /*******************************************************************************
61 | End of File
62 | */
63 |
64 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/int/processor/int_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_INT_PROCESSOR_H
27 | #define _PLIB_INT_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "int_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "int_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "int_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "int_p32xxxx.h"
40 |
41 | #else
42 | #error Cant find header
43 |
44 | #endif
45 |
46 | #endif//_PLIB_INT_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/int/templates/int_INTCPUPriority_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | INT Peripheral Library Template Implementation
3 |
4 | File Name:
5 | int_INTCPUPriority_Default.h
6 |
7 | Summary:
8 | INT PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : INTCPUPriority
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_INT_ExistsINTCPUPriority
16 | PLIB_INT_PriorityGet
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _INT_INTCPUPRIORITY_DEFAULT_H
47 | #define _INT_INTCPUPRIORITY_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : INT_ExistsINTCPUPriority_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_INT_ExistsINTCPUPriority
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_INT_ExistsINTCPUPriority function.
57 | */
58 | #define PLIB_INT_ExistsINTCPUPriority PLIB_INT_ExistsINTCPUPriority
59 | PLIB_TEMPLATE bool INT_ExistsINTCPUPriority_Default( INT_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : INT_PriorityGet_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_INT_PriorityGet
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_INT_PriorityGet function.
72 | */
73 | PLIB_TEMPLATE INT_PRIORITY_LEVEL INT_PriorityGet_Default( INT_MODULE_ID index )
74 | {
75 | return (INT_PRIORITY_LEVEL) INTSTATbits.SRIPL;
76 | }
77 |
78 | #endif /*_INT_INTCPUPRIORITY_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/int/templates/int_INTCPUVector_MX.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | INT Peripheral Library Template Implementation
3 |
4 | File Name:
5 | int_INTCPUVector_MX.h
6 |
7 | Summary:
8 | INT PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : INTCPUVector
13 | and its Variant : MX
14 | For following APIs :
15 | PLIB_INT_ExistsINTCPUVector
16 | PLIB_INT_VectorGet
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2015 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _INT_INTCPUVECTOR_MX_H
47 | #define _INT_INTCPUVECTOR_MX_H
48 |
49 | //******************************************************************************
50 | /* Function : INT_ExistsINTCPUVector_MX
51 |
52 | Summary:
53 | Implements MX variant of PLIB_INT_ExistsINTCPUVector
54 |
55 | Description:
56 | This template implements the MX variant of the PLIB_INT_ExistsINTCPUVector function.
57 | */
58 | #define PLIB_INT_ExistsINTCPUVector PLIB_INT_ExistsINTCPUVector
59 | PLIB_TEMPLATE bool INT_ExistsINTCPUVector_MX( INT_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : INT_VectorGet_MX
66 |
67 | Summary:
68 | Implements MX variant of PLIB_INT_VectorGet
69 |
70 | Description:
71 | This template implements the MX variant of the PLIB_INT_VectorGet function.
72 | */
73 | PLIB_TEMPLATE INT_VECTOR INT_VectorGet_MX( INT_MODULE_ID index )
74 | {
75 | return (INT_VECTOR) INTSTATbits.VEC;
76 | }
77 |
78 | #endif /*_INT_INTCPUVECTOR_MX_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/int/templates/int_SoftwareNMI_Unsupported.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | INT Peripheral Library Template Implementation
3 |
4 | File Name:
5 | int_SoftwareNMI_Unsupported.h
6 |
7 | Summary:
8 | INT PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : SoftwareNMI
13 | and its Variant : Unsupported
14 | For following APIs :
15 | PLIB_INT_ExistsSoftwareNMI
16 | PLIB_INT_SoftwareNMITrigger
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _INT_SOFTWARENMI_UNSUPPORTED_H
47 | #define _INT_SOFTWARENMI_UNSUPPORTED_H
48 |
49 | //******************************************************************************
50 | /* Function : INT_ExistsSoftwareNMI_Unsupported
51 |
52 | Summary:
53 | Implements Unsupported variant of PLIB_INT_ExistsSoftwareNMI
54 |
55 | Description:
56 | This template implements the Unsupported variant of the PLIB_INT_ExistsSoftwareNMI function.
57 | */
58 |
59 | PLIB_TEMPLATE bool INT_ExistsSoftwareNMI_Unsupported( INT_MODULE_ID index )
60 | {
61 | return false;
62 | }
63 |
64 |
65 | //******************************************************************************
66 | /* Function : INT_SoftwareNMITrigger_Unsupported
67 |
68 | Summary:
69 | Implements Unsupported variant of PLIB_INT_SoftwareNMITrigger
70 |
71 | Description:
72 | This template implements the Unsupported variant of the PLIB_INT_SoftwareNMITrigger function.
73 | */
74 |
75 | PLIB_TEMPLATE void INT_SoftwareNMITrigger_Unsupported( INT_MODULE_ID index )
76 | {
77 | PLIB_ASSERT(false, "The device selected does not implement PLIB_INT_SoftwareNMITrigger");
78 | }
79 |
80 |
81 | #endif /*_INT_SOFTWARENMI_UNSUPPORTED_H*/
82 |
83 | /******************************************************************************
84 | End of File
85 | */
86 |
87 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/mcpwm/processor/mcpwm_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_MCPWM_PROCESSOR_H
27 | #define _PLIB_MCPWM_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "mcpwm_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "mcpwm_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "mcpwm_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "mcpwm_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_MCPWM_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/nvm/processor/nvm_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_NVM_PROCESSOR_H
27 | #define _PLIB_NVM_PROCESSOR_H
28 |
29 |
30 | #if defined(__PIC32MX__)
31 | #include "nvm_p32xxxx.h"
32 |
33 | #elif defined(__PIC32MZ__)
34 | #include "nvm_p32xxxx.h"
35 |
36 | #elif defined(__PIC32MK__)
37 | #include "nvm_p32xxxx.h"
38 |
39 | #elif defined(__PIC32WK__)
40 | #include "nvm_p32xxxx.h"
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_NVM_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/nvm/templates/nvm_KeySequence_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | NVM Peripheral Library Template Implementation
3 |
4 | File Name:
5 | nvm_KeySequence_Default.h
6 |
7 | Summary:
8 | NVM PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : KeySequence
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_NVM_ExistsKeySequence
16 | PLIB_NVM_FlashWriteKeySequence
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _NVM_KEYSEQUENCE_DEFAULT_H
47 | #define _NVM_KEYSEQUENCE_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : NVM_ExistsKeySequence_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_NVM_ExistsKeySequence
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_NVM_ExistsKeySequence function.
57 | */
58 |
59 | #define PLIB_NVM_ExistsKeySequence PLIB_NVM_ExistsKeySequence
60 | PLIB_TEMPLATE bool NVM_ExistsKeySequence_Default( NVM_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : NVM_FlashWriteKeySequence_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_NVM_FlashWriteKeySequence
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_NVM_FlashWriteKeySequence function.
74 | */
75 |
76 | PLIB_TEMPLATE void NVM_FlashWriteKeySequence_Default( NVM_MODULE_ID index , uint32_t keysequence )
77 | {
78 | NVMKEY = keysequence;
79 | //Add Assembly here
80 | }
81 |
82 |
83 | #endif /*_NVM_KEYSEQUENCE_DEFAULT_H*/
84 |
85 | /******************************************************************************
86 | End of File
87 | */
88 |
89 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/nvm/templates/nvm_LowVoltageError_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | NVM Peripheral Library Template Implementation
3 |
4 | File Name:
5 | nvm_LowVoltageError_Default.h
6 |
7 | Summary:
8 | NVM PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : LowVoltageError
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_NVM_ExistsLowVoltageError
16 | PLIB_NVM_LowVoltageIsDetected
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _NVM_LOWVOLTAGEERROR_DEFAULT_H
47 | #define _NVM_LOWVOLTAGEERROR_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : NVM_ExistsLowVoltageError_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_NVM_ExistsLowVoltageError
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_NVM_ExistsLowVoltageError function.
57 | */
58 |
59 | #define PLIB_NVM_ExistsLowVoltageError PLIB_NVM_ExistsLowVoltageError
60 | PLIB_TEMPLATE bool NVM_ExistsLowVoltageError_Default( NVM_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : NVM_LowVoltageIsDetected_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_NVM_LowVoltageIsDetected
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_NVM_LowVoltageIsDetected function.
74 | */
75 |
76 | PLIB_TEMPLATE bool NVM_LowVoltageIsDetected_Default( NVM_MODULE_ID index )
77 | {
78 | return (bool)NVMCONbits.LVDERR;
79 | }
80 |
81 |
82 | #endif /*_NVM_LOWVOLTAGEERROR_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/nvm/templates/nvm_ProvideData_MX.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | NVM Peripheral Library Template Implementation
3 |
4 | File Name:
5 | nvm_ProvideData_MX.h
6 |
7 | Summary:
8 | NVM PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : ProvideData
13 | and its Variant : MX
14 | For following APIs :
15 | PLIB_NVM_ExistsProvideData
16 | PLIB_NVM_FlashProvideData
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _NVM_PROVIDEDATA_MX_H
47 | #define _NVM_PROVIDEDATA_MX_H
48 |
49 | //******************************************************************************
50 | /* Function : NVM_ExistsProvideData_MX
51 |
52 | Summary:
53 | Implements MX variant of PLIB_NVM_ExistsProvideData
54 |
55 | Description:
56 | This template implements the MX variant of the PLIB_NVM_ExistsProvideData function.
57 | */
58 |
59 | #define PLIB_NVM_ExistsProvideData PLIB_NVM_ExistsProvideData
60 | PLIB_TEMPLATE bool NVM_ExistsProvideData_MX( NVM_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : NVM_FlashProvideData_MX
68 |
69 | Summary:
70 | Implements MX variant of PLIB_NVM_FlashProvideData
71 |
72 | Description:
73 | This template implements the MX variant of the PLIB_NVM_FlashProvideData function.
74 | */
75 |
76 | PLIB_TEMPLATE void NVM_FlashProvideData_MX( NVM_MODULE_ID index , uint32_t data )
77 | {
78 | NVMDATA = data;
79 | }
80 |
81 |
82 | #endif /*_NVM_PROVIDEDATA_MX_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/nvm/templates/nvm_SourceAddress_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | NVM Peripheral Library Template Implementation
3 |
4 | File Name:
5 | nvm_SourceAddress_Default.h
6 |
7 | Summary:
8 | NVM PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : SourceAddress
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_NVM_ExistsSourceAddress
16 | PLIB_NVM_DataBlockSourceAddress
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _NVM_SOURCEADDRESS_DEFAULT_H
47 | #define _NVM_SOURCEADDRESS_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : NVM_ExistsSourceAddress_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_NVM_ExistsSourceAddress
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_NVM_ExistsSourceAddress function.
57 | */
58 |
59 | #define PLIB_NVM_ExistsSourceAddress PLIB_NVM_ExistsSourceAddress
60 | PLIB_TEMPLATE bool NVM_ExistsSourceAddress_Default( NVM_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : NVM_DataBlockSourceAddress_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_NVM_DataBlockSourceAddress
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_NVM_DataBlockSourceAddress function.
74 | */
75 |
76 | PLIB_TEMPLATE void NVM_DataBlockSourceAddress_Default( NVM_MODULE_ID index , uint32_t address )
77 | {
78 | NVMSRCADDR = address;
79 | }
80 |
81 |
82 | #endif /*_NVM_SOURCEADDRESS_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/oc/processor/oc_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _OC_PROCESSOR_H
27 | #define _OC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "oc_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "oc_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "oc_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "oc_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_OC_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/oc/templates/oc_Registers.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _OC_REGISTERS_H_
3 | #define _OC_REGISTERS_H_
4 |
5 | typedef struct oc_regs {
6 | __OC1CONbits_t OCxCON;
7 | uint32_t OCxCONCLR;
8 | uint32_t OCxCONSET;
9 | uint32_t OCxCONINV;
10 | uint32_t OCxR;
11 | uint32_t Resvd1[3];
12 | uint32_t OCxRS;
13 | uint32_t Resvd2[3];
14 | } oc_register_t;
15 |
16 | #define OCxCON_OCM_MASK _OC1CON_OCM_MASK
17 | #define OCxCON_SIDL_MASK _OC1CON_OCSIDL_MASK
18 | #define OCxCON_OCFLT_MASK _OC1CON_OCFLT_MASK
19 | #define OCxCON_ON_MASK _OC1CON_ON_MASK
20 | #define OCxCON_OCTSEL_MASK _OC1CON_OCTSEL_MASK
21 |
22 | #endif /* _OC_REGISTERS_H_ */
23 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/oc/templates/oc_TimerSelect_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | OC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | oc_TimerSelect_Default.h
6 |
7 | Summary:
8 | OC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : TimerSelect
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_OC_TimerSelect
16 | PLIB_OC_ExistsTimerSelect
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _OC_TIMERSELECT_DEFAULT_H
47 | #define _OC_TIMERSELECT_DEFAULT_H
48 |
49 | #include "oc_Registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : OC_TimerSelect_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_OC_TimerSelect
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_OC_TimerSelect function.
59 | */
60 |
61 | PLIB_TEMPLATE void OC_TimerSelect_Default( OC_MODULE_ID index , OC_16BIT_TIMERS tmr )
62 | {
63 | volatile oc_register_t *regs = (volatile oc_register_t *)index;
64 |
65 | regs->OCxCON.OCTSEL = tmr;
66 | }
67 |
68 |
69 | //******************************************************************************
70 | /* Function : OC_ExistsTimerSelect_Default
71 |
72 | Summary:
73 | Implements Default variant of PLIB_OC_ExistsTimerSelect
74 |
75 | Description:
76 | This template implements the Default variant of the PLIB_OC_ExistsTimerSelect function.
77 | */
78 |
79 | #define PLIB_OC_ExistsTimerSelect PLIB_OC_ExistsTimerSelect
80 | PLIB_TEMPLATE bool OC_ExistsTimerSelect_Default( OC_MODULE_ID index )
81 | {
82 | return true;
83 | }
84 |
85 |
86 | #endif /*_OC_TIMERSELECT_DEFAULT_H*/
87 |
88 | /******************************************************************************
89 | End of File
90 | */
91 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/osc/processor/osc_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_OSC_PROCESSOR_H
27 | #define _PLIB_OSC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "osc_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "osc_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "osc_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "osc_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_OSC_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/osc/templates/osc_ClockFail_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | OSC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | osc_ClockFail_Default.h
6 |
7 | Summary:
8 | OSC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : ClockFail
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_OSC_ExistsClockFail
16 | PLIB_OSC_ClockHasFailed
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _OSC_CLOCKFAIL_DEFAULT_H
47 | #define _OSC_CLOCKFAIL_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : OSC_ExistsClockFail_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_OSC_ExistsClockFail
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_OSC_ExistsClockFail function.
57 | */
58 |
59 | #define PLIB_OSC_ExistsClockFail PLIB_OSC_ExistsClockFail
60 | PLIB_TEMPLATE bool OSC_ExistsClockFail_Default( OSC_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : OSC_ClockHasFailed_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_OSC_ClockHasFailed
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_OSC_ClockHasFailed function.
74 | */
75 |
76 | PLIB_TEMPLATE bool OSC_ClockHasFailed_Default( OSC_MODULE_ID index )
77 | {
78 | return (bool)OSCCONbits.CF;
79 | }
80 |
81 |
82 | #endif /*_OSC_CLOCKFAIL_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/osc/templates/osc_OscCurrentGet_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | OSC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | osc_OscCurrentGet_Default.h
6 |
7 | Summary:
8 | OSC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : OscCurrentGet
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_OSC_ExistsOscCurrentGet
16 | PLIB_OSC_CurrentSysClockGet
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _OSC_OSCCURRENTGET_DEFAULT_H
47 | #define _OSC_OSCCURRENTGET_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : OSC_ExistsOscCurrentGet_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_OSC_ExistsOscCurrentGet
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_OSC_ExistsOscCurrentGet function.
57 | */
58 |
59 | #define PLIB_OSC_ExistsOscCurrentGet PLIB_OSC_ExistsOscCurrentGet
60 | PLIB_TEMPLATE bool OSC_ExistsOscCurrentGet_Default( OSC_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : OSC_CurrentSysClockGet_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_OSC_CurrentSysClockGet
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_OSC_CurrentSysClockGet function.
74 | */
75 |
76 | PLIB_TEMPLATE OSC_SYS_TYPE OSC_CurrentSysClockGet_Default( OSC_MODULE_ID index )
77 | {
78 | return (OSC_SYS_TYPE)OSCCONbits.COSC;
79 | }
80 |
81 |
82 | #endif /*_OSC_OSCCURRENTGET_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/osc/templates/osc_PBClockReady_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | OSC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | osc_PBClockReady_Default.h
6 |
7 | Summary:
8 | OSC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : PBClockReady
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_OSC_ExistsPBClockReady
16 | PLIB_OSC_PBClockDivisorIsReady
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _OSC_PBCLOCKREADY_DEFAULT_H
47 | #define _OSC_PBCLOCKREADY_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : OSC_ExistsPBClockReady_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_OSC_ExistsPBClockReady
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_OSC_ExistsPBClockReady function.
57 | */
58 |
59 | #define PLIB_OSC_ExistsPBClockReady PLIB_OSC_ExistsPBClockReady
60 | PLIB_TEMPLATE bool OSC_ExistsPBClockReady_Default( OSC_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : OSC_PBClockDivisorIsReady_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_OSC_PBClockDivisorIsReady
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_OSC_PBClockDivisorIsReady function.
74 | */
75 |
76 | PLIB_TEMPLATE bool OSC_PBClockDivisorIsReady_Default( OSC_MODULE_ID index , OSC_PERIPHERAL_BUS peripheralBusNumber )
77 | {
78 | return (bool)OSCCONbits.PBDIVRDY;
79 | }
80 |
81 |
82 | #endif /*_OSC_PBCLOCKREADY_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/osc/templates/osc_SecondaryReady_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | OSC Peripheral Library Template Implementation
3 |
4 | File Name:
5 | osc_SecondaryReady_Default.h
6 |
7 | Summary:
8 | OSC PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : SecondaryReady
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_OSC_ExistsSecondaryReady
16 | PLIB_OSC_SecondaryIsReady
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _OSC_SECONDARYREADY_DEFAULT_H
47 | #define _OSC_SECONDARYREADY_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : OSC_ExistsSecondaryReady_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_OSC_ExistsSecondaryReady
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_OSC_ExistsSecondaryReady function.
57 | */
58 |
59 | #define PLIB_OSC_ExistsSecondaryReady PLIB_OSC_ExistsSecondaryReady
60 | PLIB_TEMPLATE bool OSC_ExistsSecondaryReady_Default( OSC_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : OSC_SecondaryIsReady_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_OSC_SecondaryIsReady
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_OSC_SecondaryIsReady function.
74 | */
75 |
76 | PLIB_TEMPLATE bool OSC_SecondaryIsReady_Default( OSC_MODULE_ID index )
77 | {
78 | return (bool)OSCCONbits.SOSCRDY;
79 | }
80 |
81 |
82 | #endif /*_OSC_SECONDARYREADY_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pcache/processor/pcache_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PCACHE_PROCESSOR_H
27 | #define _PCACHE_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "pcache_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "pcache_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "pcache_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "pcache_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PCACHE_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pcache/templates/pcache_Registers.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCACHE_REGISTERS_H_
2 | #define __PCACHE_REGISTERS_H_
3 |
4 | #if defined(__PIC32MX__)
5 | typedef struct pcache_regs {
6 | __CHECONbits_t CHECON;
7 | volatile unsigned int CHECONCLR;
8 | volatile unsigned int CHECONSET;
9 | volatile unsigned int CHECONINV;
10 | __CHEACCbits_t CHEACC;
11 | volatile unsigned int CHEACCCLR;
12 | volatile unsigned int CHEACCSET;
13 | volatile unsigned int CHEACCINV;
14 | __CHETAGbits_t CHETAG;
15 | volatile unsigned int CHETAGCLR;
16 | volatile unsigned int CHETAGSET;
17 | volatile unsigned int CHETAGINV;
18 | volatile unsigned int CHEMSK;
19 | volatile unsigned int DONTUSE1[3];
20 | volatile unsigned int CHEW0;
21 | volatile unsigned int DONTUSE2[3];
22 | volatile unsigned int CHEW1;
23 | volatile unsigned int DONTUSE3[3];
24 | volatile unsigned int CHEW2;
25 | volatile unsigned int DONTUSE4[3];
26 | volatile unsigned int CHEW3;
27 | volatile unsigned int DONTUSE5[3];
28 | volatile unsigned int CHELRU;
29 | volatile unsigned int DONTUSE6[3];
30 | volatile unsigned int CHEHIT;
31 | volatile unsigned int DONTUSE7[3];
32 | volatile unsigned int CHEMIS;
33 | volatile unsigned int DONTUSE8[3];
34 | volatile unsigned int DONTUSE9[4]; /* not used */
35 | volatile unsigned int CHEPFABT;
36 | volatile unsigned int DONTUSE10[3];
37 | } pcache_register_t;
38 | #endif
39 |
40 | #if defined(__PIC32MK__)
41 | typedef struct pcache_regs {
42 | __CHECONbits_t CHECON;
43 | volatile unsigned int CHECONCLR;
44 | volatile unsigned int CHECONSET;
45 | volatile unsigned int CHECONINV;
46 | volatile unsigned int DONTUSE1[4];
47 | volatile unsigned int CHEHIT;
48 | volatile unsigned int DONTUSE2[3];
49 | volatile unsigned int CHEMIS;
50 | } pcache_register_t;
51 | #endif
52 |
53 | #if defined(__PIC32MZ__)
54 | typedef struct pfm_regs {
55 | __PRECONbits_t PRECON;
56 | volatile unsigned int PRECONCLR;
57 | volatile unsigned int PRECONSET;
58 | volatile unsigned int PRECONINV;
59 | __PRESTATbits_t PRESTAT;
60 | volatile unsigned int PRESTATCLR;
61 | volatile unsigned int PRESTATSET;
62 | volatile unsigned int PRESTATINV;
63 | } pfm_register_t;
64 | #endif
65 |
66 | #endif /* __PCACHE_REGISTERS_H_ */
67 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/processor/pmp_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_PMP_PROCESSOR_H
27 | #define _PLIB_PMP_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "pmp_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "pmp_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "pmp_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "pmp_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_PMP_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_BufferRead_32bit.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_BufferRead_32bit.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : BufferRead
13 | and its Variant : 32bit
14 | For following APIs :
15 | PLIB_PMP_ExistsBufferRead
16 | PLIB_PMP_InputBufferXByteReceive
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_BUFFERREAD_32BIT_H
47 | #define _PMP_BUFFERREAD_32BIT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsBufferRead_32bit
51 |
52 | Summary:
53 | Implements 32bit variant of PLIB_PMP_ExistsBufferRead
54 |
55 | Description:
56 | This template implements the 32bit variant of the PLIB_PMP_ExistsBufferRead function.
57 | */
58 | #define PLIB_PMP_ExistsBufferRead PLIB_PMP_ExistsBufferRead
59 | PLIB_TEMPLATE bool PMP_ExistsBufferRead_32bit( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_InputBufferXByteReceive_32bit
66 |
67 | Summary:
68 | Implements 32bit variant of PLIB_PMP_InputBufferXByteReceive
69 |
70 | Description:
71 | This template implements the 32bit variant of the PLIB_PMP_InputBufferXByteReceive function.
72 | */
73 | PLIB_TEMPLATE uint8_t PMP_InputBufferXByteReceive_32bit( PMP_MODULE_ID index , uint8_t buffer )
74 | {
75 | return (uint8_t)((PMDIN & (0x000000FF << (8*buffer))) >> (8*buffer));
76 | }
77 |
78 | #endif /*_PMP_BUFFERREAD_32BIT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_BufferType_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_BufferType_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : BufferType
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsBufferType
16 | PLIB_PMP_InputBufferTypeSelect
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_BUFFERTYPE_DEFAULT_H
47 | #define _PMP_BUFFERTYPE_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsBufferType_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsBufferType
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsBufferType function.
57 | */
58 | #define PLIB_PMP_ExistsBufferType PLIB_PMP_ExistsBufferType
59 | PLIB_TEMPLATE bool PMP_ExistsBufferType_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_InputBufferTypeSelect_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_InputBufferTypeSelect
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_InputBufferTypeSelect function.
72 | */
73 | PLIB_TEMPLATE void PMP_InputBufferTypeSelect_Default( PMP_MODULE_ID index , PMP_INPUT_BUFFER_TYPE inputBuffer )
74 | {
75 | PMCONbits.PMPTTL = inputBuffer;
76 | }
77 |
78 | #endif /*_PMP_BUFFERTYPE_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_BusyStatus_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_BusyStatus_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : BusyStatus
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsBusyStatus
16 | PLIB_PMP_PortIsBusy
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_BUSYSTATUS_DEFAULT_H
47 | #define _PMP_BUSYSTATUS_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsBusyStatus_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsBusyStatus
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsBusyStatus function.
57 | */
58 | #define PLIB_PMP_ExistsBusyStatus PLIB_PMP_ExistsBusyStatus
59 | PLIB_TEMPLATE bool PMP_ExistsBusyStatus_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_PortIsBusy_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_PortIsBusy
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_PortIsBusy function.
72 | */
73 | PLIB_TEMPLATE bool PMP_PortIsBusy_Default( PMP_MODULE_ID index )
74 | {
75 | return (PMMODE) & (_PMMODE_BUSY_MASK);
76 | }
77 |
78 | #endif /*_PMP_BUSYSTATUS_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_InputBufferFull_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_InputBufferFull_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : InputBufferFull
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsInputBufferFull
16 | PLIB_PMP_InputBuffersAreFull
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_INPUTBUFFERFULL_DEFAULT_H
47 | #define _PMP_INPUTBUFFERFULL_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsInputBufferFull_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsInputBufferFull
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsInputBufferFull function.
57 | */
58 | #define PLIB_PMP_ExistsInputBufferFull PLIB_PMP_ExistsInputBufferFull
59 | PLIB_TEMPLATE bool PMP_ExistsInputBufferFull_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_InputBuffersAreFull_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_InputBuffersAreFull
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_InputBuffersAreFull function.
72 | */
73 | PLIB_TEMPLATE bool PMP_InputBuffersAreFull_Default( PMP_MODULE_ID index )
74 | {
75 | return (PMSTAT) & (_PMSTAT_IBF_MASK);
76 |
77 | }
78 |
79 | #endif /*_PMP_INPUTBUFFERFULL_DEFAULT_H*/
80 |
81 | /******************************************************************************
82 | End of File
83 | */
84 |
85 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_OutPutBufferEmpty_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_OutPutBufferEmpty_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : OutPutBufferEmpty
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsOutPutBufferEmpty
16 | PLIB_PMP_OutputBuffersAreEmpty
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_OUTPUTBUFFEREMPTY_DEFAULT_H
47 | #define _PMP_OUTPUTBUFFEREMPTY_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsOutPutBufferEmpty_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsOutPutBufferEmpty
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsOutPutBufferEmpty function.
57 | */
58 | #define PLIB_PMP_ExistsOutPutBufferEmpty PLIB_PMP_ExistsOutPutBufferEmpty
59 | PLIB_TEMPLATE bool PMP_ExistsOutPutBufferEmpty_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_OutputBuffersAreEmpty_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_OutputBuffersAreEmpty
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_OutputBuffersAreEmpty function.
72 | */
73 | PLIB_TEMPLATE bool PMP_OutputBuffersAreEmpty_Default( PMP_MODULE_ID index )
74 | {
75 | return (PMSTAT) & (_PMSTAT_OBE_MASK);
76 | }
77 |
78 | #endif /*_PMP_OUTPUTBUFFEREMPTY_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_SlaveRX_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_SlaveRX_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : SlaveRX
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsSlaveRX
16 | PLIB_PMP_SlaveReceive
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_SLAVERX_DEFAULT_H
47 | #define _PMP_SLAVERX_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsSlaveRX_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsSlaveRX
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsSlaveRX function.
57 | */
58 | #define PLIB_PMP_ExistsSlaveRX PLIB_PMP_ExistsSlaveRX
59 | PLIB_TEMPLATE bool PMP_ExistsSlaveRX_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_SlaveReceive_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_SlaveReceive
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_SlaveReceive function.
72 | */
73 | PLIB_TEMPLATE uint16_t PMP_SlaveReceive_Default( PMP_MODULE_ID index )
74 | {
75 | return (( uint16_t )(PMDIN));
76 | }
77 |
78 | #endif /*_PMP_SLAVERX_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_SlaveTX_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | PMP Peripheral Library Template Implementation
3 |
4 | File Name:
5 | pmp_SlaveTX_Default.h
6 |
7 | Summary:
8 | PMP PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : SlaveTX
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_PMP_ExistsSlaveTX
16 | PLIB_PMP_SlaveSend
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _PMP_SLAVETX_DEFAULT_H
47 | #define _PMP_SLAVETX_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : PMP_ExistsSlaveTX_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_PMP_ExistsSlaveTX
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_PMP_ExistsSlaveTX function.
57 | */
58 | #define PLIB_PMP_ExistsSlaveTX PLIB_PMP_ExistsSlaveTX
59 | PLIB_TEMPLATE bool PMP_ExistsSlaveTX_Default( PMP_MODULE_ID index )
60 | {
61 | return true;
62 | }
63 |
64 | //******************************************************************************
65 | /* Function : PMP_SlaveSend_Default
66 |
67 | Summary:
68 | Implements Default variant of PLIB_PMP_SlaveSend
69 |
70 | Description:
71 | This template implements the Default variant of the PLIB_PMP_SlaveSend function.
72 | */
73 | PLIB_TEMPLATE void PMP_SlaveSend_Default( PMP_MODULE_ID index , uint16_t data )
74 | {
75 | PMDOUT = data;
76 | }
77 |
78 | #endif /*_PMP_SLAVETX_DEFAULT_H*/
79 |
80 | /******************************************************************************
81 | End of File
82 | */
83 |
84 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ports/processor/ports_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_PORTS_PROCESSOR_H
27 | #define _PLIB_PORTS_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "peripheral/ports/processor/ports_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "peripheral/ports/processor/ports_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "peripheral/ports/processor/ports_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "peripheral/ports/processor/ports_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_PORTS_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/power/processor/power_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_POWER_PROCESSOR_H
27 | #define _PLIB_POWER_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "power_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "power_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "power_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "power_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_POWER_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/ptg/processor/ptg_processor.h:
--------------------------------------------------------------------------------
1 | #ifndef _PLIB_PTG_PROCESSOR_H
2 | #define _PLIB_PTG_PROCESSOR_H
3 |
4 | #if defined(__PIC32MX__)
5 | #include "ptg_p32xxxx.h"
6 |
7 | #elif defined(__PIC32MZ__)
8 | #include "ptg_p32xxxx.h"
9 |
10 | #elif defined(__PIC32MK__)
11 | #include "ptg_p32xxxx.h"
12 |
13 | #elif defined(__PIC32WK__)
14 | #include "ptg_p32xxxx.h"
15 |
16 | #else
17 | #error "Can't find header"
18 |
19 | #endif
20 |
21 | #endif//_PLIB_PTG_PROCESSOR_H
22 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/reset/processor/reset_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_RESET_PROCESSOR_H
27 | #define _PLIB_RESET_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "reset_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "reset_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "reset_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "reset_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_RESET_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/rtcc/processor/rtcc_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_RTCC_PROCESSOR_H
27 | #define _PLIB_RTCC_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "rtcc_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "rtcc_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "rtcc_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "rtcc_p32xxxx.h"
40 |
41 | #endif
42 |
43 | #endif//_PLIB_RTCC_PROCESSOR_H
44 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/rtcc/templates/rtcc_Registers.h:
--------------------------------------------------------------------------------
1 | #ifndef __TEMPLATE_RTCC_REGISTERS_H__
2 | #define __TEMPLATE_RTCC_REGISTERS_H__
3 |
4 | typedef struct rtcc_register {
5 | __RTCCONbits_t RTCCON;
6 | uint32_t RTCCONCLR;
7 | uint32_t RTCCONSET;
8 | uint32_t RTCCONINV;
9 | __RTCALRMbits_t RTCALRM;
10 | uint32_t RTCALRMCLR;
11 | uint32_t RTCALRMSET;
12 | uint32_t RTCALRMINV;
13 | __RTCTIMEbits_t RTCTIME;
14 | uint32_t RTCTIMECLR;
15 | uint32_t RTCTIMESET;
16 | uint32_t RTCTIMEINV;
17 | __RTCDATEbits_t RTCDATE;
18 | uint32_t RTCDATECLR;
19 | uint32_t RTCDATESET;
20 | uint32_t RTCDATEINV;
21 | __ALRMTIMEbits_t ALRMTIME;
22 | uint32_t ALRMTIMECLR;
23 | uint32_t ALRMTIMESET;
24 | uint32_t ALRMTIMEINV;
25 | __ALRMDATEbits_t ALRMDATE;
26 | uint32_t ALRMDATECLR;
27 | uint32_t ALRMDATESET;
28 | uint32_t ALRMDATEINV;
29 | } rtcc_register_t;
30 |
31 | #endif /* __TEMPLATE_RTCC_REGISTERS_H__ */
32 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/sb/processor/sb_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_SB_PROCESSOR_H
27 | #define _PLIB_SB_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "sb_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "sb_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "sb_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "sb_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_SB_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/spi/processor/spi_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_SPI_PROCESSOR_H
27 | #define _PLIB_SPI_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "spi_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "spi_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "spi_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "spi_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_PLIB_SPI_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/spi/templates/spi_BusStatus_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | SPI Peripheral Library Template Implementation
3 |
4 | File Name:
5 | spi_BusStatus_Default.h
6 |
7 | Summary:
8 | SPI PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : BusStatus
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_SPI_IsBusy
16 | PLIB_SPI_ExistsBusStatus
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _SPI_BUSSTATUS_DEFAULT_H
47 | #define _SPI_BUSSTATUS_DEFAULT_H
48 |
49 | #include "spi_registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : SPI_IsBusy_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_SPI_IsBusy
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_SPI_IsBusy function.
59 | */
60 |
61 | PLIB_TEMPLATE bool SPI_IsBusy_Default( SPI_MODULE_ID index )
62 | {
63 | spi_registers_t volatile * spi = ((spi_registers_t *)(index));
64 | return (bool)spi->SPIxSTAT.SPIBUSY;
65 | }
66 |
67 |
68 | //******************************************************************************
69 | /* Function : SPI_ExistsBusStatus_Default
70 |
71 | Summary:
72 | Implements Default variant of PLIB_SPI_ExistsBusStatus
73 |
74 | Description:
75 | This template implements the Default variant of the PLIB_SPI_ExistsBusStatus function.
76 | */
77 |
78 | #define PLIB_SPI_ExistsBusStatus PLIB_SPI_ExistsBusStatus
79 | PLIB_TEMPLATE bool SPI_ExistsBusStatus_Default( SPI_MODULE_ID index )
80 | {
81 | return true;
82 | }
83 |
84 |
85 | #endif /*_SPI_BUSSTATUS_DEFAULT_H*/
86 |
87 | /******************************************************************************
88 | End of File
89 | */
90 |
91 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/sqi/processor/sqi_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_SQI_PROCESSOR_H
27 | #define _PLIB_SQI_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "sqi_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "sqi_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "sqi_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "sqi_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_SQI_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/tmr/processor/tmr_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_TMR_PROCESSOR_H
27 | #define _PLIB_TMR_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "tmr_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "tmr_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "tmr_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "tmr_p32xxxx.h"
40 |
41 |
42 | #else
43 | #error "Can't find header"
44 |
45 | #endif
46 |
47 | #endif//_PLIB_TMR_PROCESSOR_H
48 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/usart/processor/usart_processor.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Processor Selector File for the USART
3 |
4 | Company:
5 | Microchip Technology Incorporated
6 |
7 | File Name:
8 | processor.h
9 |
10 | Summary:
11 | Selects the appropriate header for the part family
12 |
13 | Description:
14 | This file selects the appropriate header for the part family
15 | *******************************************************************************/
16 |
17 | // DOM-IGNORE-BEGIN
18 | /*******************************************************************************
19 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
20 |
21 | Microchip licenses to you the right to use, modify, copy and distribute
22 | Software only when embedded on a Microchip microcontroller or digital signal
23 | controller that is integrated into your product or third party product
24 | (pursuant to the sublicense terms in the accompanying license agreement).
25 |
26 | You should refer to the license agreement accompanying this Software for
27 | additional information regarding your rights and obligations.
28 |
29 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
30 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
31 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
32 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
33 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
34 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
35 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
36 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
37 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
38 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
39 | *******************************************************************************/
40 | // DOM-IGNORE-END
41 |
42 | #ifndef _USART_PROCESSOR_H // Guards against multiple inclusion
43 | #define _USART_PROCESSOR_H
44 |
45 |
46 | // *****************************************************************************
47 | // *****************************************************************************
48 | // Section: Included Files
49 | // *****************************************************************************
50 | // *****************************************************************************
51 | /* This section lists the other files that are included in this file.
52 | */
53 |
54 | #include
55 | #include
56 |
57 | #if defined(__PIC32MX__)
58 | #include "usart_p32xxxx.h"
59 |
60 | #elif defined(__PIC32MZ__)
61 | #include "usart_p32xxxx.h"
62 |
63 | #elif defined(__PIC32MK__)
64 | #include "usart_p32xxxx.h"
65 |
66 | #elif defined(__PIC32WK__)
67 | #include "usart_p32xxxx.h"
68 |
69 | #else
70 |
71 | #error "No Processor Family specified"
72 |
73 | #endif //
74 |
75 | #endif // _USART_PROCESSOR_H
76 |
77 | /*******************************************************************************
78 | End of File
79 | */
80 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/usb/plib_usb.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dhansel/TerminalUSB/697e4ee5f5607c8a226289e09104da35410087e3/firmware/src/system_config/default/framework/peripheral/usb/plib_usb.h
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/usb/processor/usb_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _USB_PROCESSOR_H
27 | #define _USB_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "usb_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "usb_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "usb_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "usb_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//B_USB_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/usb/templates/usb_ModuleBusy_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | USB Peripheral Library Template Implementation
3 |
4 | File Name:
5 | usb_ModuleBusy_Default.h
6 |
7 | Summary:
8 | USB PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : ModuleBusy
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_USB_ModuleIsBusy
16 | PLIB_USB_ExistsModuleBusy
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _USB_MODULEBUSY_DEFAULT_H
47 | #define _USB_MODULEBUSY_DEFAULT_H
48 |
49 | #include "../templates/usb_registers.h"
50 |
51 | //******************************************************************************
52 | /* Function : USB_ModuleIsBusy_Default
53 |
54 | Summary:
55 | Implements Default variant of PLIB_USB_ModuleIsBusy
56 |
57 | Description:
58 | This template implements the Default variant of the PLIB_USB_ModuleIsBusy function.
59 | */
60 |
61 | PLIB_TEMPLATE bool USB_ModuleIsBusy_Default( USB_MODULE_ID index )
62 | {
63 | volatile usb_registers_t * usb = ((usb_registers_t *)(index));
64 | return ( usb->UxPWRC.USBBUSY );
65 | }
66 |
67 | //******************************************************************************
68 | /* Function : USB_ExistsModuleBusy_Default
69 |
70 | Summary:
71 | Implements Default variant of PLIB_USB_ExistsModuleBusy
72 |
73 | Description:
74 | This template implements the Default variant of the PLIB_USB_ExistsModuleBusy function.
75 | */
76 |
77 | #define PLIB_USB_ExistsModuleBusy PLIB_USB_ExistsModuleBusy
78 | PLIB_TEMPLATE bool USB_ExistsModuleBusy_Default( USB_MODULE_ID index )
79 | {
80 | return true;
81 | }
82 |
83 |
84 | #endif /*_USB_MODULEBUSY_DEFAULT_H*/
85 |
86 | /******************************************************************************
87 | End of File
88 | */
89 |
90 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/usbhs/processor/usbhs_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _USBHS_PROCESSOR_H
27 | #define _USBHS_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "usbhs_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "usbhs_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "usbhs_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "usbhs_p32xxxx.h"
40 |
41 | #else
42 | #error "Can't find header"
43 |
44 | #endif
45 |
46 | #endif//_USBHS_PROCESSOR_H
47 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/wdt/processor/wdt_p32mx250f128b.h:
--------------------------------------------------------------------------------
1 | /* Created by plibgen $Revision: 1.31 $ */
2 |
3 | #ifndef _WDT_P32MX250F128B_H
4 | #define _WDT_P32MX250F128B_H
5 |
6 | /* Section 1 - Enumerate instances, define constants, VREGs */
7 |
8 | #include
9 | #include
10 |
11 | #include "peripheral/peripheral_common_32bit.h"
12 |
13 | /* Default definition used for all API dispatch functions */
14 | #ifndef PLIB_INLINE_API
15 | #define PLIB_INLINE_API extern inline
16 | #endif
17 |
18 | /* Default definition used for all other functions */
19 | #ifndef PLIB_INLINE
20 | #define PLIB_INLINE extern inline
21 | #endif
22 |
23 | typedef enum {
24 |
25 | WDT_ID_0 = 0,
26 | WDT_NUMBER_OF_MODULES = 1
27 |
28 | } WDT_MODULE_ID;
29 |
30 | /* Section 2 - Feature variant inclusion */
31 |
32 | #define PLIB_TEMPLATE PLIB_INLINE
33 | #include "../templates/wdt_EnableControl_Default.h"
34 | #include "../templates/wdt_WindowEnable_Default.h"
35 | #include "../templates/wdt_TimerClear_Default.h"
36 | #include "../templates/wdt_PostscalerValue_Default.h"
37 | #include "../templates/wdt_SleepModePostscalerValue_Unsupported.h"
38 |
39 | /* Section 3 - PLIB dispatch function definitions */
40 |
41 | PLIB_INLINE_API bool PLIB_WDT_ExistsEnableControl(WDT_MODULE_ID index)
42 | {
43 | return WDT_ExistsEnableControl_Default(index);
44 | }
45 |
46 | PLIB_INLINE_API void PLIB_WDT_Enable(WDT_MODULE_ID index)
47 | {
48 | WDT_Enable_Default(index);
49 | }
50 |
51 | PLIB_INLINE_API void PLIB_WDT_Disable(WDT_MODULE_ID index)
52 | {
53 | WDT_Disable_Default(index);
54 | }
55 |
56 | PLIB_INLINE_API bool PLIB_WDT_IsEnabled(WDT_MODULE_ID index)
57 | {
58 | return WDT_IsEnabled_Default(index);
59 | }
60 |
61 | PLIB_INLINE_API bool PLIB_WDT_ExistsWindowEnable(WDT_MODULE_ID index)
62 | {
63 | return WDT_ExistsWindowEnable_Default(index);
64 | }
65 |
66 | PLIB_INLINE_API void PLIB_WDT_WindowEnable(WDT_MODULE_ID index)
67 | {
68 | WDT_WindowEnable_Default(index);
69 | }
70 |
71 | PLIB_INLINE_API void PLIB_WDT_WindowDisable(WDT_MODULE_ID index)
72 | {
73 | WDT_WindowDisable_Default(index);
74 | }
75 |
76 | PLIB_INLINE_API bool PLIB_WDT_ExistsTimerClear(WDT_MODULE_ID index)
77 | {
78 | return WDT_ExistsTimerClear_Default(index);
79 | }
80 |
81 | PLIB_INLINE_API void PLIB_WDT_TimerClear(WDT_MODULE_ID index)
82 | {
83 | WDT_TimerClear_Default(index);
84 | }
85 |
86 | PLIB_INLINE_API bool PLIB_WDT_ExistsPostscalerValue(WDT_MODULE_ID index)
87 | {
88 | return WDT_ExistsPostscalerValue_Default(index);
89 | }
90 |
91 | PLIB_INLINE_API char PLIB_WDT_PostscalerValueGet(WDT_MODULE_ID index)
92 | {
93 | return WDT_PostscalerValueGet_Default(index);
94 | }
95 |
96 | PLIB_INLINE_API bool PLIB_WDT_ExistsSleepModePostscalerValue(WDT_MODULE_ID index)
97 | {
98 | return WDT_ExistsSleepModePostscalerValue_Unsupported(index);
99 | }
100 |
101 | PLIB_INLINE_API char _PLIB_UNSUPPORTED PLIB_WDT_SleepModePostscalerValueGet(WDT_MODULE_ID index)
102 | {
103 | return WDT_SleepModePostscalerValueGet_Unsupported(index);
104 | }
105 |
106 | #endif
107 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/wdt/processor/wdt_processor.h:
--------------------------------------------------------------------------------
1 | //DOM-IGNORE-BEGIN
2 | /*******************************************************************************
3 | Copyright (c) 2011-2016 released Microchip Technology Inc. All rights reserved.
4 |
5 | Microchip licenses to you the right to use, modify, copy and distribute
6 | Software only when embedded on a Microchip microcontroller or digital signal
7 | controller that is integrated into your product or third party product
8 | (pursuant to the sublicense terms in the accompanying license agreement).
9 |
10 | You should refer to the license agreement accompanying this Software for
11 | additional information regarding your rights and obligations.
12 |
13 | SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,
14 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
15 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
16 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
17 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
18 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
19 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
20 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
21 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
22 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
23 | *******************************************************************************/
24 | //DOM-IGNORE-END
25 |
26 | #ifndef _PLIB_WDT_PROCESSOR_H
27 | #define _PLIB_WDT_PROCESSOR_H
28 |
29 | #if defined(__PIC32MX__)
30 | #include "wdt_p32xxxx.h"
31 |
32 | #elif defined(__PIC32MZ__)
33 | #include "wdt_p32xxxx.h"
34 |
35 | #elif defined(__PIC32MK__)
36 | #include "wdt_p32xxxx.h"
37 |
38 | #elif defined(__PIC32WK__)
39 | #include "wdt_p32xxxx.h"
40 |
41 | #endif
42 |
43 | #endif//_PLIB_WDT_PROCESSOR_H
44 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/wdt/templates/wdt_PostscalerValue_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | WDT Peripheral Library Template Implementation
3 |
4 | File Name:
5 | wdt_PostscalerValue_Default.h
6 |
7 | Summary:
8 | WDT PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : PostscalerValue
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_WDT_ExistsPostscalerValue
16 | PLIB_WDT_PostscalerValueGet
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _WDT_POSTSCALERVALUE_DEFAULT_H
47 | #define _WDT_POSTSCALERVALUE_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : WDT_ExistsPostscalerValue_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_WDT_ExistsPostscalerValue
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_WDT_ExistsPostscalerValue function.
57 | */
58 |
59 | #define PLIB_WDT_ExistsPostscalerValue PLIB_WDT_ExistsPostscalerValue
60 | PLIB_TEMPLATE bool WDT_ExistsPostscalerValue_Default( WDT_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : WDT_PostscalerValueGet_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_WDT_PostscalerValueGet
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_WDT_PostscalerValueGet function.
74 | */
75 |
76 | PLIB_TEMPLATE char WDT_PostscalerValueGet_Default( WDT_MODULE_ID index )
77 | {
78 | return (char)WDTCONbits.SWDTPS;
79 | }
80 |
81 |
82 | #endif /*_WDT_POSTSCALERVALUE_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/peripheral/wdt/templates/wdt_TimerClear_Default.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | WDT Peripheral Library Template Implementation
3 |
4 | File Name:
5 | wdt_TimerClear_Default.h
6 |
7 | Summary:
8 | WDT PLIB Template Implementation
9 |
10 | Description:
11 | This header file contains template implementations
12 | For Feature : TimerClear
13 | and its Variant : Default
14 | For following APIs :
15 | PLIB_WDT_ExistsTimerClear
16 | PLIB_WDT_TimerClear
17 |
18 | *******************************************************************************/
19 |
20 | //DOM-IGNORE-BEGIN
21 | /*******************************************************************************
22 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
23 |
24 | Microchip licenses to you the right to use, modify, copy and distribute
25 | Software only when embedded on a Microchip microcontroller or digital signal
26 | controller that is integrated into your product or third party product
27 | (pursuant to the sublicense terms in the accompanying license agreement).
28 |
29 | You should refer to the license agreement accompanying this Software for
30 | additional information regarding your rights and obligations.
31 |
32 | SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
33 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
34 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
35 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
36 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
37 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
38 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
39 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
40 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
41 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
42 | *******************************************************************************/
43 |
44 | //DOM-IGNORE-END
45 |
46 | #ifndef _WDT_TIMERCLEAR_DEFAULT_H
47 | #define _WDT_TIMERCLEAR_DEFAULT_H
48 |
49 | //******************************************************************************
50 | /* Function : WDT_ExistsTimerClear_Default
51 |
52 | Summary:
53 | Implements Default variant of PLIB_WDT_ExistsTimerClear
54 |
55 | Description:
56 | This template implements the Default variant of the PLIB_WDT_ExistsTimerClear function.
57 | */
58 |
59 | #define PLIB_WDT_ExistsTimerClear PLIB_WDT_ExistsTimerClear
60 | PLIB_TEMPLATE bool WDT_ExistsTimerClear_Default( WDT_MODULE_ID index )
61 | {
62 | return true;
63 | }
64 |
65 |
66 | //******************************************************************************
67 | /* Function : WDT_TimerClear_Default
68 |
69 | Summary:
70 | Implements Default variant of PLIB_WDT_TimerClear
71 |
72 | Description:
73 | This template implements the Default variant of the PLIB_WDT_TimerClear function.
74 | */
75 |
76 | PLIB_TEMPLATE void WDT_TimerClear_Default( WDT_MODULE_ID index )
77 | {
78 | WDTCONSET = _WDTCON_WDTCLR_MASK;
79 | }
80 |
81 |
82 | #endif /*_WDT_TIMERCLEAR_DEFAULT_H*/
83 |
84 | /******************************************************************************
85 | End of File
86 | */
87 |
88 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/system/clk/sys_clk_mapping.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Clock System Service Interface Definition
3 |
4 | Company:
5 | Microchip Technology Inc.
6 |
7 | File Name:
8 | sys_clk_mapping.h
9 |
10 | Summary:
11 | Clock System Service interface names mapping.
12 |
13 | Description:
14 | This file contains the interface definition for the Clock System Service.
15 | It maps the system service API calls to the static driver APIs at compile time
16 | *******************************************************************************/
17 |
18 | //DOM-IGNORE-BEGIN
19 | /*******************************************************************************
20 | Copyright (c) 2014 released Microchip Technology Inc. All rights reserved.
21 |
22 | Microchip licenses to you the right to use, modify, copy and distribute
23 | Software only when embedded on a Microchip microcontroller or digital signal
24 | controller that is integrated into your product or third party product
25 | (pursuant to the sublicense terms in the accompanying license agreement).
26 |
27 | You should refer to the license agreement accompanying this Software for
28 | additional information regarding your rights and obligations.
29 |
30 | SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
31 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
32 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
33 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
34 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
35 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
36 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
37 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
38 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
39 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
40 | *******************************************************************************/
41 | //DOM-IGNORE-END
42 |
43 | #ifndef _SYS_CLK_MAPPING_H
44 | #define _SYS_CLK_MAPPING_H
45 |
46 |
47 | // *****************************************************************************
48 | // *****************************************************************************
49 | // Section: Included Files
50 | // *****************************************************************************
51 | // *****************************************************************************
52 |
53 | #include "framework/system/clk/sys_clk_static.h"
54 |
55 | // DOM-IGNORE-BEGIN
56 | #ifdef __cplusplus // Provide C++ Compatibility
57 |
58 | extern "C" {
59 |
60 | #endif
61 | // DOM-IGNORE-END
62 |
63 |
64 |
65 |
66 | //DOM-IGNORE-BEGIN
67 | #ifdef __cplusplus
68 | }
69 | #endif
70 | //DOM-IGNORE-END
71 |
72 | #endif //_SYS_CLK_MAPPING_H
73 |
74 | /*******************************************************************************
75 | End of File
76 | */
77 |
78 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/system/int/src/sys_int_private.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Interrupt System Service Interface Definition
3 |
4 | Company:
5 | Microchip Technology Inc.
6 |
7 | File Name:
8 | sys_int_private.h
9 |
10 | Summary:
11 | Interrupt System Service.
12 |
13 | Description:
14 | This file contains the interface definition for the Interrupt System
15 | Service. It provides a way to interact with the interrupt sub-system to
16 | manage the occurance of interrupts for sources supported by the system.
17 | *******************************************************************************/
18 |
19 | //DOM-IGNORE-BEGIN
20 | /*******************************************************************************
21 | Copyright (c) 2013 released Microchip Technology Inc. All rights reserved.
22 |
23 | Microchip licenses to you the right to use, modify, copy and distribute
24 | Software only when embedded on a Microchip microcontroller or digital signal
25 | controller that is integrated into your product or third party product
26 | (pursuant to the sublicense terms in the accompanying license agreement).
27 |
28 | You should refer to the license agreement accompanying this Software for
29 | additional information regarding your rights and obligations.
30 |
31 | SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
32 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
33 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
34 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
35 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
36 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
37 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
38 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
39 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
40 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
41 | *******************************************************************************/
42 | //DOM-IGNORE-END
43 |
44 | #ifndef _SYS_INT_PRIVATE_H
45 | #define _SYS_INT_PRIVATE_H
46 |
47 |
48 | // *****************************************************************************
49 | // *****************************************************************************
50 | // Section: Includes
51 | // *****************************************************************************
52 | // *****************************************************************************
53 |
54 | #ifdef __PIC32MX__
55 |
56 | #include "peripheral/int/plib_int_private_pic32.h"
57 |
58 | #endif
59 |
60 |
61 | // *****************************************************************************
62 | // *****************************************************************************
63 | // Section: Extern Declarations
64 | // *****************************************************************************
65 | // *****************************************************************************
66 |
67 | extern SYS_INT_TASKS_POINTER _SYS_INT_isr[INT_IRQ_MAX];
68 |
69 | extern SYS_MODULE_OBJ _SYS_INT_taskparam_source[INT_IRQ_MAX];
70 |
71 |
72 |
73 | #endif // _SYS_INT_PRIVATE_H
74 |
75 |
--------------------------------------------------------------------------------
/firmware/src/system_config/default/framework/usb/src/usb_host_hub_mapping.h:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | USB Host Hub Driver interface names mapping
3 |
4 | Company:
5 | Microchip Technology Inc.
6 |
7 | File Name:
8 | usb_hub_mapping.h
9 |
10 | Summary:
11 | USB Device Layer Interface names mapping
12 |
13 | Description:
14 | This file contain mapppings required for the hub driver.
15 | *******************************************************************************/
16 |
17 | //DOM-IGNORE-BEGIN
18 | /*******************************************************************************
19 | Copyright (c) 2012 released Microchip Technology Inc. All rights reserved.
20 |
21 | Microchip licenses to you the right to use, modify, copy and distribute
22 | Software only when embedded on a Microchip microcontroller or digital signal
23 | controller that is integrated into your product or third party product
24 | (pursuant to the sublicense terms in the accompanying license agreement).
25 |
26 | You should refer to the license agreement accompanying this Software for
27 | additional information regarding your rights and obligations.
28 |
29 | SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
30 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
31 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
32 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
33 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
34 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
35 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
36 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
37 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
38 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
39 | *******************************************************************************/
40 | //DOM-IGNORE-END
41 |
42 | #ifndef _USB_HOST_HUB_MAPPING_H
43 | #define _USB_HOST_HUB_MAPPING_H
44 |
45 | #include "system_config.h"
46 |
47 | #if (USB_HOST_HUB_SUPPORT == true)
48 | #include "usb/usb_host_hub_interface.h"
49 | extern USB_HUB_INTERFACE externalHubInterface;
50 | #define USB_HOST_HUB_INTERFACE &externalHubInterface;
51 | #else
52 | #define USB_HOST_HUB_INTERFACE (NULL)
53 | #endif
54 |
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/firmware/src/vt100.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************************
2 | vt100.h
3 |
4 | Header file for the vt100 decoder for the VT100 Terminal program
5 |
6 |
7 | Copyright (C) 2014 Geoff Graham (projects@geoffg.net)
8 | All rights reserved.
9 |
10 | This file and the program created from it are FREE FOR COMMERCIAL AND
11 | NON-COMMERCIAL USE as long as the following conditions are aheared to.
12 |
13 | Copyright remains Geoff Graham's, and as such any Copyright notices in the
14 | code are not to be removed. If this code is used in a product, Geoff Graham
15 | should be given attribution as the author of the parts used. This can be in
16 | the form of a textual message at program startup or in documentation (online
17 | or textual) provided with the program or product.
18 |
19 | Redistribution and use in source and binary forms, with or without modification,
20 | are permitted provided that the following conditions are met:
21 | 1. Redistributions of source code must retain the copyright notice, this list
22 | of conditions and the following disclaimer.
23 | 2. Redistributions in binary form must reproduce the above copyright notice, this
24 | list of conditions and the following disclaimer in the documentation and/or
25 | other materials provided with the distribution.
26 | 3. All advertising materials mentioning features or use of this software must
27 | display the following acknowledgement:
28 | This product includes software developed by Geoff Graham (projects@geoffg.net)
29 |
30 | THIS SOFTWARE IS PROVIDED BY GEOFF GRAHAM ``AS IS'' AND ANY EXPRESS OR IMPLIED
31 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
32 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
33 | SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
36 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
38 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 | SUCH DAMAGE.
40 |
41 | The licence and distribution terms for any publically available version or
42 | derivative of this code cannot be changed. i.e. this code cannot simply be copied
43 | and put under another distribution licence (including the GNU Public Licence).
44 | ****************************************************************************************/
45 |
46 |
47 |
48 | void initVT100(void);
49 | void VT100Putc(char c);
50 | void VideoPrintString(char *p);
51 | void cmd_Reset(void);
52 | void cmd_ClearEOL(void);
53 | void cmd_ClearEOS(void);
54 | void CursorPosition(int x, int y);
55 |
56 | extern int AttribUL, AttribRV, AttribInvis; // attributes that can be turned on/off
57 |
58 | #define VT100 1
59 | #define VT52 2
60 | #define BOTH 3
61 | extern int mode; // current mode. can be VT100 or VT52
62 |
63 |
--------------------------------------------------------------------------------