├── .gitignore ├── Doc ├── 01.例程功能说明.txt └── 02.例程修改记录.txt ├── Libraries ├── CMSIS │ ├── Device │ │ └── ST │ │ │ └── STM32H7xx │ │ │ ├── Include │ │ │ ├── stm32h743xx.h │ │ │ ├── stm32h750xx.h │ │ │ ├── stm32h753xx.h │ │ │ ├── stm32h7xx.h │ │ │ └── system_stm32h7xx.h │ │ │ ├── Release_Notes.html │ │ │ └── Source │ │ │ └── Templates │ │ │ ├── arm │ │ │ ├── startup_stm32h743xx.s │ │ │ ├── startup_stm32h750xx.s │ │ │ └── startup_stm32h753xx.s │ │ │ ├── gcc │ │ │ ├── startup_stm32h743xx.s │ │ │ ├── startup_stm32h750xx.s │ │ │ └── startup_stm32h753xx.s │ │ │ ├── iar │ │ │ ├── linker │ │ │ │ ├── stm32h743xx_dtcmram.icf │ │ │ │ ├── stm32h743xx_flash.icf │ │ │ │ ├── stm32h743xx_flash_rw_sram1.icf │ │ │ │ ├── stm32h743xx_flash_rw_sram2.icf │ │ │ │ ├── stm32h743xx_sram1.icf │ │ │ │ ├── stm32h750xx_dtcmram.icf │ │ │ │ ├── stm32h750xx_flash.icf │ │ │ │ ├── stm32h750xx_flash_rw_sram1.icf │ │ │ │ ├── stm32h750xx_flash_rw_sram2.icf │ │ │ │ ├── stm32h750xx_sram1.icf │ │ │ │ ├── stm32h753xx_dtcmram.icf │ │ │ │ ├── stm32h753xx_flash.icf │ │ │ │ ├── stm32h753xx_flash_rw_sram1.icf │ │ │ │ ├── stm32h753xx_flash_rw_sram2.icf │ │ │ │ └── stm32h753xx_sram1.icf │ │ │ ├── startup_stm32h743xx.s │ │ │ ├── startup_stm32h750xx.s │ │ │ └── startup_stm32h753xx.s │ │ │ └── system_stm32h7xx.c │ └── Include │ │ ├── arm_common_tables.h │ │ ├── arm_const_structs.h │ │ ├── arm_math.h │ │ ├── cmsis_armcc.h │ │ ├── cmsis_armclang.h │ │ ├── cmsis_compiler.h │ │ ├── cmsis_gcc.h │ │ ├── cmsis_iccarm.h │ │ ├── cmsis_version.h │ │ ├── core_armv8mbl.h │ │ ├── core_armv8mml.h │ │ ├── core_cm0.h │ │ ├── core_cm0plus.h │ │ ├── core_cm1.h │ │ ├── core_cm23.h │ │ ├── core_cm3.h │ │ ├── core_cm33.h │ │ ├── core_cm4.h │ │ ├── core_cm7.h │ │ ├── core_sc000.h │ │ ├── core_sc300.h │ │ ├── mpu_armv7.h │ │ ├── mpu_armv8.h │ │ └── tz_context.h ├── STM32H7xx_HAL_Driver │ ├── Inc │ │ ├── Legacy │ │ │ └── stm32_hal_legacy.h │ │ ├── stm32h7xx_hal.h │ │ ├── stm32h7xx_hal_adc.h │ │ ├── stm32h7xx_hal_adc_ex.h │ │ ├── stm32h7xx_hal_cec.h │ │ ├── stm32h7xx_hal_comp.h │ │ ├── stm32h7xx_hal_conf_template.h │ │ ├── stm32h7xx_hal_cortex.h │ │ ├── stm32h7xx_hal_crc.h │ │ ├── stm32h7xx_hal_crc_ex.h │ │ ├── stm32h7xx_hal_cryp.h │ │ ├── stm32h7xx_hal_cryp_ex.h │ │ ├── stm32h7xx_hal_dac.h │ │ ├── stm32h7xx_hal_dac_ex.h │ │ ├── stm32h7xx_hal_dcmi.h │ │ ├── stm32h7xx_hal_def.h │ │ ├── stm32h7xx_hal_dfsdm.h │ │ ├── stm32h7xx_hal_dma.h │ │ ├── stm32h7xx_hal_dma2d.h │ │ ├── stm32h7xx_hal_dma_ex.h │ │ ├── stm32h7xx_hal_eth.h │ │ ├── stm32h7xx_hal_eth_ex.h │ │ ├── stm32h7xx_hal_fdcan.h │ │ ├── stm32h7xx_hal_flash.h │ │ ├── stm32h7xx_hal_flash_ex.h │ │ ├── stm32h7xx_hal_gpio.h │ │ ├── stm32h7xx_hal_gpio_ex.h │ │ ├── stm32h7xx_hal_hash.h │ │ ├── stm32h7xx_hal_hash_ex.h │ │ ├── stm32h7xx_hal_hcd.h │ │ ├── stm32h7xx_hal_hrtim.h │ │ ├── stm32h7xx_hal_hsem.h │ │ ├── stm32h7xx_hal_i2c.h │ │ ├── stm32h7xx_hal_i2c_ex.h │ │ ├── stm32h7xx_hal_i2s.h │ │ ├── stm32h7xx_hal_i2s_ex.h │ │ ├── stm32h7xx_hal_irda.h │ │ ├── stm32h7xx_hal_irda_ex.h │ │ ├── stm32h7xx_hal_iwdg.h │ │ ├── stm32h7xx_hal_jpeg.h │ │ ├── stm32h7xx_hal_lptim.h │ │ ├── stm32h7xx_hal_ltdc.h │ │ ├── stm32h7xx_hal_mdios.h │ │ ├── stm32h7xx_hal_mdma.h │ │ ├── stm32h7xx_hal_mmc.h │ │ ├── stm32h7xx_hal_mmc_ex.h │ │ ├── stm32h7xx_hal_nand.h │ │ ├── stm32h7xx_hal_nor.h │ │ ├── stm32h7xx_hal_opamp.h │ │ ├── stm32h7xx_hal_opamp_ex.h │ │ ├── stm32h7xx_hal_pcd.h │ │ ├── stm32h7xx_hal_pcd_ex.h │ │ ├── stm32h7xx_hal_pwr.h │ │ ├── stm32h7xx_hal_pwr_ex.h │ │ ├── stm32h7xx_hal_qspi.h │ │ ├── stm32h7xx_hal_rcc.h │ │ ├── stm32h7xx_hal_rcc_ex.h │ │ ├── stm32h7xx_hal_rng.h │ │ ├── stm32h7xx_hal_rtc.h │ │ ├── stm32h7xx_hal_rtc_ex.h │ │ ├── stm32h7xx_hal_sai.h │ │ ├── stm32h7xx_hal_sai_ex.h │ │ ├── stm32h7xx_hal_sd.h │ │ ├── stm32h7xx_hal_sd_ex.h │ │ ├── stm32h7xx_hal_sdram.h │ │ ├── stm32h7xx_hal_smartcard.h │ │ ├── stm32h7xx_hal_smartcard_ex.h │ │ ├── stm32h7xx_hal_smbus.h │ │ ├── stm32h7xx_hal_spdifrx.h │ │ ├── stm32h7xx_hal_spi.h │ │ ├── stm32h7xx_hal_spi_ex.h │ │ ├── stm32h7xx_hal_sram.h │ │ ├── stm32h7xx_hal_swpmi.h │ │ ├── stm32h7xx_hal_tim.h │ │ ├── stm32h7xx_hal_tim_ex.h │ │ ├── stm32h7xx_hal_uart.h │ │ ├── stm32h7xx_hal_uart_ex.h │ │ ├── stm32h7xx_hal_usart.h │ │ ├── stm32h7xx_hal_usart_ex.h │ │ ├── stm32h7xx_hal_wwdg.h │ │ ├── stm32h7xx_ll_delayblock.h │ │ ├── stm32h7xx_ll_fmc.h │ │ ├── stm32h7xx_ll_sdmmc.h │ │ └── stm32h7xx_ll_usb.h │ ├── Release_Notes.html │ └── Src │ │ ├── stm32h7xx_hal.c │ │ ├── stm32h7xx_hal_adc.c │ │ ├── stm32h7xx_hal_adc_ex.c │ │ ├── stm32h7xx_hal_cec.c │ │ ├── stm32h7xx_hal_comp.c │ │ ├── stm32h7xx_hal_cortex.c │ │ ├── stm32h7xx_hal_crc.c │ │ ├── stm32h7xx_hal_crc_ex.c │ │ ├── stm32h7xx_hal_cryp.c │ │ ├── stm32h7xx_hal_cryp_ex.c │ │ ├── stm32h7xx_hal_dac.c │ │ ├── stm32h7xx_hal_dac_ex.c │ │ ├── stm32h7xx_hal_dcmi.c │ │ ├── stm32h7xx_hal_dfsdm.c │ │ ├── stm32h7xx_hal_dma.c │ │ ├── stm32h7xx_hal_dma2d.c │ │ ├── stm32h7xx_hal_dma_ex.c │ │ ├── stm32h7xx_hal_eth.c │ │ ├── stm32h7xx_hal_eth_ex.c │ │ ├── stm32h7xx_hal_fdcan.c │ │ ├── stm32h7xx_hal_flash.c │ │ ├── stm32h7xx_hal_flash_ex.c │ │ ├── stm32h7xx_hal_gpio.c │ │ ├── stm32h7xx_hal_hash.c │ │ ├── stm32h7xx_hal_hash_ex.c │ │ ├── stm32h7xx_hal_hcd.c │ │ ├── stm32h7xx_hal_hrtim.c │ │ ├── stm32h7xx_hal_hsem.c │ │ ├── stm32h7xx_hal_i2c.c │ │ ├── stm32h7xx_hal_i2c_ex.c │ │ ├── stm32h7xx_hal_i2s.c │ │ ├── stm32h7xx_hal_i2s_ex.c │ │ ├── stm32h7xx_hal_irda.c │ │ ├── stm32h7xx_hal_iwdg.c │ │ ├── stm32h7xx_hal_jpeg.c │ │ ├── stm32h7xx_hal_lptim.c │ │ ├── stm32h7xx_hal_ltdc.c │ │ ├── stm32h7xx_hal_mdios.c │ │ ├── stm32h7xx_hal_mdma.c │ │ ├── stm32h7xx_hal_mmc.c │ │ ├── stm32h7xx_hal_mmc_ex.c │ │ ├── stm32h7xx_hal_nand.c │ │ ├── stm32h7xx_hal_nor.c │ │ ├── stm32h7xx_hal_opamp.c │ │ ├── stm32h7xx_hal_opamp_ex.c │ │ ├── stm32h7xx_hal_pcd.c │ │ ├── stm32h7xx_hal_pcd_ex.c │ │ ├── stm32h7xx_hal_pwr.c │ │ ├── stm32h7xx_hal_pwr_ex.c │ │ ├── stm32h7xx_hal_qspi.c │ │ ├── stm32h7xx_hal_rcc.c │ │ ├── stm32h7xx_hal_rcc_ex.c │ │ ├── stm32h7xx_hal_rng.c │ │ ├── stm32h7xx_hal_rtc.c │ │ ├── stm32h7xx_hal_rtc_ex.c │ │ ├── stm32h7xx_hal_sai.c │ │ ├── stm32h7xx_hal_sai_ex.c │ │ ├── stm32h7xx_hal_sd.c │ │ ├── stm32h7xx_hal_sd_ex.c │ │ ├── stm32h7xx_hal_sdram.c │ │ ├── stm32h7xx_hal_smartcard.c │ │ ├── stm32h7xx_hal_smartcard_ex.c │ │ ├── stm32h7xx_hal_smbus.c │ │ ├── stm32h7xx_hal_spdifrx.c │ │ ├── stm32h7xx_hal_spi.c │ │ ├── stm32h7xx_hal_spi_ex.c │ │ ├── stm32h7xx_hal_sram.c │ │ ├── stm32h7xx_hal_swpmi.c │ │ ├── stm32h7xx_hal_tim.c │ │ ├── stm32h7xx_hal_tim_ex.c │ │ ├── stm32h7xx_hal_uart.c │ │ ├── stm32h7xx_hal_uart_ex.c │ │ ├── stm32h7xx_hal_usart.c │ │ ├── stm32h7xx_hal_wwdg.c │ │ ├── stm32h7xx_ll_delayblock.c │ │ ├── stm32h7xx_ll_fmc.c │ │ ├── stm32h7xx_ll_sdmmc.c │ │ └── stm32h7xx_ll_usb.c ├── STM32_Audio │ └── Addons │ │ └── PDM │ │ ├── Inc │ │ └── pdm2pcm_glo.h │ │ ├── Lib │ │ ├── libPDMFilter_CM3_GCC.a │ │ ├── libPDMFilter_CM3_IAR.a │ │ ├── libPDMFilter_CM3_Keil.lib │ │ ├── libPDMFilter_CM4_GCC.a │ │ ├── libPDMFilter_CM4_IAR.a │ │ ├── libPDMFilter_CM4_Keil.lib │ │ ├── libPDMFilter_CM7_GCC.a │ │ ├── libPDMFilter_CM7_IAR.a │ │ └── libPDMFilter_CM7_Keil.lib │ │ ├── Release_Notes.html │ │ └── _htmresc │ │ ├── logo.bmp │ │ └── st_logo.png ├── STM32_USB_Device_Library │ ├── Class │ │ ├── AUDIO │ │ │ ├── Inc │ │ │ │ ├── usbd_audio.h │ │ │ │ └── usbd_audio_if_template.h │ │ │ └── Src │ │ │ │ ├── usbd_audio.c │ │ │ │ └── usbd_audio_if_template.c │ │ ├── CDC │ │ │ ├── Inc │ │ │ │ ├── usbd_cdc.h │ │ │ │ └── usbd_cdc_if_template.h │ │ │ └── Src │ │ │ │ ├── usbd_cdc.c │ │ │ │ └── usbd_cdc_if_template.c │ │ ├── CustomHID │ │ │ ├── Inc │ │ │ │ ├── usbd_customhid.h │ │ │ │ └── usbd_customhid_if_template.h │ │ │ └── Src │ │ │ │ ├── usbd_customhid.c │ │ │ │ └── usbd_customhid_if_template.c │ │ ├── DFU │ │ │ ├── Inc │ │ │ │ ├── usbd_dfu.h │ │ │ │ └── usbd_dfu_media_template.h │ │ │ └── Src │ │ │ │ ├── usbd_dfu.c │ │ │ │ └── usbd_dfu_media_template.c │ │ ├── HID │ │ │ ├── Inc │ │ │ │ └── usbd_hid.h │ │ │ └── Src │ │ │ │ └── usbd_hid.c │ │ ├── MSC │ │ │ ├── Inc │ │ │ │ ├── usbd_msc.h │ │ │ │ ├── usbd_msc_bot.h │ │ │ │ ├── usbd_msc_data.h │ │ │ │ ├── usbd_msc_scsi.h │ │ │ │ └── usbd_msc_storage_template.h │ │ │ └── Src │ │ │ │ ├── usbd_msc.c │ │ │ │ ├── usbd_msc_bot.c │ │ │ │ ├── usbd_msc_data.c │ │ │ │ ├── usbd_msc_scsi.c │ │ │ │ └── usbd_msc_storage_template.c │ │ └── Template │ │ │ ├── Inc │ │ │ └── usbd_template.h │ │ │ └── Src │ │ │ └── usbd_template.c │ ├── Core │ │ ├── Inc │ │ │ ├── usbd_conf_template.h │ │ │ ├── usbd_core.h │ │ │ ├── usbd_ctlreq.h │ │ │ ├── usbd_def.h │ │ │ └── usbd_ioreq.h │ │ └── Src │ │ │ ├── usbd_conf_template.c │ │ │ ├── usbd_core.c │ │ │ ├── usbd_ctlreq.c │ │ │ └── usbd_ioreq.c │ └── Release_Notes.html ├── STM32_USB_Host_Library │ ├── Class │ │ ├── AUDIO │ │ │ ├── Inc │ │ │ │ └── usbh_audio.h │ │ │ └── Src │ │ │ │ └── usbh_audio.c │ │ ├── CDC │ │ │ ├── Inc │ │ │ │ └── usbh_cdc.h │ │ │ └── Src │ │ │ │ └── usbh_cdc.c │ │ ├── HID │ │ │ ├── Inc │ │ │ │ ├── usbh_hid.h │ │ │ │ ├── usbh_hid_keybd.h │ │ │ │ ├── usbh_hid_mouse.h │ │ │ │ ├── usbh_hid_parser.h │ │ │ │ └── usbh_hid_usage.h │ │ │ └── Src │ │ │ │ ├── usbh_hid.c │ │ │ │ ├── usbh_hid_keybd.c │ │ │ │ ├── usbh_hid_mouse.c │ │ │ │ └── usbh_hid_parser.c │ │ ├── MSC │ │ │ ├── Inc │ │ │ │ ├── usbh_msc.h │ │ │ │ ├── usbh_msc_bot.h │ │ │ │ └── usbh_msc_scsi.h │ │ │ └── Src │ │ │ │ ├── usbh_msc.c │ │ │ │ ├── usbh_msc_bot.c │ │ │ │ └── usbh_msc_scsi.c │ │ ├── MTP │ │ │ ├── Inc │ │ │ │ ├── usbh_mtp.h │ │ │ │ └── usbh_mtp_ptp.h │ │ │ └── Src │ │ │ │ ├── usbh_mtp.c │ │ │ │ └── usbh_mtp_ptp.c │ │ └── Template │ │ │ ├── Inc │ │ │ └── usbh_template.h │ │ │ └── Src │ │ │ └── usbh_template.c │ ├── Core │ │ ├── Inc │ │ │ ├── usbh_conf_template.h │ │ │ ├── usbh_core.h │ │ │ ├── usbh_ctlreq.h │ │ │ ├── usbh_def.h │ │ │ ├── usbh_ioreq.h │ │ │ └── usbh_pipes.h │ │ └── Src │ │ │ ├── usbh_conf_template.c │ │ │ ├── usbh_core.c │ │ │ ├── usbh_ctlreq.c │ │ │ ├── usbh_ioreq.c │ │ │ └── usbh_pipes.c │ └── Release_Notes.html └── 说明.txt ├── Project ├── MDK-ARM(uV5) │ ├── CopyHex_Flash.bat │ ├── EventRecorderStub.scvd │ ├── JLinkSettings.ini │ ├── RTE │ │ ├── Compiler │ │ │ └── EventRecorderConf.h │ │ └── _Flash │ │ │ └── RTE_Components.h │ ├── project.uvoptx │ ├── project.uvprojx │ └── stm32-v7.sct ├── output(iar).hex ├── output(mdk).hex └── 说明.txt ├── README.md ├── User ├── FreeRTOS │ ├── croutine.c │ ├── event_groups.c │ ├── include │ │ ├── FreeRTOS.h │ │ ├── FreeRTOSConfig.h │ │ ├── StackMacros.h │ │ ├── croutine.h │ │ ├── deprecated_definitions.h │ │ ├── event_groups.h │ │ ├── list.h │ │ ├── message_buffer.h │ │ ├── mpu_prototypes.h │ │ ├── mpu_wrappers.h │ │ ├── portable.h │ │ ├── projdefs.h │ │ ├── queue.h │ │ ├── semphr.h │ │ ├── stack_macros.h │ │ ├── stdint.readme │ │ ├── stream_buffer.h │ │ ├── task.h │ │ └── timers.h │ ├── list.c │ ├── portable │ │ ├── MemMang │ │ │ ├── ReadMe.url │ │ │ ├── heap_1.c │ │ │ ├── heap_2.c │ │ │ ├── heap_3.c │ │ │ ├── heap_4.c │ │ │ └── heap_5.c │ │ └── RVDS │ │ │ ├── ARM7_LPC21xx │ │ │ ├── port.c │ │ │ ├── portASM.s │ │ │ ├── portmacro.h │ │ │ └── portmacro.inc │ │ │ ├── ARM_CA9 │ │ │ ├── port.c │ │ │ ├── portASM.s │ │ │ ├── portmacro.h │ │ │ └── portmacro.inc │ │ │ ├── ARM_CM0 │ │ │ ├── port.c │ │ │ └── portmacro.h │ │ │ ├── ARM_CM3 │ │ │ ├── port.c │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4F │ │ │ ├── port.c │ │ │ └── portmacro.h │ │ │ ├── ARM_CM4_MPU │ │ │ ├── port.c │ │ │ └── portmacro.h │ │ │ └── ARM_CM7 │ │ │ ├── ReadMe.txt │ │ │ └── r0p1 │ │ │ ├── port.c │ │ │ └── portmacro.h │ ├── queue.c │ ├── readme.txt │ ├── stream_buffer.c │ ├── tasks.c │ └── timers.c ├── bsp │ ├── bsp.c │ ├── bsp.h │ ├── bsp_msg.c │ ├── bsp_msg.h │ ├── inc │ │ ├── bsp_beep.h │ │ ├── bsp_camera.h │ │ ├── bsp_can.h │ │ ├── bsp_cpu_adc.h │ │ ├── bsp_cpu_dac.h │ │ ├── bsp_cpu_flash.h │ │ ├── bsp_cpu_rtc.h │ │ ├── bsp_dht11.h │ │ ├── bsp_ds18b20.h │ │ ├── bsp_dwt.h │ │ ├── bsp_eth.h │ │ ├── bsp_fmc_ad7606.h │ │ ├── bsp_fmc_io.h │ │ ├── bsp_fmc_nand_flash.h │ │ ├── bsp_fmc_oled.h │ │ ├── bsp_fmc_sdram.h │ │ ├── bsp_i2c_bh1750.h │ │ ├── bsp_i2c_bmp085.h │ │ ├── bsp_i2c_eeprom_24xx.h │ │ ├── bsp_i2c_gpio.h │ │ ├── bsp_i2c_hmc5883l.h │ │ ├── bsp_i2c_mpu6050.h │ │ ├── bsp_i2c_si4730.h │ │ ├── bsp_i2c_wm8978.h │ │ ├── bsp_ir_decode.h │ │ ├── bsp_key.h │ │ ├── bsp_led.h │ │ ├── bsp_mg323.h │ │ ├── bsp_ps2.h │ │ ├── bsp_qspi_w25q256.h │ │ ├── bsp_rs485_led.h │ │ ├── bsp_sdio_sd.h │ │ ├── bsp_spi_ad9833.h │ │ ├── bsp_spi_ads1256.h │ │ ├── bsp_spi_bus.h │ │ ├── bsp_spi_dac8501.h │ │ ├── bsp_spi_dac8562.h │ │ ├── bsp_spi_flash.h │ │ ├── bsp_spi_tm7705.h │ │ ├── bsp_spi_vs1053b.h │ │ ├── bsp_tft_429.h │ │ ├── bsp_tft_h7.h │ │ ├── bsp_tft_lcd.h │ │ ├── bsp_tim_pwm.h │ │ ├── bsp_timer.h │ │ ├── bsp_ts_ft5x06.h │ │ ├── bsp_ts_gt811.h │ │ ├── bsp_ts_gt911.h │ │ ├── bsp_ts_stmpe811.h │ │ ├── bsp_ts_touch.h │ │ ├── bsp_uart_esp8266.h │ │ ├── bsp_uart_fifo.h │ │ ├── bsp_uart_gps.h │ │ ├── bsp_uart_sim800.h │ │ ├── bsp_user_lib.h │ │ ├── bsp_watchdog.h │ │ └── stm32h7xx_nucleo_144.h │ ├── src │ │ ├── bsp_beep.c │ │ ├── bsp_camera.c │ │ ├── bsp_can.c │ │ ├── bsp_cpu_adc.c │ │ ├── bsp_cpu_dac.c │ │ ├── bsp_cpu_flash.c │ │ ├── bsp_cpu_rtc.c │ │ ├── bsp_dht11.c │ │ ├── bsp_ds18b20.c │ │ ├── bsp_dwt.c │ │ ├── bsp_fmc_ad7606.c │ │ ├── bsp_fmc_io.c │ │ ├── bsp_fmc_nand_flash.c │ │ ├── bsp_fmc_oled.c │ │ ├── bsp_fmc_sdram.c │ │ ├── bsp_i2c_bh1750.c │ │ ├── bsp_i2c_bmp085.c │ │ ├── bsp_i2c_eeprom_24xx.c │ │ ├── bsp_i2c_gpio.c │ │ ├── bsp_i2c_hmc5883l.c │ │ ├── bsp_i2c_mpu6050.c │ │ ├── bsp_i2c_si4730.c │ │ ├── bsp_i2c_wm8978.c │ │ ├── bsp_ir_decode.c │ │ ├── bsp_key.c │ │ ├── bsp_led.c │ │ ├── bsp_ps2.c │ │ ├── bsp_qspi_w25q256.c │ │ ├── bsp_rs485_led.c │ │ ├── bsp_sdio_sd.c │ │ ├── bsp_spi_ad9833.c │ │ ├── bsp_spi_ads1256.c │ │ ├── bsp_spi_bus.c │ │ ├── bsp_spi_dac8501.c │ │ ├── bsp_spi_dac8562.c │ │ ├── bsp_spi_flash.c │ │ ├── bsp_spi_tm7705.c │ │ ├── bsp_spi_vs1053b.c │ │ ├── bsp_tft_429.c │ │ ├── bsp_tft_h7.c │ │ ├── bsp_tft_lcd.c │ │ ├── bsp_tim_pwm.c │ │ ├── bsp_timer.c │ │ ├── bsp_ts_ft5x06.c │ │ ├── bsp_ts_gt811.c │ │ ├── bsp_ts_gt911.c │ │ ├── bsp_ts_stmpe811.c │ │ ├── bsp_ts_touch.c │ │ ├── bsp_uart_esp8266.c │ │ ├── bsp_uart_fifo.c │ │ ├── bsp_uart_gps.c │ │ ├── bsp_uart_sim800.c │ │ ├── bsp_user_lib.c │ │ └── bsp_watchdog.c │ ├── stm32h7xx_hal_conf.h │ ├── stm32h7xx_hal_timebase_tim.c │ ├── stm32h7xx_it.c │ └── stm32h7xx_it.h ├── easylogger │ ├── inc │ │ ├── elog.h │ │ └── elog_cfg.h │ ├── plugins │ │ ├── file │ │ │ ├── elog_file.c │ │ │ ├── elog_file.h │ │ │ ├── elog_file_cfg.h │ │ │ └── elog_file_port.c │ │ └── flash │ │ │ ├── elog_flash.c │ │ │ ├── elog_flash.h │ │ │ ├── elog_flash_cfg.h │ │ │ └── elog_flash_port.c │ ├── port │ │ └── elog_port.c │ └── src │ │ ├── elog.c │ │ ├── elog_async.c │ │ ├── elog_buf.c │ │ └── elog_utils.c ├── lwip │ └── src │ │ ├── api │ │ ├── api_lib.c │ │ ├── api_msg.c │ │ ├── err.c │ │ ├── if_api.c │ │ ├── netbuf.c │ │ ├── netdb.c │ │ ├── netifapi.c │ │ ├── sockets.c │ │ └── tcpip.c │ │ ├── apps │ │ ├── altcp_tls │ │ │ ├── altcp_tls_mbedtls.c │ │ │ ├── altcp_tls_mbedtls_mem.c │ │ │ ├── altcp_tls_mbedtls_mem.h │ │ │ └── altcp_tls_mbedtls_structs.h │ │ ├── http │ │ │ ├── altcp_proxyconnect.c │ │ │ ├── fs.c │ │ │ ├── fs │ │ │ │ ├── 404.html │ │ │ │ ├── img │ │ │ │ │ └── sics.gif │ │ │ │ └── index.html │ │ │ ├── fsdata.c │ │ │ ├── fsdata.h │ │ │ ├── http_client.c │ │ │ ├── httpd.c │ │ │ ├── httpd_structs.h │ │ │ └── makefsdata │ │ │ │ ├── makefsdata │ │ │ │ ├── makefsdata.c │ │ │ │ ├── readme.txt │ │ │ │ └── tinydir.h │ │ ├── lwiperf │ │ │ └── lwiperf.c │ │ ├── mdns │ │ │ └── mdns.c │ │ ├── mqtt │ │ │ └── mqtt.c │ │ ├── netbiosns │ │ │ └── netbiosns.c │ │ ├── smtp │ │ │ └── smtp.c │ │ ├── snmp │ │ │ ├── snmp_asn1.c │ │ │ ├── snmp_asn1.h │ │ │ ├── snmp_core.c │ │ │ ├── snmp_core_priv.h │ │ │ ├── snmp_mib2.c │ │ │ ├── snmp_mib2_icmp.c │ │ │ ├── snmp_mib2_interfaces.c │ │ │ ├── snmp_mib2_ip.c │ │ │ ├── snmp_mib2_snmp.c │ │ │ ├── snmp_mib2_system.c │ │ │ ├── snmp_mib2_tcp.c │ │ │ ├── snmp_mib2_udp.c │ │ │ ├── snmp_msg.c │ │ │ ├── snmp_msg.h │ │ │ ├── snmp_netconn.c │ │ │ ├── snmp_pbuf_stream.c │ │ │ ├── snmp_pbuf_stream.h │ │ │ ├── snmp_raw.c │ │ │ ├── snmp_scalar.c │ │ │ ├── snmp_snmpv2_framework.c │ │ │ ├── snmp_snmpv2_usm.c │ │ │ ├── snmp_table.c │ │ │ ├── snmp_threadsync.c │ │ │ ├── snmp_traps.c │ │ │ ├── snmpv3.c │ │ │ ├── snmpv3_mbedtls.c │ │ │ └── snmpv3_priv.h │ │ ├── sntp │ │ │ └── sntp.c │ │ └── tftp │ │ │ └── tftp_server.c │ │ ├── core │ │ ├── altcp.c │ │ ├── altcp_alloc.c │ │ ├── altcp_tcp.c │ │ ├── def.c │ │ ├── dns.c │ │ ├── inet_chksum.c │ │ ├── init.c │ │ ├── ip.c │ │ ├── ipv4 │ │ │ ├── autoip.c │ │ │ ├── dhcp.c │ │ │ ├── etharp.c │ │ │ ├── icmp.c │ │ │ ├── igmp.c │ │ │ ├── ip4.c │ │ │ ├── ip4_addr.c │ │ │ └── ip4_frag.c │ │ ├── ipv6 │ │ │ ├── dhcp6.c │ │ │ ├── ethip6.c │ │ │ ├── icmp6.c │ │ │ ├── inet6.c │ │ │ ├── ip6.c │ │ │ ├── ip6_addr.c │ │ │ ├── ip6_frag.c │ │ │ ├── mld6.c │ │ │ └── nd6.c │ │ ├── mem.c │ │ ├── memp.c │ │ ├── netif.c │ │ ├── pbuf.c │ │ ├── raw.c │ │ ├── stats.c │ │ ├── sys.c │ │ ├── tcp.c │ │ ├── tcp_in.c │ │ ├── tcp_out.c │ │ ├── timeouts.c │ │ └── udp.c │ │ ├── include │ │ ├── arch │ │ │ ├── bpstruct.h │ │ │ ├── cc.h │ │ │ ├── cpu.h │ │ │ ├── epstruct.h │ │ │ ├── init.h │ │ │ ├── lib.h │ │ │ ├── perf.h │ │ │ └── sys_arch.h │ │ ├── compat │ │ │ ├── posix │ │ │ │ ├── arpa │ │ │ │ │ └── inet.h │ │ │ │ ├── net │ │ │ │ │ └── if.h │ │ │ │ ├── netdb.h │ │ │ │ └── sys │ │ │ │ │ └── socket.h │ │ │ └── stdc │ │ │ │ └── errno.h │ │ ├── lwip │ │ │ ├── altcp.h │ │ │ ├── altcp_tcp.h │ │ │ ├── altcp_tls.h │ │ │ ├── api.h │ │ │ ├── apps │ │ │ │ ├── FILES │ │ │ │ ├── altcp_proxyconnect.h │ │ │ │ ├── altcp_tls_mbedtls_opts.h │ │ │ │ ├── fs.h │ │ │ │ ├── http_client.h │ │ │ │ ├── httpd.h │ │ │ │ ├── httpd_opts.h │ │ │ │ ├── lwiperf.h │ │ │ │ ├── mdns.h │ │ │ │ ├── mdns_opts.h │ │ │ │ ├── mdns_priv.h │ │ │ │ ├── mqtt.h │ │ │ │ ├── mqtt_opts.h │ │ │ │ ├── mqtt_priv.h │ │ │ │ ├── netbiosns.h │ │ │ │ ├── netbiosns_opts.h │ │ │ │ ├── smtp.h │ │ │ │ ├── smtp_opts.h │ │ │ │ ├── snmp.h │ │ │ │ ├── snmp_core.h │ │ │ │ ├── snmp_mib2.h │ │ │ │ ├── snmp_opts.h │ │ │ │ ├── snmp_scalar.h │ │ │ │ ├── snmp_snmpv2_framework.h │ │ │ │ ├── snmp_snmpv2_usm.h │ │ │ │ ├── snmp_table.h │ │ │ │ ├── snmp_threadsync.h │ │ │ │ ├── snmpv3.h │ │ │ │ ├── sntp.h │ │ │ │ ├── sntp_opts.h │ │ │ │ ├── tftp_opts.h │ │ │ │ └── tftp_server.h │ │ │ ├── arch.h │ │ │ ├── autoip.h │ │ │ ├── debug.h │ │ │ ├── def.h │ │ │ ├── dhcp.h │ │ │ ├── dhcp6.h │ │ │ ├── dns.h │ │ │ ├── err.h │ │ │ ├── errno.h │ │ │ ├── etharp.h │ │ │ ├── ethip6.h │ │ │ ├── icmp.h │ │ │ ├── icmp6.h │ │ │ ├── if_api.h │ │ │ ├── igmp.h │ │ │ ├── inet.h │ │ │ ├── inet_chksum.h │ │ │ ├── init.h │ │ │ ├── init.h.cmake.in │ │ │ ├── ip.h │ │ │ ├── ip4.h │ │ │ ├── ip4_addr.h │ │ │ ├── ip4_frag.h │ │ │ ├── ip6.h │ │ │ ├── ip6_addr.h │ │ │ ├── ip6_frag.h │ │ │ ├── ip6_zone.h │ │ │ ├── ip_addr.h │ │ │ ├── mem.h │ │ │ ├── memp.h │ │ │ ├── mld6.h │ │ │ ├── nd6.h │ │ │ ├── netbuf.h │ │ │ ├── netdb.h │ │ │ ├── netif.h │ │ │ ├── netifapi.h │ │ │ ├── opt.h │ │ │ ├── pbuf.h │ │ │ ├── priv │ │ │ │ ├── altcp_priv.h │ │ │ │ ├── api_msg.h │ │ │ │ ├── mem_priv.h │ │ │ │ ├── memp_priv.h │ │ │ │ ├── memp_std.h │ │ │ │ ├── nd6_priv.h │ │ │ │ ├── raw_priv.h │ │ │ │ ├── sockets_priv.h │ │ │ │ ├── tcp_priv.h │ │ │ │ └── tcpip_priv.h │ │ │ ├── prot │ │ │ │ ├── autoip.h │ │ │ │ ├── dhcp.h │ │ │ │ ├── dhcp6.h │ │ │ │ ├── dns.h │ │ │ │ ├── etharp.h │ │ │ │ ├── ethernet.h │ │ │ │ ├── iana.h │ │ │ │ ├── icmp.h │ │ │ │ ├── icmp6.h │ │ │ │ ├── ieee.h │ │ │ │ ├── igmp.h │ │ │ │ ├── ip.h │ │ │ │ ├── ip4.h │ │ │ │ ├── ip6.h │ │ │ │ ├── mld6.h │ │ │ │ ├── nd6.h │ │ │ │ ├── tcp.h │ │ │ │ └── udp.h │ │ │ ├── raw.h │ │ │ ├── sio.h │ │ │ ├── snmp.h │ │ │ ├── sockets.h │ │ │ ├── stats.h │ │ │ ├── sys.h │ │ │ ├── tcp.h │ │ │ ├── tcpbase.h │ │ │ ├── tcpip.h │ │ │ ├── timeouts.h │ │ │ └── udp.h │ │ └── netif │ │ │ ├── bridgeif.h │ │ │ ├── bridgeif_opts.h │ │ │ ├── etharp.h │ │ │ ├── ethernet.h │ │ │ ├── ieee802154.h │ │ │ ├── lowpan6.h │ │ │ ├── lowpan6_ble.h │ │ │ ├── lowpan6_common.h │ │ │ ├── lowpan6_opts.h │ │ │ ├── ppp │ │ │ ├── ccp.h │ │ │ ├── chap-md5.h │ │ │ ├── chap-new.h │ │ │ ├── chap_ms.h │ │ │ ├── eap.h │ │ │ ├── ecp.h │ │ │ ├── eui64.h │ │ │ ├── fsm.h │ │ │ ├── ipcp.h │ │ │ ├── ipv6cp.h │ │ │ ├── lcp.h │ │ │ ├── magic.h │ │ │ ├── mppe.h │ │ │ ├── polarssl │ │ │ │ ├── arc4.h │ │ │ │ ├── des.h │ │ │ │ ├── md4.h │ │ │ │ ├── md5.h │ │ │ │ └── sha1.h │ │ │ ├── ppp.h │ │ │ ├── ppp_impl.h │ │ │ ├── ppp_opts.h │ │ │ ├── pppapi.h │ │ │ ├── pppcrypt.h │ │ │ ├── pppdebug.h │ │ │ ├── pppoe.h │ │ │ ├── pppol2tp.h │ │ │ ├── pppos.h │ │ │ ├── upap.h │ │ │ └── vj.h │ │ │ ├── slipif.h │ │ │ └── zepif.h │ │ ├── netif │ │ ├── FILES │ │ ├── bridgeif.c │ │ ├── bridgeif_fdb.c │ │ ├── ethernet.c │ │ ├── lowpan6.c │ │ ├── lowpan6_ble.c │ │ ├── lowpan6_common.c │ │ ├── ppp │ │ │ ├── PPPD_FOLLOWUP │ │ │ ├── auth.c │ │ │ ├── ccp.c │ │ │ ├── chap-md5.c │ │ │ ├── chap-new.c │ │ │ ├── chap_ms.c │ │ │ ├── demand.c │ │ │ ├── eap.c │ │ │ ├── ecp.c │ │ │ ├── eui64.c │ │ │ ├── fsm.c │ │ │ ├── ipcp.c │ │ │ ├── ipv6cp.c │ │ │ ├── lcp.c │ │ │ ├── magic.c │ │ │ ├── mppe.c │ │ │ ├── multilink.c │ │ │ ├── polarssl │ │ │ │ ├── README │ │ │ │ ├── arc4.c │ │ │ │ ├── des.c │ │ │ │ ├── md4.c │ │ │ │ ├── md5.c │ │ │ │ └── sha1.c │ │ │ ├── ppp.c │ │ │ ├── pppapi.c │ │ │ ├── pppcrypt.c │ │ │ ├── pppoe.c │ │ │ ├── pppol2tp.c │ │ │ ├── pppos.c │ │ │ ├── upap.c │ │ │ ├── utils.c │ │ │ └── vj.c │ │ ├── slipif.c │ │ └── zepif.c │ │ └── port │ │ ├── lan8742.c │ │ ├── lan8742.h │ │ ├── lwipopts.h │ │ ├── netif_port.c │ │ ├── netif_port.h │ │ └── sys_arch.c ├── main.c ├── project_suozhang.sct ├── segger │ ├── HardFaultHandlerIAR │ │ ├── HardFaultHandler.S │ │ └── SEGGER_HardFaultHandler.c │ └── HardFaultHandlerMDK │ │ ├── HardFaultHandler.S │ │ └── SEGGER_HardFaultHandler.c ├── segger_rtt │ ├── SEGGER_RTT.c │ ├── SEGGER_RTT.h │ ├── SEGGER_RTT_ASM_ARMv7M.S │ ├── SEGGER_RTT_Conf.h │ └── SEGGER_RTT_printf.c ├── tcp_client.c └── tcp_client.h └── 删除目标文件(用于打包备份).bat /.gitignore: -------------------------------------------------------------------------------- 1 | /Project/MDK-ARM(uV5)/Objects 2 | /Project/MDK-ARM(uV5)/Listings 3 | /Project/MDK-ARM(uV5)/DebugConfig 4 | *uvgui* 5 | JLinkLog.txt 6 | *.bin -------------------------------------------------------------------------------- /Doc/01.例程功能说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Doc/01.例程功能说明.txt -------------------------------------------------------------------------------- /Doc/02.例程修改记录.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Doc/02.例程修改记录.txt -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h753xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h753xx.h -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h743xx_dtcmram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x20000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x20000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2000FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20010000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h743xx_flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h743xx_flash_rw_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h743xx_flash_rw_sram2.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x10000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x10047FFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h743xx_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x24000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x24000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2403FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24040000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h750xx_dtcmram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x20000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x20000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2000FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20010000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h750xx_flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x0801FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h750xx_flash_rw_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x0801FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h750xx_flash_rw_sram2.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x0801FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x10000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x10047FFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h750xx_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x24000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x24000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2403FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24040000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h753xx_dtcmram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x20000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x20000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2000FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20010000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h753xx_flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h753xx_flash_rw_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h753xx_flash_rw_sram2.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x10000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x10047FFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/linker/stm32h753xx_sram1.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x24000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x24000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x2403FFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x24040000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; 11 | define symbol __ICFEDIT_region_ITCMRAM_start__ = 0x00000000; 12 | define symbol __ICFEDIT_region_ITCMRAM_end__ = 0x0000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x400; 15 | define symbol __ICFEDIT_size_heap__ = 0x200; 16 | /**** End of ICF editor section. ###ICF###*/ 17 | 18 | 19 | define memory mem with size = 4G; 20 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 22 | define region ITCMRAM_region = mem:[from __ICFEDIT_region_ITCMRAM_start__ to __ICFEDIT_region_ITCMRAM_end__]; 23 | 24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 26 | 27 | initialize by copy { readwrite }; 28 | do not initialize { section .noinit }; 29 | 30 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 31 | 32 | place in ROM_region { readonly }; 33 | place in RAM_region { readwrite, 34 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /Libraries/CMSIS/Include/cmsis_version.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * @file cmsis_version.h 3 | * @brief CMSIS Core(M) Version definitions 4 | * @version V5.0.2 5 | * @date 19. April 2017 6 | ******************************************************************************/ 7 | /* 8 | * Copyright (c) 2009-2017 ARM Limited. All rights reserved. 9 | * 10 | * SPDX-License-Identifier: Apache-2.0 11 | * 12 | * Licensed under the Apache License, Version 2.0 (the License); you may 13 | * not use this file except in compliance with the License. 14 | * You may obtain a copy of the License at 15 | * 16 | * www.apache.org/licenses/LICENSE-2.0 17 | * 18 | * Unless required by applicable law or agreed to in writing, software 19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 | * See the License for the specific language governing permissions and 22 | * limitations under the License. 23 | */ 24 | 25 | #if defined ( __ICCARM__ ) 26 | #pragma system_include /* treat file as system include file for MISRA check */ 27 | #elif defined (__clang__) 28 | #pragma clang system_header /* treat file as system include file */ 29 | #endif 30 | 31 | #ifndef __CMSIS_VERSION_H 32 | #define __CMSIS_VERSION_H 33 | 34 | /* CMSIS Version definitions */ 35 | #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */ 36 | #define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */ 37 | #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \ 38 | __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */ 39 | #endif 40 | -------------------------------------------------------------------------------- /Libraries/CMSIS/Include/tz_context.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * @file tz_context.h 3 | * @brief Context Management for Armv8-M TrustZone 4 | * @version V1.0.1 5 | * @date 10. January 2018 6 | ******************************************************************************/ 7 | /* 8 | * Copyright (c) 2017-2018 Arm Limited. All rights reserved. 9 | * 10 | * SPDX-License-Identifier: Apache-2.0 11 | * 12 | * Licensed under the Apache License, Version 2.0 (the License); you may 13 | * not use this file except in compliance with the License. 14 | * You may obtain a copy of the License at 15 | * 16 | * www.apache.org/licenses/LICENSE-2.0 17 | * 18 | * Unless required by applicable law or agreed to in writing, software 19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 | * See the License for the specific language governing permissions and 22 | * limitations under the License. 23 | */ 24 | 25 | #if defined ( __ICCARM__ ) 26 | #pragma system_include /* treat file as system include file for MISRA check */ 27 | #elif defined (__clang__) 28 | #pragma clang system_header /* treat file as system include file */ 29 | #endif 30 | 31 | #ifndef TZ_CONTEXT_H 32 | #define TZ_CONTEXT_H 33 | 34 | #include 35 | 36 | #ifndef TZ_MODULEID_T 37 | #define TZ_MODULEID_T 38 | /// \details Data type that identifies secure software modules called by a process. 39 | typedef uint32_t TZ_ModuleId_t; 40 | #endif 41 | 42 | /// \details TZ Memory ID identifies an allocated memory slot. 43 | typedef uint32_t TZ_MemoryId_t; 44 | 45 | /// Initialize secure context memory system 46 | /// \return execution status (1: success, 0: error) 47 | uint32_t TZ_InitContextSystem_S (void); 48 | 49 | /// Allocate context memory for calling secure software modules in TrustZone 50 | /// \param[in] module identifies software modules called from non-secure mode 51 | /// \return value != 0 id TrustZone memory slot identifier 52 | /// \return value 0 no memory available or internal error 53 | TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module); 54 | 55 | /// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S 56 | /// \param[in] id TrustZone memory slot identifier 57 | /// \return execution status (1: success, 0: error) 58 | uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id); 59 | 60 | /// Load secure context (called on RTOS thread context switch) 61 | /// \param[in] id TrustZone memory slot identifier 62 | /// \return execution status (1: success, 0: error) 63 | uint32_t TZ_LoadContext_S (TZ_MemoryId_t id); 64 | 65 | /// Store secure context (called on RTOS thread context switch) 66 | /// \param[in] id TrustZone memory slot identifier 67 | /// \return execution status (1: success, 0: error) 68 | uint32_t TZ_StoreContext_S (TZ_MemoryId_t id); 69 | 70 | #endif // TZ_CONTEXT_H 71 | -------------------------------------------------------------------------------- /Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp.c -------------------------------------------------------------------------------- /Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp_ex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp_ex.c -------------------------------------------------------------------------------- /Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma2d.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma2d.c -------------------------------------------------------------------------------- /Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hrtim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hrtim.c -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_GCC.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_GCC.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_IAR.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_IAR.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_Keil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM3_Keil.lib -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_GCC.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_GCC.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_IAR.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_IAR.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_Keil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM4_Keil.lib -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_GCC.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_GCC.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_IAR.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_IAR.a -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_Keil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM7_Keil.lib -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/_htmresc/logo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/_htmresc/logo.bmp -------------------------------------------------------------------------------- /Libraries/STM32_Audio/Addons/PDM/_htmresc/st_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_Audio/Addons/PDM/_htmresc/st_logo.png -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/AUDIO/Inc/usbd_audio_if_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_audio_if_template.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header for usbd_audio_if_template.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_AUDIO_IF_TEMPLATE_H 30 | #define __USBD_AUDIO_IF_TEMPLATE_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_audio.h" 38 | 39 | /* Exported types ------------------------------------------------------------*/ 40 | /* Exported constants --------------------------------------------------------*/ 41 | 42 | extern USBD_AUDIO_ItfTypeDef USBD_AUDIO_Template_fops; 43 | 44 | /* Exported macro ------------------------------------------------------------*/ 45 | /* Exported functions ------------------------------------------------------- */ 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* __USBD_AUDIO_IF_TEMPLATE_H */ 52 | 53 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 54 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc_if_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_cdc_if_template.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header for usbd_cdc_if_template.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_CDC_IF_TEMPLATE_H 30 | #define __USBD_CDC_IF_TEMPLATE_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_cdc.h" 38 | 39 | /* Exported types ------------------------------------------------------------*/ 40 | /* Exported constants --------------------------------------------------------*/ 41 | 42 | extern USBD_CDC_ItfTypeDef USBD_CDC_Template_fops; 43 | 44 | /* Exported macro ------------------------------------------------------------*/ 45 | /* Exported functions ------------------------------------------------------- */ 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* __USBD_CDC_IF_TEMPLATE_H */ 52 | 53 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 54 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/CustomHID/Inc/usbd_customhid_if_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_customhid_if_template.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header for usbd_customhid_if_template.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for th? 23 | e specific language governing permissions and 24 | * limitations under the License. 25 | * 26 | ****************************************************************************** 27 | */ 28 | 29 | /* Define to prevent recursive inclusion -------------------------------------*/ 30 | #ifndef __USBD_CUSTOMHID_IF_TEMPLATE_H 31 | #define __USBD_CUSTOMHID_IF_TEMPLATE_H 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /* Includes ------------------------------------------------------------------*/ 38 | #include "usbd_customhid.h" 39 | 40 | /* Exported types ------------------------------------------------------------*/ 41 | /* Exported constants --------------------------------------------------------*/ 42 | /* Exported macro ------------------------------------------------------------*/ 43 | /* Exported functions ------------------------------------------------------- */ 44 | extern USBD_CUSTOM_HID_ItfTypeDef USBD_CustomHID_template_fops; 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif /* __USBD_CUSTOMHID_IF_TEMPLATE_H */ 51 | 52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 53 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/DFU/Inc/usbd_dfu_media_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_dfu_media_template.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief header file for the usbd_dfu_media_template.c file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_DFU_MEDIA_TEMPLATE_H 30 | #define __USBD_DFU_MEDIA_TEMPLATE_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_dfu.h" 38 | 39 | /** @addtogroup STM32_USB_DEVICE_LIBRARY 40 | * @{ 41 | */ 42 | 43 | /** @defgroup USBD_MEDIA 44 | * @brief header file for the usbd_dfu_media_template.c file 45 | * @{ 46 | */ 47 | 48 | /** @defgroup USBD_MEDIA_Exported_Defines 49 | * @{ 50 | */ 51 | /** 52 | * @} 53 | */ 54 | 55 | 56 | /** @defgroup USBD_MEDIA_Exported_Types 57 | * @{ 58 | */ 59 | 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | 66 | 67 | /** @defgroup USBD_MEDIA_Exported_Macros 68 | * @{ 69 | */ 70 | 71 | /** 72 | * @} 73 | */ 74 | 75 | /** @defgroup USBD_MEDIA_Exported_Variables 76 | * @{ 77 | */ 78 | extern USBD_DFU_MediaTypeDef USBD_DFU_MEDIA_Template_fops; 79 | /** 80 | * @} 81 | */ 82 | 83 | /** @defgroup USBD_MEDIA_Exported_FunctionsPrototype 84 | * @{ 85 | */ 86 | 87 | 88 | /** 89 | * @} 90 | */ 91 | 92 | #ifdef __cplusplus 93 | } 94 | #endif 95 | 96 | #endif /* __USBD_DFU_MEDIA_TEMPLATE_H */ 97 | 98 | /** 99 | * @} 100 | */ 101 | 102 | /** 103 | * @} 104 | */ 105 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 106 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/MSC/Inc/usbd_msc_data.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_msc_data.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header for the usbd_msc_data.c file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_MSC_DATA_H 30 | #define __USBD_MSC_DATA_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_conf.h" 38 | 39 | /** @addtogroup STM32_USB_DEVICE_LIBRARY 40 | * @{ 41 | */ 42 | 43 | /** @defgroup USB_INFO 44 | * @brief general defines for the usb device library file 45 | * @{ 46 | */ 47 | 48 | /** @defgroup USB_INFO_Exported_Defines 49 | * @{ 50 | */ 51 | #define MODE_SENSE6_LEN 8 52 | #define MODE_SENSE10_LEN 8 53 | #define LENGTH_INQUIRY_PAGE00 7 54 | #define LENGTH_FORMAT_CAPACITIES 20 55 | 56 | /** 57 | * @} 58 | */ 59 | 60 | 61 | /** @defgroup USBD_INFO_Exported_TypesDefinitions 62 | * @{ 63 | */ 64 | /** 65 | * @} 66 | */ 67 | 68 | 69 | 70 | /** @defgroup USBD_INFO_Exported_Macros 71 | * @{ 72 | */ 73 | 74 | /** 75 | * @} 76 | */ 77 | 78 | /** @defgroup USBD_INFO_Exported_Variables 79 | * @{ 80 | */ 81 | extern const uint8_t MSC_Page00_Inquiry_Data[]; 82 | extern const uint8_t MSC_Mode_Sense6_data[]; 83 | extern const uint8_t MSC_Mode_Sense10_data[] ; 84 | 85 | /** 86 | * @} 87 | */ 88 | 89 | /** @defgroup USBD_INFO_Exported_FunctionsPrototype 90 | * @{ 91 | */ 92 | 93 | /** 94 | * @} 95 | */ 96 | 97 | #ifdef __cplusplus 98 | } 99 | #endif 100 | 101 | #endif /* __USBD_MSC_DATA_H */ 102 | 103 | /** 104 | * @} 105 | */ 106 | 107 | /** 108 | * @} 109 | */ 110 | 111 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 112 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/MSC/Inc/usbd_msc_storage_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_msc_storage.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header file for the usbd_msc_storage.c file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_MSC_STORAGE_H 30 | #define __USBD_MSC_STORAGE_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_msc.h" 38 | 39 | /** @addtogroup STM32_USB_DEVICE_LIBRARY 40 | * @{ 41 | */ 42 | 43 | /** @defgroup USBD_STORAGE 44 | * @brief header file for the usbd_msc_storage.c file 45 | * @{ 46 | */ 47 | 48 | /** @defgroup USBD_STORAGE_Exported_Defines 49 | * @{ 50 | */ 51 | /** 52 | * @} 53 | */ 54 | 55 | 56 | /** @defgroup USBD_STORAGE_Exported_Types 57 | * @{ 58 | */ 59 | 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | 66 | 67 | /** @defgroup USBD_STORAGE_Exported_Macros 68 | * @{ 69 | */ 70 | 71 | /** 72 | * @} 73 | */ 74 | 75 | /** @defgroup USBD_STORAGE_Exported_Variables 76 | * @{ 77 | */ 78 | extern USBD_StorageTypeDef USBD_MSC_Template_fops; 79 | /** 80 | * @} 81 | */ 82 | 83 | /** @defgroup USBD_STORAGE_Exported_FunctionsPrototype 84 | * @{ 85 | */ 86 | 87 | 88 | /** 89 | * @} 90 | */ 91 | 92 | #ifdef __cplusplus 93 | } 94 | #endif 95 | 96 | #endif /* __USBD_MSC_STORAGE_H */ 97 | 98 | /** 99 | * @} 100 | */ 101 | 102 | /** 103 | * @} 104 | */ 105 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 106 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Device_Library/Class/Template/Inc/usbd_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_template_core.h 4 | * @author MCD Application Team 5 | * @version V2.4.2 6 | * @date 11-December-2015 7 | * @brief Header file for the usbd_template_core.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USB_TEMPLATE_CORE_H 30 | #define __USB_TEMPLATE_CORE_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | /* Includes ------------------------------------------------------------------*/ 37 | #include "usbd_ioreq.h" 38 | 39 | /** @addtogroup STM32_USB_DEVICE_LIBRARY 40 | * @{ 41 | */ 42 | 43 | /** @defgroup USBD_TEMPLATE 44 | * @brief This file is the header file for usbd_template_core.c 45 | * @{ 46 | */ 47 | 48 | 49 | /** @defgroup USBD_TEMPLATE_Exported_Defines 50 | * @{ 51 | */ 52 | #define TEMPLATE_EPIN_ADDR 0x81 53 | #define TEMPLATE_EPIN_SIZE 0x10 54 | 55 | #define USB_TEMPLATE_CONFIG_DESC_SIZ 64 56 | 57 | /** 58 | * @} 59 | */ 60 | 61 | 62 | /** @defgroup USBD_CORE_Exported_TypesDefinitions 63 | * @{ 64 | */ 65 | 66 | /** 67 | * @} 68 | */ 69 | 70 | 71 | 72 | /** @defgroup USBD_CORE_Exported_Macros 73 | * @{ 74 | */ 75 | 76 | /** 77 | * @} 78 | */ 79 | 80 | /** @defgroup USBD_CORE_Exported_Variables 81 | * @{ 82 | */ 83 | 84 | extern USBD_ClassTypeDef USBD_TEMPLATE_ClassDriver; 85 | /** 86 | * @} 87 | */ 88 | 89 | /** @defgroup USB_CORE_Exported_Functions 90 | * @{ 91 | */ 92 | /** 93 | * @} 94 | */ 95 | 96 | #ifdef __cplusplus 97 | } 98 | #endif 99 | 100 | #endif /* __USB_TEMPLATE_CORE_H */ 101 | /** 102 | * @} 103 | */ 104 | 105 | /** 106 | * @} 107 | */ 108 | 109 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 110 | -------------------------------------------------------------------------------- /Libraries/STM32_USB_Host_Library/Release_Notes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/STM32_USB_Host_Library/Release_Notes.html -------------------------------------------------------------------------------- /Libraries/说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Libraries/说明.txt -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/CopyHex_Flash.bat: -------------------------------------------------------------------------------- 1 | copy Objects\output.hex ..\output(mdk).hex -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/EventRecorderStub.scvd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/JLinkSettings.ini: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ForceImpTypeAny = 0 3 | ShowInfoWin = 1 4 | EnableFlashBP = 2 5 | BPDuringExecution = 0 6 | [CFI] 7 | CFISize = 0x00 8 | CFIAddr = 0x00 9 | [CPU] 10 | MonModeVTableAddr = 0xFFFFFFFF 11 | MonModeDebug = 0 12 | MaxNumAPs = 0 13 | LowPowerHandlingMode = 0 14 | OverrideMemMap = 0 15 | AllowSimulation = 1 16 | ScriptFile="" 17 | [FLASH] 18 | CacheExcludeSize = 0x00 19 | CacheExcludeAddr = 0x00 20 | MinNumBytesFlashDL = 0 21 | SkipProgOnCRCMatch = 1 22 | VerifyDownload = 1 23 | AllowCaching = 1 24 | EnableFlashDL = 2 25 | Override = 1 26 | Device="STM32H743ZI" 27 | [GENERAL] 28 | WorkRAMSize = 0x00 29 | WorkRAMAddr = 0x00 30 | RAMUsageLimit = 0x00 31 | [SWO] 32 | SWOLogFile="" 33 | [MEM] 34 | RdOverrideOrMask = 0x00 35 | RdOverrideAndMask = 0xFFFFFFFF 36 | RdOverrideAddr = 0xFFFFFFFF 37 | WrOverrideOrMask = 0x00 38 | WrOverrideAndMask = 0xFFFFFFFF 39 | WrOverrideAddr = 0xFFFFFFFF 40 | -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/RTE/Compiler/EventRecorderConf.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------------ 2 | * MDK - Component ::Event Recorder 3 | * Copyright (c) 2016-2018 ARM Germany GmbH. All rights reserved. 4 | *------------------------------------------------------------------------------ 5 | * Name: EventRecorderConf.h 6 | * Purpose: Event Recorder Configuration 7 | * Rev.: V1.1.0 8 | *----------------------------------------------------------------------------*/ 9 | 10 | //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- 11 | 12 | // Event Recorder 13 | 14 | // Number of Records 15 | // <8=>8 <16=>16 <32=>32 <64=>64 <128=>128 <256=>256 <512=>512 <1024=>1024 16 | // <2048=>2048 <4096=>4096 <8192=>8192 <16384=>16384 <32768=>32768 17 | // <65536=>65536 18 | // Configures size of Event Record Buffer (each record is 16 bytes) 19 | // Must be 2^n (min=8, max=65536) 20 | #define EVENT_RECORD_COUNT 64U 21 | 22 | // Time Stamp Source 23 | // <0=> DWT Cycle Counter <1=> SysTick <2=> CMSIS-RTOS2 System Timer 24 | // <3=> User Timer (Normal Reset) <4=> User Timer (Power-On Reset) 25 | // Selects source for 32-bit time stamp 26 | #define EVENT_TIMESTAMP_SOURCE 0 27 | 28 | // Time Stamp Clock Frequency [Hz] <0-1000000000> 29 | // Defines default time stamp clock frequency (0 when not used) 30 | #define EVENT_TIMESTAMP_FREQ 0U 31 | 32 | // 33 | 34 | //------------- <<< end of configuration section >>> --------------------------- 35 | -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/RTE/_Flash/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'project' 7 | * Target: 'Flash' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | /* 15 | * Define the Device Header File: 16 | */ 17 | #define CMSIS_device_header "stm32h7xx.h" 18 | 19 | /* Keil.ARM Compiler::Compiler:Event Recorder:DAP:1.4.0 */ 20 | #define RTE_Compiler_EventRecorder 21 | #define RTE_Compiler_EventRecorder_DAP 22 | /* Keil.ARM Compiler::Compiler:I/O:STDOUT:EVR:1.2.0 */ 23 | #define RTE_Compiler_IO_STDOUT /* Compiler I/O: STDOUT */ 24 | #define RTE_Compiler_IO_STDOUT_EVR /* Compiler I/O: STDOUT EVR */ 25 | 26 | 27 | #endif /* RTE_COMPONENTS_H */ 28 | -------------------------------------------------------------------------------- /Project/MDK-ARM(uV5)/stm32-v7.sct: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08000000 0x00200000 { ; load region size_region 6 | ER_IROM1 0x08000000 0x00200000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | 12 | RW_IRAM1 0x20000000 0x00020000 { ; RW data - 128KB DTCM 13 | .ANY (+RW +ZI) 14 | } 15 | 16 | RW_IRAM2 0x24000000 0x00080000 { ; RW data - 512KB AXI SRAM 17 | *(.RAM_D1) 18 | } 19 | 20 | RW_IRAM3 0x30000000 0x00048000 { ; RW data - 128KB SRAM1(0x30000000) + 128KB SRAM2(0x3002 0000) + 32KB SRAM3(0x30040000) 21 | *(.RAM_D2) 22 | } 23 | 24 | RW_IRAM4 0x38000000 0x00010000 { ; RW data - 64KB SRAM4(0x38000000) 25 | *(.RAM_D3) 26 | } 27 | } -------------------------------------------------------------------------------- /Project/说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/Project/说明.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # stm32h7_freertos 2 | 3 | 开发板:Nucleo-H743ZI ,(8M晶振) 4 | 5 | 1、移植 FreeRTOS V10.2,测试OK. 6 | 7 | 2、重定向 printf 到 串口3, ST-LINK 虚拟串口 可以直接打印数据,测试OK。 8 | 9 | 3、刷 ST-LINK 到 jlink 后, 不仅支持 虚拟串口,还能使用 jlink 下的 各种工具包,爽歪歪。 10 | 11 | 教程:https://www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/ 12 | 13 | 4、移植 easylogger 功能, 进行log 日志 有颜色的 输出,打开 j-link RTT Viewer 软件 即可看到颜色输出。 14 | 15 | easylogger:https://github.com/armink/EasyLogger 16 | 17 | 5、移植 lwip 2.1.2 版本 , 并使用 netconn 接口实现 TCP client 功能。 18 | 19 | 驱动移植参考:https://www.stmcu.org.cn/document/detail/index/id-217958 20 | 21 | 6、实现 网线 热插拔 ,以及 TCP 客户端 keepalive 功能 22 | 23 | -------------------------------------------------------------------------------- /User/FreeRTOS/include/stdint.readme: -------------------------------------------------------------------------------- 1 | 2 | #ifndef FREERTOS_STDINT 3 | #define FREERTOS_STDINT 4 | 5 | /******************************************************************************* 6 | * THIS IS NOT A FULL stdint.h IMPLEMENTATION - It only contains the definitions 7 | * necessary to build the FreeRTOS code. It is provided to allow FreeRTOS to be 8 | * built using compilers that do not provide their own stdint.h definition. 9 | * 10 | * To use this file: 11 | * 12 | * 1) Copy this file into the directory that contains your FreeRTOSConfig.h 13 | * header file, as that directory will already be in the compilers include 14 | * path. 15 | * 16 | * 2) Rename the copied file stdint.h. 17 | * 18 | */ 19 | 20 | typedef signed char int8_t; 21 | typedef unsigned char uint8_t; 22 | typedef short int16_t; 23 | typedef unsigned short uint16_t; 24 | typedef long int32_t; 25 | typedef unsigned long uint32_t; 26 | 27 | #endif /* FREERTOS_STDINT */ 28 | -------------------------------------------------------------------------------- /User/FreeRTOS/portable/MemMang/ReadMe.url: -------------------------------------------------------------------------------- 1 | [{000214A0-0000-0000-C000-000000000046}] 2 | Prop3=19,2 3 | [InternetShortcut] 4 | URL=http://www.freertos.org/a00111.html 5 | IDList= 6 | -------------------------------------------------------------------------------- /User/FreeRTOS/portable/RVDS/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/RVDS/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/RVDS/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /User/FreeRTOS/readme.txt: -------------------------------------------------------------------------------- 1 | Each real time kernel port consists of three files that contain the core kernel 2 | components and are common to every port, and one or more files that are 3 | specific to a particular microcontroller and or compiler. 4 | 5 | + The FreeRTOS/Source directory contains the three files that are common to 6 | every port - list.c, queue.c and tasks.c. The kernel is contained within these 7 | three files. croutine.c implements the optional co-routine functionality - which 8 | is normally only used on very memory limited systems. 9 | 10 | + The FreeRTOS/Source/Portable directory contains the files that are specific to 11 | a particular microcontroller and or compiler. 12 | 13 | + The FreeRTOS/Source/include directory contains the real time kernel header 14 | files. 15 | 16 | See the readme file in the FreeRTOS/Source/Portable directory for more 17 | information. -------------------------------------------------------------------------------- /User/bsp/bsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/bsp.c -------------------------------------------------------------------------------- /User/bsp/bsp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/bsp.h -------------------------------------------------------------------------------- /User/bsp/bsp_msg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/bsp_msg.c -------------------------------------------------------------------------------- /User/bsp/bsp_msg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/bsp_msg.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_beep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_beep.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_camera.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_can.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_can.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_cpu_adc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_cpu_adc.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_cpu_dac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_cpu_dac.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_cpu_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_cpu_flash.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_cpu_rtc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_cpu_rtc.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_dht11.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_dht11.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ds18b20.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ds18b20.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_dwt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_dwt.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_eth.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_eth.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_fmc_ad7606.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_fmc_ad7606.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_fmc_io.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_fmc_io.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_fmc_nand_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_fmc_nand_flash.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_fmc_oled.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_fmc_oled.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_fmc_sdram.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_fmc_sdram.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_bh1750.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_bh1750.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_bmp085.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_bmp085.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_eeprom_24xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_eeprom_24xx.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_gpio.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_hmc5883l.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_hmc5883l.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_mpu6050.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_mpu6050.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_si4730.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_si4730.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_i2c_wm8978.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_i2c_wm8978.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ir_decode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ir_decode.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_key.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_led.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_led.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_mg323.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_mg323.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ps2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ps2.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_qspi_w25q256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_qspi_w25q256.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_rs485_led.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_rs485_led.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_sdio_sd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_sdio_sd.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_ad9833.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_ad9833.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_ads1256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_ads1256.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_bus.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_bus.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_dac8501.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_dac8501.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_dac8562.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_dac8562.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_flash.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_tm7705.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_tm7705.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_spi_vs1053b.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_spi_vs1053b.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_tft_429.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_tft_429.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_tft_h7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_tft_h7.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_tft_lcd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_tft_lcd.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_tim_pwm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_tim_pwm.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_timer.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ts_ft5x06.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ts_ft5x06.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ts_gt811.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ts_gt811.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ts_gt911.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ts_gt911.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ts_stmpe811.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ts_stmpe811.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_ts_touch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_ts_touch.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_uart_esp8266.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_uart_esp8266.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_uart_fifo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_uart_fifo.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_uart_gps.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_uart_gps.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_uart_sim800.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_uart_sim800.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_user_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_user_lib.h -------------------------------------------------------------------------------- /User/bsp/inc/bsp_watchdog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/inc/bsp_watchdog.h -------------------------------------------------------------------------------- /User/bsp/src/bsp_beep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_beep.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_camera.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_camera.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_can.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_can.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_cpu_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_cpu_adc.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_cpu_dac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_cpu_dac.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_cpu_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_cpu_flash.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_cpu_rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_cpu_rtc.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_dht11.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_dht11.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ds18b20.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ds18b20.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_dwt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_dwt.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_fmc_ad7606.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_fmc_ad7606.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_fmc_io.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_fmc_io.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_fmc_nand_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_fmc_nand_flash.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_fmc_oled.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_fmc_oled.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_fmc_sdram.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_fmc_sdram.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_bh1750.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_bh1750.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_bmp085.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_bmp085.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_eeprom_24xx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_eeprom_24xx.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_gpio.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_hmc5883l.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_hmc5883l.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_mpu6050.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_mpu6050.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_si4730.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_si4730.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_i2c_wm8978.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_i2c_wm8978.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ir_decode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ir_decode.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_key.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_led.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_led.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ps2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ps2.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_qspi_w25q256.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_qspi_w25q256.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_rs485_led.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_rs485_led.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_sdio_sd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_sdio_sd.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_ad9833.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_ad9833.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_ads1256.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_ads1256.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_bus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_bus.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_dac8501.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_dac8501.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_dac8562.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_dac8562.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_flash.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_tm7705.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_tm7705.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_spi_vs1053b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_spi_vs1053b.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_tft_429.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_tft_429.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_tft_h7.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_tft_h7.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_tft_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_tft_lcd.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_tim_pwm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_tim_pwm.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_timer.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ts_ft5x06.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ts_ft5x06.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ts_gt811.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ts_gt811.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ts_gt911.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ts_gt911.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ts_stmpe811.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ts_stmpe811.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_ts_touch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_ts_touch.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_uart_esp8266.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_uart_esp8266.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_uart_fifo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_uart_fifo.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_uart_gps.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_uart_gps.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_uart_sim800.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_uart_sim800.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_user_lib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_user_lib.c -------------------------------------------------------------------------------- /User/bsp/src/bsp_watchdog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/bsp/src/bsp_watchdog.c -------------------------------------------------------------------------------- /User/easylogger/plugins/file/elog_file.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015-2019, Qintl, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: It is an head file for file log plugin. You can see all be called functions. 26 | * Created on: 2019-01-05 27 | */ 28 | 29 | #ifndef __ELOG_FILE__H__ 30 | #define __ELOG_FILE__H__ 31 | 32 | #include 33 | #include 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* EasyLogger file log plugin's software version number */ 40 | #define ELOG_FILE_SW_VERSION "V1.0.0" 41 | #ifdef linux 42 | #define likely(x) __builtin_expect(!!(x), 1) 43 | #define unlikely(x) __builtin_expect(!!(x), 0) 44 | #else 45 | #define likely(x) (x) 46 | #define unlikely(x) (x) 47 | #endif 48 | 49 | typedef struct { 50 | char *name; /* file name */ 51 | size_t max_size; /* file max size */ 52 | int max_rotate; /* max rotate file count */ 53 | } ElogFileCfg; 54 | 55 | /* elog_file.c */ 56 | ElogErrCode elog_file_init(void); 57 | void elog_file_write(const char *log, size_t size); 58 | void elog_file_config(ElogFileCfg *cfg); 59 | void elog_file_deinit(void); 60 | 61 | /* elog_file_port.c */ 62 | ElogErrCode elog_file_port_init(void); 63 | void elog_file_port_lock(void); 64 | void elog_file_port_unlock(void); 65 | void elog_file_port_deinit(void); 66 | 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /User/easylogger/plugins/file/elog_file_cfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015-2019, Qintl, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: It is the configure head file for this flash log plugin. 26 | * Created on: 2019-01-05 27 | */ 28 | 29 | #ifndef _ELOG_FILE_CFG_H_ 30 | #define _ELOG_FILE_CFG_H_ 31 | 32 | /* EasyLogger file log plugin's using file name */ 33 | #define ELOG_FILE_NAME /* @note you must define it for a value */ 34 | 35 | /* EasyLogger file log plugin's using file max size */ 36 | #define ELOG_FILE_MAX_SIZE /* @note you must define it for a value */ 37 | 38 | /* EasyLogger file log plugin's using max rotate file count */ 39 | #define ELOG_FILE_MAX_ROTATE /* @note you must define it for a value */ 40 | 41 | #endif /* _ELOG_FILE_CFG_H_ */ 42 | -------------------------------------------------------------------------------- /User/easylogger/plugins/file/elog_file_port.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015-2019, Qintl, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: Portable interface for EasyLogger's file log pulgin. 26 | * Created on: 2019-01-05 27 | */ 28 | 29 | #include "elog_file.h" 30 | 31 | /** 32 | * EasyLogger flile log pulgin port initialize 33 | * 34 | * @return result 35 | */ 36 | ElogErrCode elog_file_port_init(void) 37 | { 38 | ElogErrCode result = ELOG_NO_ERR; 39 | 40 | /* add your code here */ 41 | 42 | return result; 43 | } 44 | 45 | /** 46 | * file log lock 47 | */ 48 | void elog_file_port_lock(void) { 49 | 50 | /* add your code here */ 51 | 52 | } 53 | 54 | /** 55 | * file log unlock 56 | */ 57 | void elog_file_port_unlock(void) { 58 | 59 | /* add your code here */ 60 | 61 | } 62 | 63 | /** 64 | * file log deinit 65 | */ 66 | void elog_file_port_deinit(void) { 67 | 68 | /* add your code here */ 69 | 70 | } 71 | -------------------------------------------------------------------------------- /User/easylogger/plugins/flash/elog_flash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015-2017, Armink, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: It is an head file for flash log plugin. You can see all be called functions. 26 | * Created on: 2015-06-05 27 | */ 28 | 29 | #ifndef __ELOG_FLASH_H__ 30 | #define __ELOG_FLASH_H__ 31 | 32 | #include 33 | #include 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | #if !defined(ELOG_FLASH_BUF_SIZE) 40 | #error "Please configure RAM buffer size (in elog_flash_cfg.h)" 41 | #endif 42 | 43 | /* EasyLogger flash log plugin's software version number */ 44 | #define ELOG_FLASH_SW_VERSION "V2.0.1" 45 | 46 | /* elog_flash.c */ 47 | ElogErrCode elog_flash_init(void); 48 | void elog_flash_output(size_t pos, size_t size); 49 | void elog_flash_output_all(void); 50 | void elog_flash_output_recent(size_t size); 51 | void elog_flash_set_filter(uint8_t level,const char *tag,const char *keyword); 52 | void elog_flash_write(const char *log, size_t size); 53 | void elog_flash_clean(void); 54 | void elog_flash_lock_enabled(bool enabled); 55 | 56 | #ifdef ELOG_FLASH_USING_BUF_MODE 57 | void elog_flash_flush(void); 58 | #endif 59 | 60 | /* elog_flash_port.c */ 61 | ElogErrCode elog_flash_port_init(void); 62 | void elog_flash_port_output(const char *log, size_t size); 63 | void elog_flash_port_lock(void); 64 | void elog_flash_port_unlock(void); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | 70 | #endif /* __ELOG_FLASH_H__ */ 71 | -------------------------------------------------------------------------------- /User/easylogger/plugins/flash/elog_flash_cfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015, Armink, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: It is the configure head file for this flash log plugin. 26 | * Created on: 2015-07-30 27 | */ 28 | 29 | #ifndef _ELOG_FLASH_CFG_H_ 30 | #define _ELOG_FLASH_CFG_H_ 31 | 32 | /* EasyLogger flash log plugin's using buffer mode */ 33 | #define ELOG_FLASH_USING_BUF_MODE 34 | /* EasyLogger flash log plugin's RAM buffer size */ 35 | #define ELOG_FLASH_BUF_SIZE /* @note you must define it for a value */ 36 | 37 | #endif /* _ELOG_FLASH_CFG_H_ */ 38 | -------------------------------------------------------------------------------- /User/easylogger/plugins/flash/elog_flash_port.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the EasyLogger Library. 3 | * 4 | * Copyright (c) 2015, Armink, 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * 'Software'), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * Function: Portable interface for EasyLogger's flash log pulgin. 26 | * Created on: 2015-07-28 27 | */ 28 | 29 | #include "elog_flash.h" 30 | 31 | /** 32 | * EasyLogger flash log pulgin port initialize 33 | * 34 | * @return result 35 | */ 36 | ElogErrCode elog_flash_port_init(void) { 37 | ElogErrCode result = ELOG_NO_ERR; 38 | 39 | /* add your code here */ 40 | 41 | return result; 42 | } 43 | 44 | /** 45 | * output flash saved log port interface 46 | * 47 | * @param log flash saved log 48 | * @param size log size 49 | */ 50 | void elog_flash_port_output(const char *log, size_t size) { 51 | 52 | /* add your code here */ 53 | 54 | } 55 | 56 | /** 57 | * flash log lock 58 | */ 59 | void elog_flash_port_lock(void) { 60 | 61 | /* add your code here */ 62 | 63 | } 64 | 65 | /** 66 | * flash log unlock 67 | */ 68 | void elog_flash_port_unlock(void) { 69 | 70 | /* add your code here */ 71 | 72 | } -------------------------------------------------------------------------------- /User/lwip/src/apps/altcp_tls/altcp_tls_mbedtls_mem.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Application layered TCP/TLS connection API (to be used from TCPIP thread) 4 | * 5 | * This file contains memory management function prototypes for a TLS layer using mbedTLS. 6 | * 7 | * Memory management contains: 8 | * - allocating/freeing altcp_mbedtls_state_t 9 | * - allocating/freeing memory used in the mbedTLS library 10 | */ 11 | 12 | /* 13 | * Copyright (c) 2017 Simon Goldschmidt 14 | * All rights reserved. 15 | * 16 | * Redistribution and use in source and binary forms, with or without modification, 17 | * are permitted provided that the following conditions are met: 18 | * 19 | * 1. Redistributions of source code must retain the above copyright notice, 20 | * this list of conditions and the following disclaimer. 21 | * 2. Redistributions in binary form must reproduce the above copyright notice, 22 | * this list of conditions and the following disclaimer in the documentation 23 | * and/or other materials provided with the distribution. 24 | * 3. The name of the author may not be used to endorse or promote products 25 | * derived from this software without specific prior written permission. 26 | * 27 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 28 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 29 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 30 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 31 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 32 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 35 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 36 | * OF SUCH DAMAGE. 37 | * 38 | * This file is part of the lwIP TCP/IP stack. 39 | * 40 | * Author: Simon Goldschmidt 41 | * 42 | */ 43 | #ifndef LWIP_HDR_ALTCP_MBEDTLS_MEM_H 44 | #define LWIP_HDR_ALTCP_MBEDTLS_MEM_H 45 | 46 | #include "lwip/opt.h" 47 | 48 | #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ 49 | 50 | #include "lwip/apps/altcp_tls_mbedtls_opts.h" 51 | 52 | #if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS 53 | 54 | #include "altcp_tls_mbedtls_structs.h" 55 | 56 | #ifdef __cplusplus 57 | extern "C" { 58 | #endif 59 | 60 | void altcp_mbedtls_mem_init(void); 61 | altcp_mbedtls_state_t *altcp_mbedtls_alloc(void *conf); 62 | void altcp_mbedtls_free(void *conf, altcp_mbedtls_state_t *state); 63 | void *altcp_mbedtls_alloc_config(size_t size); 64 | void altcp_mbedtls_free_config(void *item); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | 70 | #endif /* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */ 71 | #endif /* LWIP_ALTCP */ 72 | #endif /* LWIP_HDR_ALTCP_MBEDTLS_MEM_H */ 73 | -------------------------------------------------------------------------------- /User/lwip/src/apps/http/fs/404.html: -------------------------------------------------------------------------------- 1 | 2 | lwIP - A Lightweight TCP/IP Stack 3 | 4 | 5 | 6 | 19 |
7 | SICS logo 9 | 10 |

lwIP - A Lightweight TCP/IP Stack

11 |

404 - Page not found

12 |

13 | Sorry, the page you are requesting was not found on this 14 | server. 15 |

16 |
17 |   18 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /User/lwip/src/apps/http/fs/img/sics.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/lwip/src/apps/http/fs/img/sics.gif -------------------------------------------------------------------------------- /User/lwip/src/apps/http/fs/index.html: -------------------------------------------------------------------------------- 1 | 2 | lwIP - A Lightweight TCP/IP Stack 3 | 4 | 5 | 6 | 44 |
7 | SICS logo 9 | 10 |

lwIP - A Lightweight TCP/IP Stack

11 |

12 | The web page you are watching was served by a simple web 13 | server running on top of the lightweight TCP/IP stack lwIP. 15 |

16 |

17 | lwIP is an open source implementation of the TCP/IP 18 | protocol suite that was originally written by Adam Dunkels 20 | of the Swedish Institute of Computer Science but now is 21 | being actively developed by a team of developers 22 | distributed world-wide. Since it's release, lwIP has 23 | spurred a lot of interest and has been ported to several 24 | platforms and operating systems. lwIP can be used either 25 | with or without an underlying OS. 26 |

27 |

28 | The focus of the lwIP TCP/IP implementation is to reduce 29 | the RAM usage while still having a full scale TCP. This 30 | makes lwIP suitable for use in embedded systems with tens 31 | of kilobytes of free RAM and room for around 40 kilobytes 32 | of code ROM. 33 |

34 |

35 | More information about lwIP can be found at the lwIP 36 | homepage at http://savannah.nongnu.org/projects/lwip/ 38 | or at the lwIP wiki at http://lwip.wikia.com/. 40 |

41 |
42 |   43 |
45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /User/lwip/src/apps/http/fsdata.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef LWIP_FSDATA_H 33 | #define LWIP_FSDATA_H 34 | 35 | #include "lwip/apps/httpd_opts.h" 36 | #include "lwip/apps/fs.h" 37 | 38 | /* THIS FILE IS DEPRECATED AND WILL BE REMOVED IN THE FUTURE */ 39 | /* content was moved to fs.h to simplify #include structure */ 40 | 41 | #endif /* LWIP_FSDATA_H */ 42 | -------------------------------------------------------------------------------- /User/lwip/src/apps/http/makefsdata/makefsdata: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | open(OUTPUT, "> fsdata.c"); 4 | 5 | chdir("fs"); 6 | open(FILES, "find . -type f |"); 7 | 8 | while($file = ) { 9 | 10 | # Do not include files in CVS directories nor backup files. 11 | if($file =~ /(CVS|~)/) { 12 | next; 13 | } 14 | 15 | chop($file); 16 | 17 | open(HEADER, "> /tmp/header") || die $!; 18 | if($file =~ /404/) { 19 | print(HEADER "HTTP/1.0 404 File not found\r\n"); 20 | } else { 21 | print(HEADER "HTTP/1.0 200 OK\r\n"); 22 | } 23 | print(HEADER "Server: lwIP/pre-0.6 (http://www.sics.se/~adam/lwip/)\r\n"); 24 | if($file =~ /\.html$/) { 25 | print(HEADER "Content-type: text/html\r\n"); 26 | } elsif($file =~ /\.gif$/) { 27 | print(HEADER "Content-type: image/gif\r\n"); 28 | } elsif($file =~ /\.png$/) { 29 | print(HEADER "Content-type: image/png\r\n"); 30 | } elsif($file =~ /\.jpg$/) { 31 | print(HEADER "Content-type: image/jpeg\r\n"); 32 | } elsif($file =~ /\.class$/) { 33 | print(HEADER "Content-type: application/octet-stream\r\n"); 34 | } elsif($file =~ /\.ram$/) { 35 | print(HEADER "Content-type: audio/x-pn-realaudio\r\n"); 36 | } else { 37 | print(HEADER "Content-type: text/plain\r\n"); 38 | } 39 | print(HEADER "\r\n"); 40 | close(HEADER); 41 | 42 | unless($file =~ /\.plain$/ || $file =~ /cgi/) { 43 | system("cat /tmp/header $file > /tmp/file"); 44 | } else { 45 | system("cp $file /tmp/file"); 46 | } 47 | 48 | open(FILE, "/tmp/file"); 49 | unlink("/tmp/file"); 50 | unlink("/tmp/header"); 51 | 52 | $file =~ s/\.//; 53 | $fvar = $file; 54 | $fvar =~ s-/-_-g; 55 | $fvar =~ s-\.-_-g; 56 | print(OUTPUT "static const unsigned char data".$fvar."[] = {\n"); 57 | print(OUTPUT "\t/* $file */\n\t"); 58 | for($j = 0; $j < length($file); $j++) { 59 | printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1))); 60 | } 61 | printf(OUTPUT "0,\n"); 62 | 63 | 64 | $i = 0; 65 | while(read(FILE, $data, 1)) { 66 | if($i == 0) { 67 | print(OUTPUT "\t"); 68 | } 69 | printf(OUTPUT "%#02x, ", unpack("C", $data)); 70 | $i++; 71 | if($i == 10) { 72 | print(OUTPUT "\n"); 73 | $i = 0; 74 | } 75 | } 76 | print(OUTPUT "};\n\n"); 77 | close(FILE); 78 | push(@fvars, $fvar); 79 | push(@files, $file); 80 | } 81 | 82 | for($i = 0; $i < @fvars; $i++) { 83 | $file = $files[$i]; 84 | $fvar = $fvars[$i]; 85 | 86 | if($i == 0) { 87 | $prevfile = "NULL"; 88 | } else { 89 | $prevfile = "file" . $fvars[$i - 1]; 90 | } 91 | print(OUTPUT "const struct fsdata_file file".$fvar."[] = {{$prevfile, data$fvar, "); 92 | print(OUTPUT "data$fvar + ". (length($file) + 1) .", "); 93 | print(OUTPUT "sizeof(data$fvar) - ". (length($file) + 1) ."}};\n\n"); 94 | } 95 | 96 | print(OUTPUT "#define FS_ROOT file$fvars[$i - 1]\n\n"); 97 | print(OUTPUT "#define FS_NUMFILES $i\n"); 98 | -------------------------------------------------------------------------------- /User/lwip/src/apps/http/makefsdata/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains a script ('makefsdata') to create C code suitable for 2 | httpd for given html pages (or other files) in a directory. 3 | 4 | There is also a plain C console application doing the same and extended a bit. 5 | 6 | Usage: htmlgen [targetdir] [-s] [-i]s 7 | targetdir: relative or absolute path to files to convert 8 | switch -s: toggle processing of subdirectories (default is on) 9 | switch -e: exclude HTTP header from file (header is created at runtime, default is on) 10 | switch -11: include HTTP 1.1 header (1.0 is default) 11 | 12 | if targetdir not specified, makefsdata will attempt to 13 | process files in subdirectory 'fs'. 14 | -------------------------------------------------------------------------------- /User/lwip/src/apps/snmp/snmp_pbuf_stream.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * SNMP pbuf stream wrapper (internal API, do not use in client code). 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Martin Hentschel 35 | * 36 | */ 37 | 38 | #ifndef LWIP_HDR_APPS_SNMP_PBUF_STREAM_H 39 | #define LWIP_HDR_APPS_SNMP_PBUF_STREAM_H 40 | 41 | #include "lwip/apps/snmp_opts.h" 42 | 43 | #if LWIP_SNMP 44 | 45 | #include "lwip/err.h" 46 | #include "lwip/pbuf.h" 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | struct snmp_pbuf_stream { 53 | struct pbuf *pbuf; 54 | u16_t offset; 55 | u16_t length; 56 | }; 57 | 58 | err_t snmp_pbuf_stream_init(struct snmp_pbuf_stream *pbuf_stream, struct pbuf *p, u16_t offset, u16_t length); 59 | err_t snmp_pbuf_stream_read(struct snmp_pbuf_stream *pbuf_stream, u8_t *data); 60 | err_t snmp_pbuf_stream_write(struct snmp_pbuf_stream *pbuf_stream, u8_t data); 61 | err_t snmp_pbuf_stream_writebuf(struct snmp_pbuf_stream *pbuf_stream, const void *buf, u16_t buf_len); 62 | err_t snmp_pbuf_stream_writeto(struct snmp_pbuf_stream *pbuf_stream, struct snmp_pbuf_stream *target_pbuf_stream, u16_t len); 63 | err_t snmp_pbuf_stream_seek(struct snmp_pbuf_stream *pbuf_stream, s32_t offset); 64 | err_t snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream *pbuf_stream, u32_t offset); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | 70 | #endif /* LWIP_SNMP */ 71 | 72 | #endif /* LWIP_HDR_APPS_SNMP_PBUF_STREAM_H */ 73 | -------------------------------------------------------------------------------- /User/lwip/src/apps/snmp/snmpv3_priv.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Additional SNMPv3 functionality RFC3414 and RFC3826 (internal API, do not use in client code). 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2016 Elias Oenal. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * Author: Elias Oenal 33 | */ 34 | 35 | #ifndef LWIP_HDR_APPS_SNMP_V3_PRIV_H 36 | #define LWIP_HDR_APPS_SNMP_V3_PRIV_H 37 | 38 | #include "lwip/apps/snmp_opts.h" 39 | 40 | #if LWIP_SNMP && LWIP_SNMP_V3 41 | 42 | #include "lwip/apps/snmpv3.h" 43 | #include "snmp_pbuf_stream.h" 44 | 45 | /* According to RFC 3411 */ 46 | #define SNMP_V3_MAX_ENGINE_ID_LENGTH 32 47 | #define SNMP_V3_MAX_USER_LENGTH 32 48 | 49 | #define SNMP_V3_MAX_AUTH_PARAM_LENGTH 12 50 | #define SNMP_V3_MAX_PRIV_PARAM_LENGTH 8 51 | 52 | #define SNMP_V3_MD5_LEN 16 53 | #define SNMP_V3_SHA_LEN 20 54 | 55 | typedef enum { 56 | SNMP_V3_PRIV_MODE_DECRYPT = 0, 57 | SNMP_V3_PRIV_MODE_ENCRYPT = 1 58 | } snmpv3_priv_mode_t; 59 | 60 | s32_t snmpv3_get_engine_boots_internal(void); 61 | err_t snmpv3_auth(struct snmp_pbuf_stream *stream, u16_t length, const u8_t *key, snmpv3_auth_algo_t algo, u8_t *hmac_out); 62 | err_t snmpv3_crypt(struct snmp_pbuf_stream *stream, u16_t length, const u8_t *key, 63 | const u8_t *priv_param, const u32_t engine_boots, const u32_t engine_time, snmpv3_priv_algo_t algo, snmpv3_priv_mode_t mode); 64 | err_t snmpv3_build_priv_param(u8_t *priv_param); 65 | void snmpv3_enginetime_timer(void *arg); 66 | 67 | #endif 68 | 69 | #endif /* LWIP_HDR_APPS_SNMP_V3_PRIV_H */ 70 | -------------------------------------------------------------------------------- /User/lwip/src/core/ipv6/inet6.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * 4 | * INET v6 addresses. 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2010 Inico Technologies Ltd. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Ivan Delamer 36 | * 37 | * 38 | * Please coordinate changes and requests with Ivan Delamer 39 | * 40 | */ 41 | 42 | #include "lwip/opt.h" 43 | 44 | #if LWIP_IPV6 && LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ 45 | 46 | #include "lwip/def.h" 47 | #include "lwip/inet.h" 48 | 49 | /** This variable is initialized by the system to contain the wildcard IPv6 address. 50 | */ 51 | const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; 52 | 53 | #endif /* LWIP_IPV6 */ 54 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/bpstruct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #if defined(__IAR_SYSTEMS_ICC__) 34 | #pragma pack(1) 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/cc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/lwip/src/include/arch/cc.h -------------------------------------------------------------------------------- /User/lwip/src/include/arch/cpu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __CPU_H__ 33 | #define __CPU_H__ 34 | 35 | #define BYTE_ORDER LITTLE_ENDIAN 36 | 37 | #endif /* __CPU_H__ */ 38 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/epstruct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #if defined(__IAR_SYSTEMS_ICC__) 34 | #pragma pack() 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __ARCH_INIT_H__ 33 | #define __ARCH_INIT_H__ 34 | 35 | #define TCPIP_INIT_DONE(arg) tcpip_init_done(arg) 36 | 37 | void tcpip_init_done(void *); 38 | int wait_for_tcpip_init(void); 39 | 40 | #endif /* __ARCH_INIT_H__ */ 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/lib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LIB_H__ 33 | #define __LIB_H__ 34 | 35 | #include 36 | 37 | 38 | #endif /* __LIB_H__ */ 39 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __PERF_H__ 33 | #define __PERF_H__ 34 | 35 | #define PERF_START /* null definition */ 36 | #define PERF_STOP(x) /* null definition */ 37 | 38 | #endif /* __PERF_H__ */ 39 | -------------------------------------------------------------------------------- /User/lwip/src/include/arch/sys_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __SYS_RTXC_H__ 33 | #define __SYS_RTXC_H__ 34 | 35 | #include "FreeRTOS.h" 36 | #include "task.h" 37 | #include "queue.h" 38 | #include "semphr.h" 39 | 40 | #define SYS_MBOX_NULL (xQueueHandle)0 41 | #define SYS_SEM_NULL (xSemaphoreHandle)0 42 | #define SYS_DEFAULT_THREAD_STACK_DEPTH configMINIMAL_STACK_SIZE 43 | 44 | typedef xSemaphoreHandle sys_sem_t; 45 | typedef xSemaphoreHandle sys_mutex_t; 46 | typedef xQueueHandle sys_mbox_t; 47 | typedef xTaskHandle sys_thread_t; 48 | 49 | typedef struct _sys_arch_state_t 50 | { 51 | // Task creation data. 52 | char cTaskName[configMAX_TASK_NAME_LEN]; 53 | unsigned short nStackDepth; 54 | unsigned short nTaskCount; 55 | } sys_arch_state_t; 56 | 57 | 58 | 59 | //extern sys_arch_state_t s_sys_arch_state; 60 | 61 | //void sys_set_default_state(); 62 | //void sys_set_state(signed char *pTaskName, unsigned short nStackSize); 63 | 64 | /* Message queue constants. */ 65 | #define archMAX_MESG_QUEUE_LENGTH ( 12 ) 66 | #endif /* __SYS_RTXC_H__ */ 67 | 68 | -------------------------------------------------------------------------------- /User/lwip/src/include/compat/posix/arpa/inet.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/sockets.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/sockets.h" 34 | -------------------------------------------------------------------------------- /User/lwip/src/include/compat/posix/net/if.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/if_api.h. 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | */ 35 | 36 | #include "lwip/if_api.h" 37 | -------------------------------------------------------------------------------- /User/lwip/src/include/compat/posix/netdb.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/netdb.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/netdb.h" 34 | -------------------------------------------------------------------------------- /User/lwip/src/include/compat/posix/sys/socket.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/sockets.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/sockets.h" 34 | -------------------------------------------------------------------------------- /User/lwip/src/include/compat/stdc/errno.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix/stdc wrapper for lwip/errno.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/errno.h" 34 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/altcp_tcp.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Application layered TCP connection API (to be used from TCPIP thread)\n 4 | * This interface mimics the tcp callback API to the application while preventing 5 | * direct linking (much like virtual functions). 6 | * This way, an application can make use of other application layer protocols 7 | * on top of TCP without knowing the details (e.g. TLS, proxy connection). 8 | * 9 | * This file contains the base implementation calling into tcp. 10 | */ 11 | 12 | /* 13 | * Copyright (c) 2017 Simon Goldschmidt 14 | * All rights reserved. 15 | * 16 | * Redistribution and use in source and binary forms, with or without modification, 17 | * are permitted provided that the following conditions are met: 18 | * 19 | * 1. Redistributions of source code must retain the above copyright notice, 20 | * this list of conditions and the following disclaimer. 21 | * 2. Redistributions in binary form must reproduce the above copyright notice, 22 | * this list of conditions and the following disclaimer in the documentation 23 | * and/or other materials provided with the distribution. 24 | * 3. The name of the author may not be used to endorse or promote products 25 | * derived from this software without specific prior written permission. 26 | * 27 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 28 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 29 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 30 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 31 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 32 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 35 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 36 | * OF SUCH DAMAGE. 37 | * 38 | * This file is part of the lwIP TCP/IP stack. 39 | * 40 | * Author: Simon Goldschmidt 41 | * 42 | */ 43 | #ifndef LWIP_HDR_ALTCP_TCP_H 44 | #define LWIP_HDR_ALTCP_TCP_H 45 | 46 | #include "lwip/opt.h" 47 | 48 | #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ 49 | 50 | #include "lwip/altcp.h" 51 | 52 | #ifdef __cplusplus 53 | extern "C" { 54 | #endif 55 | 56 | struct altcp_pcb *altcp_tcp_new_ip_type(u8_t ip_type); 57 | 58 | #define altcp_tcp_new() altcp_tcp_new_ip_type(IPADDR_TYPE_V4) 59 | #define altcp_tcp_new_ip6() altcp_tcp_new_ip_type(IPADDR_TYPE_V6) 60 | 61 | struct altcp_pcb *altcp_tcp_alloc(void *arg, u8_t ip_type); 62 | 63 | struct tcp_pcb; 64 | struct altcp_pcb *altcp_tcp_wrap(struct tcp_pcb *tpcb); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | 70 | #endif /* LWIP_ALTCP */ 71 | 72 | #endif /* LWIP_HDR_ALTCP_TCP_H */ 73 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/FILES: -------------------------------------------------------------------------------- 1 | This directory contains application headers. 2 | Every application shall provide one api file APP.h and optionally one options file APP_opts.h 3 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/altcp_tls_mbedtls_opts.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Application layered TCP/TLS connection API (to be used from TCPIP thread) 4 | * 5 | * This file contains options for an mbedtls port of the TLS layer. 6 | */ 7 | 8 | /* 9 | * Copyright (c) 2017 Simon Goldschmidt 10 | * All rights reserved. 11 | * 12 | * Redistribution and use in source and binary forms, with or without modification, 13 | * are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, 18 | * this list of conditions and the following disclaimer in the documentation 19 | * and/or other materials provided with the distribution. 20 | * 3. The name of the author may not be used to endorse or promote products 21 | * derived from this software without specific prior written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 24 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 25 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 26 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 28 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 31 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 32 | * OF SUCH DAMAGE. 33 | * 34 | * This file is part of the lwIP TCP/IP stack. 35 | * 36 | * Author: Simon Goldschmidt 37 | * 38 | */ 39 | #ifndef LWIP_HDR_ALTCP_TLS_OPTS_H 40 | #define LWIP_HDR_ALTCP_TLS_OPTS_H 41 | 42 | #include "lwip/opt.h" 43 | 44 | #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ 45 | 46 | /** LWIP_ALTCP_TLS_MBEDTLS==1: use mbedTLS for TLS support for altcp API 47 | * mbedtls include directory must be reachable via include search path 48 | */ 49 | #ifndef LWIP_ALTCP_TLS_MBEDTLS 50 | #define LWIP_ALTCP_TLS_MBEDTLS 0 51 | #endif 52 | 53 | /** Configure debug level of this file */ 54 | #ifndef ALTCP_MBEDTLS_DEBUG 55 | #define ALTCP_MBEDTLS_DEBUG LWIP_DBG_OFF 56 | #endif 57 | 58 | /** Set a session timeout in seconds for the basic session cache 59 | * ATTENTION: Using a session cache can lower security by reusing keys! 60 | */ 61 | #ifndef ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS 62 | #define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS 0 63 | #endif 64 | 65 | #endif /* LWIP_ALTCP */ 66 | 67 | #endif /* LWIP_HDR_ALTCP_TLS_OPTS_H */ 68 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/mdns_opts.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * MDNS responder 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2015 Verisure Innovation AB 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Erik Ekman 35 | * 36 | */ 37 | 38 | #ifndef LWIP_HDR_APPS_MDNS_OPTS_H 39 | #define LWIP_HDR_APPS_MDNS_OPTS_H 40 | 41 | #include "lwip/opt.h" 42 | 43 | /** 44 | * @defgroup mdns_opts Options 45 | * @ingroup mdns 46 | * @{ 47 | */ 48 | 49 | /** 50 | * LWIP_MDNS_RESPONDER==1: Turn on multicast DNS module. UDP must be available for MDNS 51 | * transport. IGMP is needed for IPv4 multicast. 52 | */ 53 | #ifndef LWIP_MDNS_RESPONDER 54 | #define LWIP_MDNS_RESPONDER 0 55 | #endif /* LWIP_MDNS_RESPONDER */ 56 | 57 | /** The maximum number of services per netif */ 58 | #ifndef MDNS_MAX_SERVICES 59 | #define MDNS_MAX_SERVICES 1 60 | #endif 61 | 62 | /** MDNS_RESP_USENETIF_EXTCALLBACK==1: register an ext_callback on the netif 63 | * to automatically restart probing/announcing on status or address change. 64 | */ 65 | #ifndef MDNS_RESP_USENETIF_EXTCALLBACK 66 | #define MDNS_RESP_USENETIF_EXTCALLBACK LWIP_NETIF_EXT_STATUS_CALLBACK 67 | #endif 68 | 69 | /** 70 | * MDNS_DEBUG: Enable debugging for multicast DNS. 71 | */ 72 | #ifndef MDNS_DEBUG 73 | #define MDNS_DEBUG LWIP_DBG_OFF 74 | #endif 75 | 76 | /** 77 | * @} 78 | */ 79 | 80 | #endif /* LWIP_HDR_APPS_MDNS_OPTS_H */ 81 | 82 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/mdns_priv.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * MDNS responder private definitions 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2015 Verisure Innovation AB 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Erik Ekman 35 | * 36 | */ 37 | #ifndef LWIP_HDR_MDNS_PRIV_H 38 | #define LWIP_HDR_MDNS_PRIV_H 39 | 40 | #include "lwip/apps/mdns_opts.h" 41 | #include "lwip/pbuf.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | #if LWIP_MDNS_RESPONDER 48 | 49 | /* Domain struct and methods - visible for unit tests */ 50 | 51 | #define MDNS_DOMAIN_MAXLEN 256 52 | #define MDNS_READNAME_ERROR 0xFFFF 53 | 54 | struct mdns_domain { 55 | /* Encoded domain name */ 56 | u8_t name[MDNS_DOMAIN_MAXLEN]; 57 | /* Total length of domain name, including zero */ 58 | u16_t length; 59 | /* Set if compression of this domain is not allowed */ 60 | u8_t skip_compression; 61 | }; 62 | 63 | err_t mdns_domain_add_label(struct mdns_domain *domain, const char *label, u8_t len); 64 | u16_t mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain); 65 | int mdns_domain_eq(struct mdns_domain *a, struct mdns_domain *b); 66 | u16_t mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain); 67 | 68 | #endif /* LWIP_MDNS_RESPONDER */ 69 | 70 | #ifdef __cplusplus 71 | } 72 | #endif 73 | 74 | #endif /* LWIP_HDR_MDNS_PRIV_H */ 75 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/netbiosns.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * NETBIOS name service responder 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | #ifndef LWIP_HDR_APPS_NETBIOS_H 33 | #define LWIP_HDR_APPS_NETBIOS_H 34 | 35 | #include "lwip/apps/netbiosns_opts.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | void netbiosns_init(void); 42 | #ifndef NETBIOS_LWIP_NAME 43 | void netbiosns_set_name(const char* hostname); 44 | #endif 45 | void netbiosns_stop(void); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* LWIP_HDR_APPS_NETBIOS_H */ 52 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/netbiosns_opts.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * NETBIOS name service responder options 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | #ifndef LWIP_HDR_APPS_NETBIOS_OPTS_H 33 | #define LWIP_HDR_APPS_NETBIOS_OPTS_H 34 | 35 | #include "lwip/opt.h" 36 | 37 | /** 38 | * @defgroup netbiosns_opts Options 39 | * @ingroup netbiosns 40 | * @{ 41 | */ 42 | 43 | /** NetBIOS name of lwip device 44 | * This must be uppercase until NETBIOS_STRCMP() is defined to a string 45 | * comparision function that is case insensitive. 46 | * If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME): 47 | * (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "") 48 | * 49 | * If this is not defined, netbiosns_set_name() can be called at runtime to change the name. 50 | */ 51 | #ifdef __DOXYGEN__ 52 | #define NETBIOS_LWIP_NAME "NETBIOSLWIPDEV" 53 | #endif 54 | 55 | /** Respond to NetBIOS name queries 56 | * Default is disabled 57 | */ 58 | #if !defined LWIP_NETBIOS_RESPOND_NAME_QUERY || defined __DOXYGEN__ 59 | #define LWIP_NETBIOS_RESPOND_NAME_QUERY 0 60 | #endif 61 | 62 | /** 63 | * @} 64 | */ 65 | 66 | #endif /* LWIP_HDR_APPS_NETBIOS_OPTS_H */ 67 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/smtp_opts.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_APPS_SMTP_OPTS_H 2 | #define LWIP_HDR_APPS_SMTP_OPTS_H 3 | 4 | #include "lwip/opt.h" 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | /** 11 | * @defgroup smtp_opts Options 12 | * @ingroup smtp 13 | * 14 | * @{ 15 | */ 16 | 17 | /** Set this to 1 to enable data handler callback on BODY */ 18 | #ifndef SMTP_BODYDH 19 | #define SMTP_BODYDH 0 20 | #endif 21 | 22 | /** SMTP_DEBUG: Enable debugging for SNTP. */ 23 | #ifndef SMTP_DEBUG 24 | #define SMTP_DEBUG LWIP_DBG_OFF 25 | #endif 26 | 27 | /** Maximum length reserved for server name including terminating 0 byte */ 28 | #ifndef SMTP_MAX_SERVERNAME_LEN 29 | #define SMTP_MAX_SERVERNAME_LEN 256 30 | #endif 31 | 32 | /** Maximum length reserved for username */ 33 | #ifndef SMTP_MAX_USERNAME_LEN 34 | #define SMTP_MAX_USERNAME_LEN 32 35 | #endif 36 | 37 | /** Maximum length reserved for password */ 38 | #ifndef SMTP_MAX_PASS_LEN 39 | #define SMTP_MAX_PASS_LEN 32 40 | #endif 41 | 42 | /** Set this to 0 if you know the authentication data will not change 43 | * during the smtp session, which saves some heap space. */ 44 | #ifndef SMTP_COPY_AUTHDATA 45 | #define SMTP_COPY_AUTHDATA 1 46 | #endif 47 | 48 | /** Set this to 0 to save some code space if you know for sure that all data 49 | * passed to this module conforms to the requirements in the SMTP RFC. 50 | * WARNING: use this with care! 51 | */ 52 | #ifndef SMTP_CHECK_DATA 53 | #define SMTP_CHECK_DATA 1 54 | #endif 55 | 56 | /** Set this to 1 to enable AUTH PLAIN support */ 57 | #ifndef SMTP_SUPPORT_AUTH_PLAIN 58 | #define SMTP_SUPPORT_AUTH_PLAIN 1 59 | #endif 60 | 61 | /** Set this to 1 to enable AUTH LOGIN support */ 62 | #ifndef SMTP_SUPPORT_AUTH_LOGIN 63 | #define SMTP_SUPPORT_AUTH_LOGIN 1 64 | #endif 65 | 66 | /* Memory allocation/deallocation can be overridden... */ 67 | #ifndef SMTP_STATE_MALLOC 68 | #define SMTP_STATE_MALLOC(size) mem_malloc(size) 69 | #define SMTP_STATE_FREE(ptr) mem_free(ptr) 70 | #endif 71 | 72 | /** 73 | * @} 74 | */ 75 | 76 | #ifdef __cplusplus 77 | } 78 | #endif 79 | 80 | #endif /* SMTP_OPTS_H */ 81 | 82 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/snmp_snmpv2_framework.h: -------------------------------------------------------------------------------- 1 | /* 2 | Generated by LwipMibCompiler 3 | */ 4 | 5 | #ifndef LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H 6 | #define LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H 7 | 8 | #include "lwip/apps/snmp_opts.h" 9 | #if LWIP_SNMP 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif /* __cplusplus */ 14 | 15 | #include "lwip/apps/snmp_core.h" 16 | 17 | extern const struct snmp_obj_id usmNoAuthProtocol; 18 | extern const struct snmp_obj_id usmHMACMD5AuthProtocol; 19 | extern const struct snmp_obj_id usmHMACSHAAuthProtocol; 20 | 21 | extern const struct snmp_obj_id usmNoPrivProtocol; 22 | extern const struct snmp_obj_id usmDESPrivProtocol; 23 | extern const struct snmp_obj_id usmAESPrivProtocol; 24 | 25 | extern const struct snmp_mib snmpframeworkmib; 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif /* __cplusplus */ 30 | 31 | #endif /* LWIP_SNMP */ 32 | #endif /* LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H */ 33 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/apps/snmp_snmpv2_usm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Generated by LwipMibCompiler 3 | */ 4 | 5 | #ifndef LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H 6 | #define LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H 7 | 8 | #include "lwip/apps/snmp_opts.h" 9 | #if LWIP_SNMP 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif /* __cplusplus */ 14 | 15 | #include "lwip/apps/snmp_core.h" 16 | 17 | extern const struct snmp_mib snmpusmmib; 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif /* __cplusplus */ 22 | 23 | #endif /* LWIP_SNMP */ 24 | #endif /* LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H */ 25 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/ethip6.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * 4 | * Ethernet output for IPv6. Uses ND tables for link-layer addressing. 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2010 Inico Technologies Ltd. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Ivan Delamer 36 | * 37 | * 38 | * Please coordinate changes and requests with Ivan Delamer 39 | * 40 | */ 41 | 42 | #ifndef LWIP_HDR_ETHIP6_H 43 | #define LWIP_HDR_ETHIP6_H 44 | 45 | #include "lwip/opt.h" 46 | 47 | #if LWIP_IPV6 && LWIP_ETHERNET /* don't build if not configured for use in lwipopts.h */ 48 | 49 | #include "lwip/pbuf.h" 50 | #include "lwip/ip6.h" 51 | #include "lwip/ip6_addr.h" 52 | #include "lwip/netif.h" 53 | 54 | 55 | #ifdef __cplusplus 56 | extern "C" { 57 | #endif 58 | 59 | 60 | err_t ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #endif /* LWIP_IPV6 && LWIP_ETHERNET */ 67 | 68 | #endif /* LWIP_HDR_ETHIP6_H */ 69 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/icmp6.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * 4 | * IPv6 version of ICMP, as per RFC 4443. 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2010 Inico Technologies Ltd. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Ivan Delamer 36 | * 37 | * 38 | * Please coordinate changes and requests with Ivan Delamer 39 | * 40 | */ 41 | #ifndef LWIP_HDR_ICMP6_H 42 | #define LWIP_HDR_ICMP6_H 43 | 44 | #include "lwip/opt.h" 45 | #include "lwip/pbuf.h" 46 | #include "lwip/ip6_addr.h" 47 | #include "lwip/netif.h" 48 | #include "lwip/prot/icmp6.h" 49 | 50 | #ifdef __cplusplus 51 | extern "C" { 52 | #endif 53 | 54 | #if LWIP_ICMP6 && LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ 55 | 56 | void icmp6_input(struct pbuf *p, struct netif *inp); 57 | void icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c); 58 | void icmp6_packet_too_big(struct pbuf *p, u32_t mtu); 59 | void icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c); 60 | void icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, 61 | const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr); 62 | void icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer); 63 | 64 | #endif /* LWIP_ICMP6 && LWIP_IPV6 */ 65 | 66 | 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | 71 | 72 | #endif /* LWIP_HDR_ICMP6_H */ 73 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/if_api.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Interface Identification APIs from: 4 | * RFC 3493: Basic Socket Interface Extensions for IPv6 5 | * Section 4: Interface Identification 6 | */ 7 | 8 | /* 9 | * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. 10 | * All rights reserved. 11 | * 12 | * Redistribution and use in source and binary forms, with or without modification, 13 | * are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, 18 | * this list of conditions and the following disclaimer in the documentation 19 | * and/or other materials provided with the distribution. 20 | * 3. The name of the author may not be used to endorse or promote products 21 | * derived from this software without specific prior written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 24 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 25 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 26 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 28 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 31 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 32 | * OF SUCH DAMAGE. 33 | * 34 | * This file is part of the lwIP TCP/IP stack. 35 | * 36 | * Author: Joel Cunningham 37 | * 38 | */ 39 | #ifndef LWIP_HDR_IF_H 40 | #define LWIP_HDR_IF_H 41 | 42 | #include "lwip/opt.h" 43 | 44 | #if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ 45 | 46 | #include "lwip/netif.h" 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | #define IF_NAMESIZE NETIF_NAMESIZE 53 | 54 | char * lwip_if_indextoname(unsigned int ifindex, char *ifname); 55 | unsigned int lwip_if_nametoindex(const char *ifname); 56 | 57 | #if LWIP_COMPAT_SOCKETS 58 | #define if_indextoname(ifindex, ifname) lwip_if_indextoname(ifindex,ifname) 59 | #define if_nametoindex(ifname) lwip_if_nametoindex(ifname) 60 | #endif /* LWIP_COMPAT_SOCKETS */ 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #endif /* LWIP_SOCKET */ 67 | 68 | #endif /* LWIP_HDR_IF_H */ 69 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/mem.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Heap API 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Adam Dunkels 35 | * 36 | */ 37 | #ifndef LWIP_HDR_MEM_H 38 | #define LWIP_HDR_MEM_H 39 | 40 | #include "lwip/opt.h" 41 | 42 | #ifdef __cplusplus 43 | extern "C" { 44 | #endif 45 | 46 | #if MEM_LIBC_MALLOC 47 | 48 | #include "lwip/arch.h" 49 | 50 | typedef size_t mem_size_t; 51 | #define MEM_SIZE_F SZT_F 52 | 53 | #elif MEM_USE_POOLS 54 | 55 | typedef u16_t mem_size_t; 56 | #define MEM_SIZE_F U16_F 57 | 58 | #else 59 | 60 | /* MEM_SIZE would have to be aligned, but using 64000 here instead of 61 | * 65535 leaves some room for alignment... 62 | */ 63 | #if MEM_SIZE > 64000L 64 | typedef u32_t mem_size_t; 65 | #define MEM_SIZE_F U32_F 66 | #else 67 | typedef u16_t mem_size_t; 68 | #define MEM_SIZE_F U16_F 69 | #endif /* MEM_SIZE > 64000 */ 70 | #endif 71 | 72 | void mem_init(void); 73 | void *mem_trim(void *mem, mem_size_t size); 74 | void *mem_malloc(mem_size_t size); 75 | void *mem_calloc(mem_size_t count, mem_size_t size); 76 | void mem_free(void *mem); 77 | 78 | #ifdef __cplusplus 79 | } 80 | #endif 81 | 82 | #endif /* LWIP_HDR_MEM_H */ 83 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/priv/raw_priv.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * raw API internal implementations (do not use in application code) 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Adam Dunkels 35 | * 36 | */ 37 | #ifndef LWIP_HDR_RAW_PRIV_H 38 | #define LWIP_HDR_RAW_PRIV_H 39 | 40 | #include "lwip/opt.h" 41 | 42 | #if LWIP_RAW /* don't build if not configured for use in lwipopts.h */ 43 | 44 | #include "lwip/raw.h" 45 | 46 | #ifdef __cplusplus 47 | extern "C" { 48 | #endif 49 | 50 | /** return codes for raw_input */ 51 | typedef enum raw_input_state 52 | { 53 | RAW_INPUT_NONE = 0, /* pbuf did not match any pcbs */ 54 | RAW_INPUT_EATEN, /* pbuf handed off and delivered to pcb */ 55 | RAW_INPUT_DELIVERED /* pbuf only delivered to pcb (pbuf can still be referenced) */ 56 | } raw_input_state_t; 57 | 58 | /* The following functions are the lower layer interface to RAW. */ 59 | raw_input_state_t raw_input(struct pbuf *p, struct netif *inp); 60 | 61 | void raw_netif_ip_addr_changed(const ip_addr_t* old_addr, const ip_addr_t* new_addr); 62 | 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | 67 | #endif /* LWIP_RAW */ 68 | 69 | #endif /* LWIP_HDR_RAW_PRIV_H */ 70 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/prot/ip.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * IP protocol definitions 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Adam Dunkels 35 | * 36 | */ 37 | #ifndef LWIP_HDR_PROT_IP_H 38 | #define LWIP_HDR_PROT_IP_H 39 | 40 | #include "lwip/arch.h" 41 | 42 | #ifdef __cplusplus 43 | extern "C" { 44 | #endif 45 | 46 | #define IP_PROTO_ICMP 1 47 | #define IP_PROTO_IGMP 2 48 | #define IP_PROTO_UDP 17 49 | #define IP_PROTO_UDPLITE 136 50 | #define IP_PROTO_TCP 6 51 | 52 | /** This operates on a void* by loading the first byte */ 53 | #define IP_HDR_GET_VERSION(ptr) ((*(u8_t*)(ptr)) >> 4) 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | 59 | #endif /* LWIP_HDR_PROT_IP_H */ 60 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/prot/mld6.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * MLD6 protocol definitions 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Adam Dunkels 35 | * 36 | */ 37 | #ifndef LWIP_HDR_PROT_MLD6_H 38 | #define LWIP_HDR_PROT_MLD6_H 39 | 40 | #include "lwip/arch.h" 41 | #include "lwip/prot/ip6.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | #define MLD6_HBH_HLEN 8 48 | /** Multicast listener report/query/done message header. */ 49 | #ifdef PACK_STRUCT_USE_INCLUDES 50 | # include "arch/bpstruct.h" 51 | #endif 52 | PACK_STRUCT_BEGIN 53 | struct mld_header { 54 | PACK_STRUCT_FLD_8(u8_t type); 55 | PACK_STRUCT_FLD_8(u8_t code); 56 | PACK_STRUCT_FIELD(u16_t chksum); 57 | PACK_STRUCT_FIELD(u16_t max_resp_delay); 58 | PACK_STRUCT_FIELD(u16_t reserved); 59 | PACK_STRUCT_FLD_S(ip6_addr_p_t multicast_address); 60 | /* Options follow. */ 61 | } PACK_STRUCT_STRUCT; 62 | PACK_STRUCT_END 63 | #ifdef PACK_STRUCT_USE_INCLUDES 64 | # include "arch/epstruct.h" 65 | #endif 66 | 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | 71 | #endif /* LWIP_HDR_PROT_MLD6_H */ 72 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/prot/udp.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * UDP protocol definitions 4 | */ 5 | 6 | /* 7 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without modification, 11 | * are permitted provided that the following conditions are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright notice, 14 | * this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, 16 | * this list of conditions and the following disclaimer in the documentation 17 | * and/or other materials provided with the distribution. 18 | * 3. The name of the author may not be used to endorse or promote products 19 | * derived from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 22 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 24 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 30 | * OF SUCH DAMAGE. 31 | * 32 | * This file is part of the lwIP TCP/IP stack. 33 | * 34 | * Author: Adam Dunkels 35 | * 36 | */ 37 | #ifndef LWIP_HDR_PROT_UDP_H 38 | #define LWIP_HDR_PROT_UDP_H 39 | 40 | #include "lwip/arch.h" 41 | 42 | #ifdef __cplusplus 43 | extern "C" { 44 | #endif 45 | 46 | #define UDP_HLEN 8 47 | 48 | /* Fields are (of course) in network byte order. */ 49 | #ifdef PACK_STRUCT_USE_INCLUDES 50 | # include "arch/bpstruct.h" 51 | #endif 52 | PACK_STRUCT_BEGIN 53 | struct udp_hdr { 54 | PACK_STRUCT_FIELD(u16_t src); 55 | PACK_STRUCT_FIELD(u16_t dest); /* src/dest UDP ports */ 56 | PACK_STRUCT_FIELD(u16_t len); 57 | PACK_STRUCT_FIELD(u16_t chksum); 58 | } PACK_STRUCT_STRUCT; 59 | PACK_STRUCT_END 60 | #ifdef PACK_STRUCT_USE_INCLUDES 61 | # include "arch/epstruct.h" 62 | #endif 63 | 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | 68 | #endif /* LWIP_HDR_PROT_UDP_H */ 69 | -------------------------------------------------------------------------------- /User/lwip/src/include/lwip/tcpbase.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Base TCP API definitions shared by TCP and ALTCP\n 4 | * See also @ref tcp_raw 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Adam Dunkels 36 | * 37 | */ 38 | #ifndef LWIP_HDR_TCPBASE_H 39 | #define LWIP_HDR_TCPBASE_H 40 | 41 | #include "lwip/opt.h" 42 | 43 | #if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ 44 | 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | 50 | #if LWIP_WND_SCALE 51 | typedef u32_t tcpwnd_size_t; 52 | #else 53 | typedef u16_t tcpwnd_size_t; 54 | #endif 55 | 56 | enum tcp_state { 57 | CLOSED = 0, 58 | LISTEN = 1, 59 | SYN_SENT = 2, 60 | SYN_RCVD = 3, 61 | ESTABLISHED = 4, 62 | FIN_WAIT_1 = 5, 63 | FIN_WAIT_2 = 6, 64 | CLOSE_WAIT = 7, 65 | CLOSING = 8, 66 | LAST_ACK = 9, 67 | TIME_WAIT = 10 68 | }; 69 | /* ATTENTION: this depends on state number ordering! */ 70 | #define TCP_STATE_IS_CLOSING(state) ((state) >= FIN_WAIT_1) 71 | 72 | /* Flags for "apiflags" parameter in tcp_write */ 73 | #define TCP_WRITE_FLAG_COPY 0x01 74 | #define TCP_WRITE_FLAG_MORE 0x02 75 | 76 | #define TCP_PRIO_MIN 1 77 | #define TCP_PRIO_NORMAL 64 78 | #define TCP_PRIO_MAX 127 79 | 80 | const char* tcp_debug_state_str(enum tcp_state s); 81 | 82 | #ifdef __cplusplus 83 | } 84 | #endif 85 | 86 | #endif /* LWIP_TCP */ 87 | 88 | #endif /* LWIP_HDR_TCPBASE_H */ 89 | -------------------------------------------------------------------------------- /User/lwip/src/include/netif/etharp.h: -------------------------------------------------------------------------------- 1 | /* ARP has been moved to core/ipv4, provide this #include for compatibility only */ 2 | #include "lwip/etharp.h" 3 | #include "netif/ethernet.h" 4 | -------------------------------------------------------------------------------- /User/lwip/src/include/netif/ppp/chap-md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * chap-md5.h - New CHAP/MD5 implementation. 3 | * 4 | * Copyright (c) 2003 Paul Mackerras. All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * 2. The name(s) of the authors of this software must not be used to 14 | * endorse or promote products derived from this software without 15 | * prior written permission. 16 | * 17 | * 3. Redistributions of any form whatsoever must retain the following 18 | * acknowledgment: 19 | * "This product includes software developed by Paul Mackerras 20 | * ". 21 | * 22 | * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 23 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 24 | * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 25 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 26 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 27 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 28 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 29 | */ 30 | 31 | #include "netif/ppp/ppp_opts.h" 32 | #if PPP_SUPPORT && CHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ 33 | 34 | extern const struct chap_digest_type md5_digest; 35 | 36 | #endif /* PPP_SUPPORT && CHAP_SUPPORT */ 37 | -------------------------------------------------------------------------------- /User/lwip/src/include/netif/ppp/chap_ms.h: -------------------------------------------------------------------------------- 1 | /* 2 | * chap_ms.h - Challenge Handshake Authentication Protocol definitions. 3 | * 4 | * Copyright (c) 1995 Eric Rosenquist. All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * 18 | * 3. The name(s) of the authors of this software must not be used to 19 | * endorse or promote products derived from this software without 20 | * prior written permission. 21 | * 22 | * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 23 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 24 | * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 25 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 26 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 27 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 28 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 29 | * 30 | * $Id: chap_ms.h,v 1.13 2004/11/15 22:13:26 paulus Exp $ 31 | */ 32 | 33 | #include "netif/ppp/ppp_opts.h" 34 | #if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ 35 | 36 | #ifndef CHAPMS_INCLUDE 37 | #define CHAPMS_INCLUDE 38 | 39 | extern const struct chap_digest_type chapms_digest; 40 | extern const struct chap_digest_type chapms2_digest; 41 | 42 | #endif /* CHAPMS_INCLUDE */ 43 | 44 | #endif /* PPP_SUPPORT && MSCHAP_SUPPORT */ 45 | -------------------------------------------------------------------------------- /User/lwip/src/include/netif/ppp/ecp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ecp.h - Definitions for PPP Encryption Control Protocol. 3 | * 4 | * Copyright (c) 2002 Google, Inc. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * 2. Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in 16 | * the documentation and/or other materials provided with the 17 | * distribution. 18 | * 19 | * 3. The name(s) of the authors of this software must not be used to 20 | * endorse or promote products derived from this software without 21 | * prior written permission. 22 | * 23 | * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 24 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 25 | * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 26 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 27 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 28 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 29 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 30 | * 31 | * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $ 32 | */ 33 | 34 | #include "netif/ppp/ppp_opts.h" 35 | #if PPP_SUPPORT && ECP_SUPPORT /* don't build if not configured for use in lwipopts.h */ 36 | 37 | #ifndef ECP_H 38 | #define ECP_H 39 | 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef struct ecp_options { 45 | bool required; /* Is ECP required? */ 46 | unsigned enctype; /* Encryption type */ 47 | } ecp_options; 48 | 49 | extern fsm ecp_fsm[]; 50 | extern ecp_options ecp_wantoptions[]; 51 | extern ecp_options ecp_gotoptions[]; 52 | extern ecp_options ecp_allowoptions[]; 53 | extern ecp_options ecp_hisoptions[]; 54 | 55 | extern const struct protent ecp_protent; 56 | 57 | #ifdef __cplusplus 58 | } 59 | #endif 60 | 61 | #endif /* ECP_H */ 62 | #endif /* PPP_SUPPORT && ECP_SUPPORT */ 63 | -------------------------------------------------------------------------------- /User/lwip/src/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | ethernet.c 6 | Shared code for Ethernet based interfaces. 7 | 8 | lowpan6.c 9 | A 6LoWPAN implementation as a netif. 10 | 11 | lowpan6_ble.c 12 | A 6LoWPAN over Bluetooth Low Energy (BLE) implementation as netif, 13 | according to RFC-7668. 14 | 15 | slipif.c 16 | A generic implementation of the SLIP (Serial Line IP) 17 | protocol. It requires a sio (serial I/O) module to work. 18 | 19 | ppp/ Point-to-Point Protocol stack 20 | The lwIP PPP support is based from pppd (http://ppp.samba.org) with 21 | huge changes to match code size and memory requirements for embedded 22 | devices. Please read /doc/ppp.txt and ppp/PPPD_FOLLOWUP for a detailed 23 | explanation. 24 | -------------------------------------------------------------------------------- /User/lwip/src/netif/ppp/eui64.c: -------------------------------------------------------------------------------- 1 | /* 2 | * eui64.c - EUI64 routines for IPv6CP. 3 | * 4 | * Copyright (c) 1999 Tommi Komulainen. All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * 18 | * 3. The name(s) of the authors of this software must not be used to 19 | * endorse or promote products derived from this software without 20 | * prior written permission. 21 | * 22 | * 4. Redistributions of any form whatsoever must retain the following 23 | * acknowledgment: 24 | * "This product includes software developed by Tommi Komulainen 25 | * ". 26 | * 27 | * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 28 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 29 | * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 30 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 31 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 32 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 33 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 34 | * 35 | * $Id: eui64.c,v 1.6 2002/12/04 23:03:32 paulus Exp $ 36 | */ 37 | 38 | #include "netif/ppp/ppp_opts.h" 39 | #if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ 40 | 41 | #include "netif/ppp/ppp_impl.h" 42 | #include "netif/ppp/eui64.h" 43 | 44 | /* 45 | * eui64_ntoa - Make an ascii representation of an interface identifier 46 | */ 47 | char *eui64_ntoa(eui64_t e) { 48 | static char buf[20]; 49 | 50 | sprintf(buf, "%02x%02x:%02x%02x:%02x%02x:%02x%02x", 51 | e.e8[0], e.e8[1], e.e8[2], e.e8[3], 52 | e.e8[4], e.e8[5], e.e8[6], e.e8[7]); 53 | return buf; 54 | } 55 | 56 | #endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ 57 | -------------------------------------------------------------------------------- /User/lwip/src/netif/ppp/polarssl/README: -------------------------------------------------------------------------------- 1 | About PolarSSL files into lwIP PPP support 2 | ------------------------------------------ 3 | 4 | This folder contains some files fetched from the latest BSD release of 5 | the PolarSSL project (PolarSSL 0.10.1-bsd) for ciphers and encryption 6 | methods we need for lwIP PPP support. 7 | 8 | The PolarSSL files were cleaned to contain only the necessary struct 9 | fields and functions needed for lwIP. 10 | 11 | The PolarSSL API was not changed at all, so if you are already using 12 | PolarSSL you can choose to skip the compilation of the included PolarSSL 13 | library into lwIP. 14 | 15 | If you are not using the embedded copy you must include external 16 | libraries into your arch/cc.h port file. 17 | 18 | Beware of the stack requirements which can be a lot larger if you are not 19 | using our cleaned PolarSSL library. 20 | 21 | 22 | PolarSSL project website: http://polarssl.org/ 23 | -------------------------------------------------------------------------------- /User/lwip/src/netif/ppp/pppcrypt.c: -------------------------------------------------------------------------------- 1 | /* 2 | * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1 3 | * 4 | * Extracted from chap_ms.c by James Carlson. 5 | * 6 | * Copyright (c) 1995 Eric Rosenquist. All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * 1. Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in 17 | * the documentation and/or other materials provided with the 18 | * distribution. 19 | * 20 | * 3. The name(s) of the authors of this software must not be used to 21 | * endorse or promote products derived from this software without 22 | * prior written permission. 23 | * 24 | * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 25 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 26 | * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 27 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 28 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 29 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 30 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 31 | */ 32 | 33 | #include "netif/ppp/ppp_opts.h" 34 | #if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not necessary */ 35 | 36 | #include "netif/ppp/ppp_impl.h" 37 | 38 | #include "netif/ppp/pppcrypt.h" 39 | 40 | 41 | static u_char pppcrypt_get_7bits(u_char *input, int startBit) { 42 | unsigned int word; 43 | 44 | word = (unsigned)input[startBit / 8] << 8; 45 | word |= (unsigned)input[startBit / 8 + 1]; 46 | 47 | word >>= 15 - (startBit % 8 + 7); 48 | 49 | return word & 0xFE; 50 | } 51 | 52 | /* IN 56 bit DES key missing parity bits 53 | * OUT 64 bit DES key with parity bits added 54 | */ 55 | void pppcrypt_56_to_64_bit_key(u_char *key, u_char * des_key) { 56 | des_key[0] = pppcrypt_get_7bits(key, 0); 57 | des_key[1] = pppcrypt_get_7bits(key, 7); 58 | des_key[2] = pppcrypt_get_7bits(key, 14); 59 | des_key[3] = pppcrypt_get_7bits(key, 21); 60 | des_key[4] = pppcrypt_get_7bits(key, 28); 61 | des_key[5] = pppcrypt_get_7bits(key, 35); 62 | des_key[6] = pppcrypt_get_7bits(key, 42); 63 | des_key[7] = pppcrypt_get_7bits(key, 49); 64 | } 65 | 66 | #endif /* PPP_SUPPORT && MSCHAP_SUPPORT */ 67 | -------------------------------------------------------------------------------- /User/lwip/src/port/lwipopts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/lwip/src/port/lwipopts.h -------------------------------------------------------------------------------- /User/lwip/src/port/sys_arch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/lwip/src/port/sys_arch.c -------------------------------------------------------------------------------- /User/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/main.c -------------------------------------------------------------------------------- /User/project_suozhang.sct: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08000000 0x00200000 { ; load region size_region 6 | ER_IROM1 0x08000000 0x00200000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | RW_IRAM2 0x24000000 0x00080000 { ; RW data 12 | .ANY (+RW +ZI) 13 | } 14 | RW_DMARxDscrTab 0x30040000 0x60 { 15 | *(.RxDecripSection) 16 | } 17 | RW_DMATxDscrTab 0x30040060 0x140 { 18 | *(.TxDecripSection) 19 | } 20 | RW_Rx_Buffb 0x30040200 0x1800 { 21 | *(.RxArraySection) 22 | } 23 | 24 | } 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /User/segger/HardFaultHandlerIAR/SEGGER_HardFaultHandler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/segger/HardFaultHandlerIAR/SEGGER_HardFaultHandler.c -------------------------------------------------------------------------------- /User/segger/HardFaultHandlerMDK/HardFaultHandler.S: -------------------------------------------------------------------------------- 1 | ; 2 | ;---------------------------------------------------------------------- 3 | ;File : HardFaultHandler.S 4 | ;Purpose : HardFault exception handler for IAR, Keil and GNU assembler. 5 | ; Evaluates used stack (MSP, PSP) and passes appropiate stack 6 | ; pointer to the HardFaultHandler "C"-routine. 7 | ;------------- END-OF-HEADER ------------------------------------------ 8 | 9 | ; 10 | ;/********************************************************************* 11 | ;* 12 | ;* Forward declarations of segments used 13 | ;* 14 | ;********************************************************************** 15 | ;*/ 16 | AREA OSKERNEL, CODE, READONLY, ALIGN=2 17 | PRESERVE8 18 | 19 | EXPORT HardFault_Handler 20 | 21 | IMPORT HardFaultHandler 22 | 23 | THUMB 24 | 25 | 26 | ;/********************************************************************* 27 | ;* 28 | ;* Global functions 29 | ;* 30 | ;********************************************************************** 31 | ;*/ 32 | 33 | ;/********************************************************************* 34 | ;* 35 | ;* HardFault_Handler() 36 | ;* 37 | ;* Function description 38 | ;* Evaluates the used stack (MSP, PSP) and passes the appropiate 39 | ;* stack pointer to the HardFaultHandler "C"-routine. 40 | ;* 41 | ;* Notes 42 | ;* (1) Ensure that HardFault_Handler is part of the exception table 43 | ;*/ 44 | 45 | HardFault_Handler 46 | 47 | ;// This version is for Cortex M3, Cortex M4 and Cortex M4F 48 | tst LR, #4 ;// Check EXC_RETURN in Link register bit 2. 49 | ite EQ 50 | mrseq R0, MSP ;// Stacking was using MSP. 51 | mrsne R0, PSP ;// Stacking was using PSP. 52 | b HardFaultHandler ;// Stack pointer passed through R0. 53 | 54 | END 55 | 56 | ;/****** End Of File *************************************************/ 57 | -------------------------------------------------------------------------------- /User/segger/HardFaultHandlerMDK/SEGGER_HardFaultHandler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/segger/HardFaultHandlerMDK/SEGGER_HardFaultHandler.c -------------------------------------------------------------------------------- /User/tcp_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/tcp_client.c -------------------------------------------------------------------------------- /User/tcp_client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suoZhangEmbedded/stm32h7_freertos/ba93eca78ecee98abfb5c5deadd10d5ec6c85414/User/tcp_client.h -------------------------------------------------------------------------------- /删除目标文件(用于打包备份).bat: -------------------------------------------------------------------------------- 1 | rd /Q /S project\MDK-ARM(uV5)\Objects 2 | rd /Q /S project\MDK-ARM(uV5)\Listings 3 | rd /Q /S project\MDK-ARM(uV5)\DebugConfig 4 | del /Q project\MDK-ARM(uV5)\*.bak 5 | del /Q project\MDK-ARM(uV5\*.dep 6 | del /Q project\MDK-ARM(uV5)\JLink* 7 | del /Q project\MDK-ARM(uV5)\project.uvgui.* 8 | 9 | del /Q project\EWARMv8\Project.dep 10 | del /Q project\EWARMv8\Debug 11 | del /Q project\EWARMv8\Flash 12 | del /Q project\EWARMv8\settings 13 | del /Q project\EWARMv8\Debug 14 | rd /Q /S project\EWARMv8\Flash 15 | rd /Q /S project\EWARMv8\settings 16 | rd /Q /S project\EWARMv8\Debug 17 | --------------------------------------------------------------------------------