├── Middlewares ├── arduino │ └── stm32 │ │ └── cores │ │ └── arduino │ │ ├── avr │ │ ├── interrupt.h │ │ ├── dtostrf.h │ │ ├── dtostrf.c │ │ └── pgmspace.h │ │ ├── USARTClass.cpp │ │ ├── Server.h │ │ ├── Client.h │ │ ├── pins_arduino.h │ │ ├── Tone.h │ │ ├── cxxabi-compat.cpp │ │ ├── Reset.h │ │ ├── WMath.h │ │ ├── wiring_shift.h │ │ ├── WInterrupts.h │ │ ├── IPAddress.cpp │ │ ├── wiring_private.h │ │ ├── itoa.h │ │ ├── Printable.h │ │ ├── HardwareSerial.h │ │ ├── RingBuffer.h │ │ ├── wiring_pulse.h │ │ ├── RingBuffer.cpp │ │ ├── WMath.cpp │ │ ├── syscalls.h │ │ ├── wiring_shift.c │ │ ├── UARTClass.h │ │ ├── USB │ │ └── USBDesc.h │ │ └── hooks.c ├── gui │ ├── GUIType.h │ ├── mksDLP.a │ ├── GUIVersion.h │ ├── GUITouchConf.h │ ├── MESSAGEBOX.h │ ├── WINDOW_Private.h │ ├── WM_Intern_ConfDep.h │ ├── DIALOG.h │ ├── GUIConf.h │ ├── GUI_HOOK.h │ ├── TEXT_Private.h │ ├── DROPDOWN_Private.h │ ├── BUTTON_Private.h │ ├── WM_GUI.h │ ├── MULTIPAGE_Private.h │ ├── HEADER_Private.h │ ├── GUI_ARRAY.h │ └── GUI_X.h └── Third_Party │ ├── Marlin │ ├── stepper.h │ ├── Sd2Card.cpp │ ├── cardreader.h │ ├── stepper.cpp │ ├── Marlin_main.cpp │ ├── cardreader.cpp │ ├── printcounter.cpp │ ├── Conditionals.h │ ├── blinkm.h │ ├── types.h │ ├── SanityCheck.h │ ├── pca9632.h │ ├── thermistortable_998.h │ ├── thermistortable_999.h │ ├── thermistortable_110.h │ ├── thermistortable_147.h │ ├── thermistortable_1047.h │ ├── watchdog.h │ ├── thermistortable_1010.h │ ├── language_pl.h │ ├── planner_bezier.h │ ├── blinkm.cpp │ ├── thermistortable_4.h │ ├── thermistortable_8.h │ ├── neopixel.h │ ├── MarlinConfig.h │ ├── thermistortable_13.h │ ├── SdFatUtil.h │ ├── bitmap_flags.h │ ├── thermistortable_3.h │ ├── thermistortable_66.h │ ├── SdFile.h │ ├── hex_print_routines.h │ ├── thermistortable_10.h │ ├── mesh_bed_leveling.cpp │ ├── thermistortable_9.h │ ├── thermistortable_12.h │ ├── MarlinSPI_nouse.h │ ├── neopixel.cpp │ ├── thermistortable_2.h │ ├── hex_print_routines.cpp │ ├── thermistortable_6.h │ ├── tmc_macros.h │ ├── thermistortable_5.h │ ├── dogm_font_data_Marlin_symbols.h │ ├── point_t.h │ ├── stepper_dac.h │ └── thermistortable_55.h │ └── FatFs │ └── src │ ├── option │ └── mycc936.c │ ├── integer.h │ └── drivers │ ├── sd_diskio.h │ └── usbh_diskio.h ├── EWARM ├── settings │ ├── Project.wspos │ ├── mksDLP.crun │ ├── mksDLP_mksDLP.jlink │ ├── mksRobin2_mksRobin2.jlink │ ├── mksDLP.mksDLP.cspy.bat │ └── mksRobin2.mksRobin2.cspy.bat ├── mksDLP │ └── Exe │ │ ├── mksDLP.bin │ │ └── mksDLP.out ├── Project.eww ├── stm32f407xx_flash.icf └── stm32f407xx_sram.icf ├── Inc ├── gpio.h ├── main.h ├── ffconf.h ├── fontLib.h ├── ili9320.h ├── mks_cfg.h ├── mks_dlp_main.h ├── mks_reprint.h ├── pic_manager.h ├── wifi_module.h ├── type_define.h ├── string_deal.h ├── mks_test.h ├── pic.h ├── wifi_upload.h └── cpld.h ├── Src ├── cpld.c ├── gpio.c ├── spi.c ├── ili9320.c ├── mks_cfg.cpp ├── mks_test.cpp ├── mks_fontHz14.c ├── mks_dlp_main.cpp ├── mks_reprint.cpp ├── pic_manager.cpp ├── stm32f4xx_it.cpp ├── wifi_module.cpp ├── wifi_upload.cpp └── mks_touch_screen.c ├── User └── ui │ ├── font.h │ ├── draw_ui.h │ ├── draw_bind.cpp │ ├── draw_disk.cpp │ ├── draw_fan.cpp │ ├── draw_info.cpp │ ├── draw_more.cpp │ ├── draw_set.cpp │ ├── draw_ui.cpp │ ├── draw_wifi.cpp │ ├── draw_zero.cpp │ ├── draw_about.cpp │ ├── draw_clean.cpp │ ├── draw_dialog.cpp │ ├── draw_log_ui.cpp │ ├── QRENCODE │ ├── mqrspec.c │ ├── qrinput.c │ ├── qrinput.h │ ├── split.c │ ├── QR_Encode.c │ ├── QR_Encode.h │ ├── qrencode.c │ ├── qrencode.h │ ├── mmask.h │ ├── bitstream.h │ ├── rscode.h │ ├── mask.h │ └── split.h │ ├── draw_Sprayer.cpp │ ├── draw_extrusion.cpp │ ├── draw_language.cpp │ ├── draw_machine.cpp │ ├── draw_operate.cpp │ ├── draw_pause_ui.cpp │ ├── draw_pre_heat.cpp │ ├── draw_printing.cpp │ ├── draw_temp_ui.cpp │ ├── draw_zoffset.cpp │ ├── draw_move_motor.cpp │ ├── draw_print_file.cpp │ ├── draw_ready_print.cpp │ ├── draw_ExposureTest.cpp │ ├── draw_change_speed.cpp │ ├── draw_filamentchange.cpp │ ├── Multi_language │ ├── fontHz14.c │ ├── Font24_MS.c │ ├── Font47_MS.c │ └── multi_language.cpp │ ├── draw_FileTransfer_ui.cpp │ ├── draw_manual_leveling.cpp │ ├── draw_printing_moremenu.cpp │ ├── draw_tool.h │ ├── draw_set.h │ ├── draw_info.h │ ├── draw_zero.h │ ├── draw_about.h │ ├── draw_preview.h │ ├── draw_service.h │ ├── draw_main.h │ ├── draw_detection.h │ ├── draw_temp_ui.h │ ├── draw_fan.h │ ├── draw_wifi.h │ ├── draw_disk.h │ ├── draw_clean.h │ ├── draw_machine.h │ ├── draw_more.h │ ├── draw_language.h │ ├── draw_log_ui.h │ ├── draw_Sprayer.h │ ├── draw_meshleveling.h │ ├── draw_move_motor.h │ ├── draw_printing_moremenu.h │ ├── draw_manual_leveling.h │ ├── draw_ExposureTest.h │ ├── draw_zoffset.h │ ├── draw_bind.h │ ├── draw_pause_ui.h │ ├── draw_operate.h │ ├── draw_ready_print.h │ ├── draw_pre_heat.h │ ├── draw_change_speed.h │ ├── id_manage.h │ ├── draw_filamentchange.h │ ├── draw_print_file.h │ ├── draw_extrusion.h │ ├── draw_FileTransfer_ui.h │ ├── draw_keyboard.h │ ├── id_manage.c │ ├── draw_printing.h │ └── draw_dialog.h ├── Drivers ├── BSP │ ├── variant │ │ ├── sys.h │ │ ├── mks_fastio.h │ │ └── fastio_dlp_board.h │ └── Components │ │ ├── lcd │ │ ├── mks_lcd.c │ │ └── mks_lcd.h │ │ ├── w25qxx │ │ ├── w25qxx.c │ │ ├── w25qxx.h │ │ ├── spi_flash.c │ │ └── spi_flash.h │ │ ├── SSD2828 │ │ ├── ssd2828.h │ │ └── ssd2828.cpp │ │ ├── at24cxx │ │ ├── at24cxx.cpp │ │ └── at24cxx.h │ │ └── at24cxx_IO │ │ ├── at24cxx.h │ │ └── at24cxx.cpp ├── libstmf4 │ ├── include │ │ └── stm32f4xx_bak.h │ ├── build_gcc │ │ ├── release.mk │ │ └── debug.mk │ └── build_iar │ │ └── libsam.eww ├── CMSIS │ └── Device │ │ └── ST │ │ └── STM32F4xx │ │ └── Include │ │ ├── stm32f4xx.h │ │ └── stm32f407xx.h └── STM32F4xx_HAL_Driver │ └── Inc │ └── stm32f4xx_hal_def.h └── README.md /Middlewares/arduino/stm32/cores/arduino/avr/interrupt.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /EWARM/settings/Project.wspos: -------------------------------------------------------------------------------- 1 | [MainWindow] 2 | WindowPlacement=_ 508 99 1660 949 3 3 | -------------------------------------------------------------------------------- /Inc/gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/gpio.h -------------------------------------------------------------------------------- /Inc/main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/main.h -------------------------------------------------------------------------------- /Src/cpld.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/cpld.c -------------------------------------------------------------------------------- /Src/gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/gpio.c -------------------------------------------------------------------------------- /Src/spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/spi.c -------------------------------------------------------------------------------- /Inc/ffconf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/ffconf.h -------------------------------------------------------------------------------- /Inc/fontLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/fontLib.h -------------------------------------------------------------------------------- /Inc/ili9320.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/ili9320.h -------------------------------------------------------------------------------- /Inc/mks_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/mks_cfg.h -------------------------------------------------------------------------------- /Src/ili9320.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/ili9320.c -------------------------------------------------------------------------------- /Src/mks_cfg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_cfg.cpp -------------------------------------------------------------------------------- /Src/mks_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_test.cpp -------------------------------------------------------------------------------- /User/ui/font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/font.h -------------------------------------------------------------------------------- /Inc/mks_dlp_main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/mks_dlp_main.h -------------------------------------------------------------------------------- /Inc/mks_reprint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/mks_reprint.h -------------------------------------------------------------------------------- /Inc/pic_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/pic_manager.h -------------------------------------------------------------------------------- /Inc/wifi_module.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Inc/wifi_module.h -------------------------------------------------------------------------------- /Src/mks_fontHz14.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_fontHz14.c -------------------------------------------------------------------------------- /User/ui/draw_ui.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_ui.h -------------------------------------------------------------------------------- /Src/mks_dlp_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_dlp_main.cpp -------------------------------------------------------------------------------- /Src/mks_reprint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_reprint.cpp -------------------------------------------------------------------------------- /Src/pic_manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/pic_manager.cpp -------------------------------------------------------------------------------- /Src/stm32f4xx_it.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/stm32f4xx_it.cpp -------------------------------------------------------------------------------- /Src/wifi_module.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/wifi_module.cpp -------------------------------------------------------------------------------- /Src/wifi_upload.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/wifi_upload.cpp -------------------------------------------------------------------------------- /User/ui/draw_bind.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_bind.cpp -------------------------------------------------------------------------------- /User/ui/draw_disk.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_disk.cpp -------------------------------------------------------------------------------- /User/ui/draw_fan.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_fan.cpp -------------------------------------------------------------------------------- /User/ui/draw_info.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_info.cpp -------------------------------------------------------------------------------- /User/ui/draw_more.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_more.cpp -------------------------------------------------------------------------------- /User/ui/draw_set.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_set.cpp -------------------------------------------------------------------------------- /User/ui/draw_ui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_ui.cpp -------------------------------------------------------------------------------- /User/ui/draw_wifi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_wifi.cpp -------------------------------------------------------------------------------- /User/ui/draw_zero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_zero.cpp -------------------------------------------------------------------------------- /Src/mks_touch_screen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Src/mks_touch_screen.c -------------------------------------------------------------------------------- /User/ui/draw_about.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_about.cpp -------------------------------------------------------------------------------- /User/ui/draw_clean.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_clean.cpp -------------------------------------------------------------------------------- /User/ui/draw_dialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_dialog.cpp -------------------------------------------------------------------------------- /User/ui/draw_log_ui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_log_ui.cpp -------------------------------------------------------------------------------- /Drivers/BSP/variant/sys.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/variant/sys.h -------------------------------------------------------------------------------- /Middlewares/gui/GUIType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/gui/GUIType.h -------------------------------------------------------------------------------- /Middlewares/gui/mksDLP.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/gui/mksDLP.a -------------------------------------------------------------------------------- /User/ui/QRENCODE/mqrspec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/mqrspec.c -------------------------------------------------------------------------------- /User/ui/QRENCODE/qrinput.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/qrinput.c -------------------------------------------------------------------------------- /User/ui/QRENCODE/qrinput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/qrinput.h -------------------------------------------------------------------------------- /User/ui/QRENCODE/split.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/split.c -------------------------------------------------------------------------------- /User/ui/draw_Sprayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_Sprayer.cpp -------------------------------------------------------------------------------- /User/ui/draw_extrusion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_extrusion.cpp -------------------------------------------------------------------------------- /User/ui/draw_language.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_language.cpp -------------------------------------------------------------------------------- /User/ui/draw_machine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_machine.cpp -------------------------------------------------------------------------------- /User/ui/draw_operate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_operate.cpp -------------------------------------------------------------------------------- /User/ui/draw_pause_ui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_pause_ui.cpp -------------------------------------------------------------------------------- /User/ui/draw_pre_heat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_pre_heat.cpp -------------------------------------------------------------------------------- /User/ui/draw_printing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_printing.cpp -------------------------------------------------------------------------------- /User/ui/draw_temp_ui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_temp_ui.cpp -------------------------------------------------------------------------------- /User/ui/draw_zoffset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_zoffset.cpp -------------------------------------------------------------------------------- /EWARM/mksDLP/Exe/mksDLP.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/EWARM/mksDLP/Exe/mksDLP.bin -------------------------------------------------------------------------------- /EWARM/mksDLP/Exe/mksDLP.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/EWARM/mksDLP/Exe/mksDLP.out -------------------------------------------------------------------------------- /User/ui/QRENCODE/QR_Encode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/QR_Encode.c -------------------------------------------------------------------------------- /User/ui/QRENCODE/QR_Encode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/QR_Encode.h -------------------------------------------------------------------------------- /User/ui/QRENCODE/qrencode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/qrencode.c -------------------------------------------------------------------------------- /User/ui/QRENCODE/qrencode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/QRENCODE/qrencode.h -------------------------------------------------------------------------------- /User/ui/draw_move_motor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_move_motor.cpp -------------------------------------------------------------------------------- /User/ui/draw_print_file.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_print_file.cpp -------------------------------------------------------------------------------- /User/ui/draw_ready_print.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_ready_print.cpp -------------------------------------------------------------------------------- /User/ui/draw_ExposureTest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_ExposureTest.cpp -------------------------------------------------------------------------------- /User/ui/draw_change_speed.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_change_speed.cpp -------------------------------------------------------------------------------- /User/ui/draw_filamentchange.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_filamentchange.cpp -------------------------------------------------------------------------------- /Drivers/BSP/variant/mks_fastio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/variant/mks_fastio.h -------------------------------------------------------------------------------- /User/ui/Multi_language/fontHz14.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/Multi_language/fontHz14.c -------------------------------------------------------------------------------- /User/ui/draw_FileTransfer_ui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_FileTransfer_ui.cpp -------------------------------------------------------------------------------- /User/ui/draw_manual_leveling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_manual_leveling.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/lcd/mks_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/lcd/mks_lcd.c -------------------------------------------------------------------------------- /Drivers/BSP/Components/lcd/mks_lcd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/lcd/mks_lcd.h -------------------------------------------------------------------------------- /User/ui/Multi_language/Font24_MS.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/Multi_language/Font24_MS.c -------------------------------------------------------------------------------- /User/ui/Multi_language/Font47_MS.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/Multi_language/Font47_MS.c -------------------------------------------------------------------------------- /User/ui/draw_printing_moremenu.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/draw_printing_moremenu.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/w25qxx/w25qxx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/w25qxx/w25qxx.c -------------------------------------------------------------------------------- /Drivers/BSP/Components/w25qxx/w25qxx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/w25qxx/w25qxx.h -------------------------------------------------------------------------------- /Drivers/BSP/variant/fastio_dlp_board.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/variant/fastio_dlp_board.h -------------------------------------------------------------------------------- /Drivers/BSP/Components/SSD2828/ssd2828.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/SSD2828/ssd2828.h -------------------------------------------------------------------------------- /Drivers/BSP/Components/w25qxx/spi_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/w25qxx/spi_flash.c -------------------------------------------------------------------------------- /Drivers/BSP/Components/w25qxx/spi_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/w25qxx/spi_flash.h -------------------------------------------------------------------------------- /Drivers/libstmf4/include/stm32f4xx_bak.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/libstmf4/include/stm32f4xx_bak.h -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/stepper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/stepper.h -------------------------------------------------------------------------------- /User/ui/Multi_language/multi_language.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/User/ui/Multi_language/multi_language.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/SSD2828/ssd2828.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/SSD2828/ssd2828.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/at24cxx/at24cxx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/at24cxx/at24cxx.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/at24cxx_IO/at24cxx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/at24cxx_IO/at24cxx.h -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/Sd2Card.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/Sd2Card.cpp -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/cardreader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/cardreader.h -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/stepper.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/stepper.cpp -------------------------------------------------------------------------------- /Drivers/BSP/Components/at24cxx_IO/at24cxx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/BSP/Components/at24cxx_IO/at24cxx.cpp -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/Marlin_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/Marlin_main.cpp -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/cardreader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/cardreader.cpp -------------------------------------------------------------------------------- /User/ui/draw_tool.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_TOOL_ 2 | #define _DRAW_TOOL_ 3 | 4 | extern void draw_tool(void); 5 | extern void Clear_Tool(); 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/printcounter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/Marlin/printcounter.cpp -------------------------------------------------------------------------------- /Middlewares/Third_Party/FatFs/src/option/mycc936.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/Third_Party/FatFs/src/option/mycc936.c -------------------------------------------------------------------------------- /Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h -------------------------------------------------------------------------------- /Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h -------------------------------------------------------------------------------- /Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/USARTClass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makerbase-mks/MKS-DLP-FIRMWARE/HEAD/Middlewares/arduino/stm32/cores/arduino/USARTClass.cpp -------------------------------------------------------------------------------- /EWARM/Project.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $WS_DIR$\mksDLP.ewp 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/Server.h: -------------------------------------------------------------------------------- 1 | #ifndef server_h 2 | #define server_h 3 | 4 | class Server : public Print { 5 | public: 6 | virtual void begin() =0; 7 | }; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /User/ui/draw_set.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_SET_H_ 2 | #define _DRAW_SET_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | void draw_Set(); 9 | 10 | void Clear_Set(); 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_info.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_INFO_H_ 2 | #define _DRAW_INFO_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_Info(); 8 | extern void Clear_Info(); 9 | 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /User/ui/draw_zero.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_ZERO_H_ 2 | #define _DRAW_ZERO_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Zero(); 9 | extern void Clear_Zero(); 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /User/ui/draw_about.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_ABOUT_H_ 2 | #define _DRAW_ABOUT_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_About(); 9 | extern void Clear_About(); 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /User/ui/draw_preview.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PREVIEW_H_ 2 | #define _DRAW_PREVIEW_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_Preview(); 8 | extern void Clear_Preview(); 9 | 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /User/ui/draw_service.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_SERVICE_H_ 2 | #define _DRAW_SERVICE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_Service(); 8 | extern void Clear_Service(); 9 | 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /User/ui/draw_main.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_MAIN_H_ 2 | #define _DRAW_MAIN_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | void draw_main_ui(void); 9 | void clear_main_ui(void); 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /User/ui/draw_detection.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_DETETION_H_ 2 | #define _DRAW_DETETION_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_detection(); 8 | extern void Clear_detection(); 9 | 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /User/ui/draw_temp_ui.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_TEMP_UI_H_ 2 | #define _DRAW_TEMP_UI_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_changeSpeed(); 9 | extern void Clear_TempSpeed(); 10 | #if defined(__cplusplus) 11 | } /* Make sure we have C-declarations in C++ programs */ 12 | #endif 13 | 14 | 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /User/ui/draw_fan.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_FAN_H_ 2 | #define _DRAW_FAN_H_ 3 | 4 | 5 | #if defined(__cplusplus) 6 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 7 | #endif 8 | 9 | void draw_fan(); 10 | 11 | void disp_fan_speed(); 12 | 13 | void Clear_fan(); 14 | 15 | #if defined(__cplusplus) 16 | } /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /User/ui/draw_wifi.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_WIFI_H_ 2 | #define _DRAW_WIFI_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void disp_wifi_state(); 9 | extern void draw_Wifi(); 10 | extern void Clear_Wifi(); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /EWARM/settings/mksDLP.crun: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1 5 | 6 | 7 | * 8 | * 9 | * 10 | 0 11 | 1 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /User/ui/draw_disk.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_DISK_H_ 2 | #define _DRAW_DISK_H_ 3 | 4 | 5 | #if defined(__cplusplus) 6 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 7 | #endif 8 | 9 | void draw_Disk(); 10 | 11 | void Clear_Disk(); 12 | 13 | void disp_disk_choose(); 14 | 15 | #if defined(__cplusplus) 16 | } /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /User/ui/draw_clean.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_CLEAN_H_ 2 | #define _DRAW_CLEAN_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Clean(); 9 | extern void Clear_Clean(); 10 | extern void time_value_cnt(); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_machine.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_MACHINE_H_ 2 | #define _DRAW_MACHINE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Machine(); 9 | extern void disp_mach_type(); 10 | extern void Clear_Machine(); 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /User/ui/draw_more.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_MORE_H_ 2 | #define _DRAW_MORE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_More(); 9 | extern void Clear_more(); 10 | extern void pushButtonCodeToFifo(void); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_language.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_LANGUAGE_H_ 2 | #define _DRAW_LANGUAGE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Language(); 9 | extern void disp_sel_item(); 10 | extern void Clear_Language(); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_log_ui.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_LOG_UI_H_ 2 | #define _DRAW_LOG_UI_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Connect(); 9 | extern void disp_sel_baud(); 10 | extern void Clear_Connect(); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /User/ui/draw_Sprayer.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_SPRAYER_H_ 2 | #define _DRAW_SPRAYER_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Sprayer(); 9 | extern void disp_sel_sprayer_num(); 10 | extern void Clear_Sprayer(); 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_meshleveling.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_MESHLEVELING_H_ 2 | #define _DRAW_MESHLEVELING_H_ 3 | #if defined(__cplusplus) 4 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 5 | #endif 6 | extern void draw_meshleveling(); 7 | extern void Clear_MeshLeveling(); 8 | extern void disp_zpos(); 9 | 10 | #if defined(__cplusplus) 11 | } /* Make sure we have C-declarations in C++ programs */ 12 | #endif 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /User/ui/draw_move_motor.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_MOVE_MOTOR_H_ 2 | #define _DRAW_MOVE_MOTOR_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_move_motor(); 9 | extern void disp_move_dist(); 10 | extern void Clear_move_motor(); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /User/ui/draw_printing_moremenu.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PRINTING_MOREMENU_H_ 2 | #define _DRAW_PRINTING_MOREMENU_H_ 3 | #if defined(__cplusplus) 4 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 5 | #endif 6 | 7 | void draw_printmore(); 8 | void Clear_Printmore(); 9 | void Autoshutdown_display(); 10 | 11 | #if defined(__cplusplus) 12 | } /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /Inc/type_define.h: -------------------------------------------------------------------------------- 1 | #ifndef _TYPE_DEFINE_H_ 2 | #define _TYPE_DEFINE_H_ 3 | 4 | typedef unsigned int speed_t; 5 | 6 | typedef unsigned long ticks_t; 7 | typedef unsigned long millis_t; 8 | typedef int flag8_t; 9 | 10 | typedef unsigned char uint8_t; 11 | typedef unsigned short uint16_t; 12 | typedef unsigned int uint32_t; 13 | 14 | typedef signed char int8_t; 15 | typedef signed short int16_t; 16 | typedef signed int int32_t; 17 | 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /User/ui/draw_manual_leveling.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_LEVELING_H_ 2 | #define _DRAW_LEVELING_H_ 3 | #if defined(__cplusplus) 4 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 5 | #endif 6 | 7 | extern void draw_leveling(); 8 | extern void Clear_Leveling(); 9 | extern void leveling_move_action(); 10 | 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | 19 | -------------------------------------------------------------------------------- /Inc/string_deal.h: -------------------------------------------------------------------------------- 1 | #ifndef _STRING_DEAL_H_ 2 | #define _STRING_DEAL_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | #if _LFN_UNICODE 9 | void cutFileName(TCHAR *path, int len, int bytePerLine, TCHAR *outStr); 10 | #else 11 | void cutFileName(char *path, int len, int bytePerLine, char *outStr); 12 | #endif 13 | 14 | 15 | #if defined(__cplusplus) 16 | } 17 | #endif 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /User/ui/draw_ExposureTest.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_EXPOSURE_H_ 2 | #define _DRAW_EXPOSURE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_ExposureTest(); 8 | extern void Clear_ExposureTest(); 9 | 10 | extern void exposure_msg_display(char exposure_msg); 11 | 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /User/ui/draw_zoffset.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_ZOFFSET_H_ 2 | #define _DRAW_ZOFFSET_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_Zoffset(); 9 | 10 | extern void Clear_Zoffset(); 11 | extern void disp_step_zoffset(); 12 | extern void disp_zoffset(); 13 | #if defined(__cplusplus) 14 | } /* Make sure we have C-declarations in C++ programs */ 15 | #endif 16 | 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /User/ui/draw_bind.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_BIND_H_ 2 | #define _DRAW_BIND_H_ 3 | 4 | 5 | #if defined(__cplusplus) 6 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 7 | #endif 8 | 9 | void draw_bind(); 10 | 11 | void disp_bind_state(); 12 | 13 | void refresh_bind_ui(); 14 | 15 | void cloud_unbind(); 16 | 17 | void Clear_Bind(); 18 | 19 | #if defined(__cplusplus) 20 | } /* Make sure we have C-declarations in C++ programs */ 21 | #endif 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /User/ui/draw_pause_ui.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PAUSE_UI_H_ 2 | #define _DRAW_PAUSE_UI_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_pause(); 9 | extern void disp_temp_pause(); 10 | extern void setProBarRatePause(); 11 | 12 | extern void Clear_pause(); 13 | 14 | #if defined(__cplusplus) 15 | } /* Make sure we have C-declarations in C++ programs */ 16 | #endif 17 | 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /Middlewares/gui/GUIVersion.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUIVersion.h 4 | Purpose : Include file defining current GUI version 5 | ---------------------------END-OF-HEADER------------------------------ 6 | */ 7 | 8 | #ifndef GUI_VERSION_H 9 | #define GUI_VERSION_H 10 | 11 | #define GUI_VERSION 39001 12 | 13 | #endif /* Avoid multiple inclusion */ 14 | 15 | /*************************** End of file ****************************/ 16 | -------------------------------------------------------------------------------- /User/ui/draw_operate.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_OPERATE_H_ 2 | #define _DRAW_OPERATE_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | 9 | 10 | extern void draw_operate(); 11 | extern void setProBarRateOpera(int rate); //** 12 | extern void disp_temp_operate(); 13 | extern void Clear_operate(); 14 | 15 | #if defined(__cplusplus) 16 | } /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /User/ui/draw_ready_print.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_READY_PRINT_ 2 | #define _DRAW_READY_PRINT_ 3 | 4 | 5 | 6 | 7 | #if defined(__cplusplus) 8 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 9 | #endif 10 | 11 | extern void draw_ready_print(void); 12 | extern void Clear_ready_print(); 13 | extern void disp_fan_move(); 14 | //extern void disp_temp_ready_print(); 15 | #if defined(__cplusplus) 16 | } /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /User/ui/draw_pre_heat.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PRE_HEAT_H_ 2 | #define _DRAW_PRE_HEAT_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_preHeat(); 9 | 10 | extern void Clear_preHeat(); 11 | extern void disp_step_heat(); 12 | extern void disp_desire_temp(); 13 | extern void disp_temp_type(); 14 | #if defined(__cplusplus) 15 | } /* Make sure we have C-declarations in C++ programs */ 16 | #endif 17 | 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /User/ui/draw_change_speed.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_CHANGE_SPEED_ 2 | #define _DRAW_CHANGE_SPEED_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void Clear_changeSpeed(); 9 | extern void draw_changeSpeed(); 10 | extern void disp_print_speed(); 11 | extern void disp_speed_type(); 12 | extern void disp_step_speed(); 13 | 14 | #if defined(__cplusplus) 15 | } /* Make sure we have C-declarations in C++ programs */ 16 | #endif 17 | 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /User/ui/id_manage.h: -------------------------------------------------------------------------------- 1 | #ifndef _ID_MANAGE_H_ 2 | #define _ID_MANAGE_H_ 3 | 4 | typedef struct 5 | { 6 | uint32_t id; 7 | uint8_t flag; 8 | } ID_STACK; 9 | 10 | #if defined(__cplusplus) 11 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 12 | #endif 13 | 14 | extern void init_win_id(void); 15 | extern uint32_t alloc_win_id(void); 16 | extern void del_win_id(int32_t id); 17 | 18 | #if defined(__cplusplus) 19 | } /* Make sure we have C-declarations in C++ programs */ 20 | #endif 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /User/ui/draw_filamentchange.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_FILAMENTCHANGE_H_ 2 | #define _DRAW_FILAMENTCHANGE_H_ 3 | #if defined(__cplusplus) 4 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 5 | #endif 6 | 7 | extern void draw_FilamentChange(); 8 | extern void FilamentChange_handle(); 9 | extern void Clear_FilamentChange(); 10 | extern void FilamentChange_handle(); 11 | extern void disp_filament_sprayer_temp(); 12 | #if defined(__cplusplus) 13 | } /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /Inc/mks_test.h: -------------------------------------------------------------------------------- 1 | /* Define to prevent recursive inclusion -------------------------------------*/ 2 | #ifndef __MKS_TEST_H_ 3 | #define __MKS_TEST_H_ 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | /* Includes ------------------------------------------------------------------*/ 9 | //#include "w25qxx.h" 10 | #include "spi_flash.h" 11 | bool mksEeprom_test(); 12 | bool mksSSD2828Test(void); 13 | bool mksW25Q64Test(void); 14 | bool mksSdCardTest(); 15 | void mksUSBTest(); 16 | void mksHardwareTest(); 17 | void mksStepperTest(); 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /User/ui/draw_print_file.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PRINT_FILE_H_ 2 | #define _DRAW_PRINT_FILE_H_ 3 | 4 | typedef struct 5 | { 6 | int cur_page_first_offset; 7 | int cur_page_last_offset; 8 | int curPage; 9 | } DIR_OFFSET; 10 | 11 | #if defined(__cplusplus) 12 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | extern void draw_print_file(); 16 | extern void search_files(); 17 | extern void disp_udisk_files(int seq); 18 | extern void Clear_print_file(); 19 | 20 | #if defined(__cplusplus) 21 | } /* Make sure we have C-declarations in C++ programs */ 22 | #endif 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /User/ui/draw_extrusion.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_EXTRUSION_H_ 2 | #define _DRAW_EXTRUSION_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | 8 | extern void draw_extrusion(); 9 | 10 | extern void disp_extru_speed(); 11 | 12 | extern void disp_sprayer_temp(); 13 | 14 | extern void disp_sprayer_type(); 15 | 16 | extern void Clear_extrusion(); 17 | 18 | extern void disp_extru_step(); 19 | 20 | extern void disp_extru_amount(); 21 | 22 | #if defined(__cplusplus) 23 | } /* Make sure we have C-declarations in C++ programs */ 24 | #endif 25 | 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /Middlewares/gui/GUITouchConf.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUITouch.Conf.h 4 | Purpose : Configures touch screen module 5 | ---------------------------------------------------------------------- 6 | */ 7 | 8 | 9 | #ifndef GUITOUCH_CONF_H 10 | #define GUITOUCH_CONF_H 11 | 12 | #define GUI_TOUCH_AD_TOP 100 13 | #define GUI_TOUCH_AD_BOTTOM 4000 14 | #define GUI_TOUCH_AD_LEFT 360 15 | #define GUI_TOUCH_AD_RIGHT 3960 16 | 17 | #define GUI_TOUCH_SWAP_XY 1 18 | #define GUI_TOUCH_MIRROR_X 0//0 19 | #define GUI_TOUCH_MIRROR_Y 0 // 1 20 | 21 | #endif /* GUITOUCH_CONF_H */ 22 | -------------------------------------------------------------------------------- /Middlewares/gui/MESSAGEBOX.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : MESSAGEBOX.h 4 | Purpose : Message box interface 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef MESSAGEBOX_H 9 | #define MESSAGEBOX_H 10 | 11 | #include "WM.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | #if defined(__cplusplus) 16 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | WM_HWIN MESSAGEBOX_Create(const char * sMessage, const char * sCaption, int Flags); 20 | 21 | #if defined(__cplusplus) 22 | } 23 | #endif 24 | 25 | #endif /* GUI_WINSUPPORT */ 26 | 27 | #endif /* MESSAGEBOX */ 28 | -------------------------------------------------------------------------------- /Middlewares/gui/WINDOW_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : WINDOW_Private.h 4 | Purpose : WINDOW private header file 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef WINDOW_PRIVATE_H 9 | #define WINDOW_PRIVATE_H 10 | 11 | #include "WM.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | /********************************************************************* 16 | * 17 | * Externals 18 | * 19 | ********************************************************************** 20 | */ 21 | 22 | extern GUI_COLOR WINDOW__DefaultBkColor; 23 | 24 | #endif /* GUI_WINSUPPORT */ 25 | #endif /* WINDOW_PRIVATE_H */ 26 | -------------------------------------------------------------------------------- /User/ui/draw_FileTransfer_ui.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_FILETRANSFER_H_ 2 | #define _DRAW_FILETRANSFER_H_ 3 | #include "stdint.h" 4 | 5 | 6 | #if defined(__cplusplus) 7 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 8 | #endif 9 | 10 | extern void draw_filetansfer(uint8_t file_unzip_flg); 11 | extern void disp_filetransfer_info(uint8_t FileTransferHandleType); 12 | extern void setFileTransferBarValue(uint8_t fileprocess,uint32_t unzipsize); 13 | extern void Clear_fileTransfer(); 14 | extern void draw_dialog_filetransfer(uint8_t WifiTransferDialogType); 15 | extern void Clear_WifiFileTransferdialog(); 16 | 17 | #if defined(__cplusplus) 18 | } /* Make sure we have C-declarations in C++ programs */ 19 | #endif 20 | 21 | 22 | 23 | #endif 24 | 25 | 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MKS DLP FIRMWARE # 2 | The source code of MKS DLP firmware. 3 | 4 | ## Note 5 | - Thank you for using MKS products. If you have any questions during use, please contact us in time and we will work with you to solve it. 6 | - For more product dynamic information and tutorial materials, you can always follow MKS's Facebook/Twitter/Discord/Reddit/Youtube and Github. Thank you! 7 | - MKS Github: https://github.com/makerbase-mks 8 | - MKS Facebook: https://www.facebook.com/Makerbase.mks/ 9 | - MKS Twitter: https://twitter.com/home?lang=en 10 | - MKS Discord: https://discord.gg/4uar57NEyU 11 | - MKS Reddit: https://www.reddit.com/user/MAKERBASE-TEAM/ 12 | 13 | 14 | ![mks_link](https://user-images.githubusercontent.com/12979070/149612503-86519c04-816d-40c4-8c42-cf8044bb9db0.png) 15 | -------------------------------------------------------------------------------- /EWARM/settings/mksDLP_mksDLP.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ShowInfoWin = 1 3 | EnableFlashBP = 2 4 | BPDuringExecution = 0 5 | [CFI] 6 | CFISize = 0x00 7 | CFIAddr = 0x00 8 | [CPU] 9 | OverrideMemMap = 0 10 | AllowSimulation = 1 11 | ScriptFile="" 12 | [FLASH] 13 | CacheExcludeSize = 0x00 14 | CacheExcludeAddr = 0x00 15 | MinNumBytesFlashDL = 0 16 | SkipProgOnCRCMatch = 1 17 | VerifyDownload = 1 18 | AllowCaching = 1 19 | EnableFlashDL = 2 20 | Override = 0 21 | Device="UNSPECIFIED" 22 | [GENERAL] 23 | WorkRAMSize = 0x00 24 | WorkRAMAddr = 0x00 25 | RAMUsageLimit = 0x00 26 | [SWO] 27 | SWOLogFile="" 28 | [MEM] 29 | RdOverrideOrMask = 0x00 30 | RdOverrideAndMask = 0xFFFFFFFF 31 | RdOverrideAddr = 0xFFFFFFFF 32 | WrOverrideOrMask = 0x00 33 | WrOverrideAndMask = 0xFFFFFFFF 34 | WrOverrideAddr = 0xFFFFFFFF 35 | -------------------------------------------------------------------------------- /EWARM/settings/mksRobin2_mksRobin2.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ShowInfoWin = 1 3 | EnableFlashBP = 2 4 | BPDuringExecution = 0 5 | [CFI] 6 | CFISize = 0x00 7 | CFIAddr = 0x00 8 | [CPU] 9 | OverrideMemMap = 0 10 | AllowSimulation = 1 11 | ScriptFile="" 12 | [FLASH] 13 | CacheExcludeSize = 0x00 14 | CacheExcludeAddr = 0x00 15 | MinNumBytesFlashDL = 0 16 | SkipProgOnCRCMatch = 1 17 | VerifyDownload = 1 18 | AllowCaching = 1 19 | EnableFlashDL = 2 20 | Override = 0 21 | Device="UNSPECIFIED" 22 | [GENERAL] 23 | WorkRAMSize = 0x00 24 | WorkRAMAddr = 0x00 25 | RAMUsageLimit = 0x00 26 | [SWO] 27 | SWOLogFile="" 28 | [MEM] 29 | RdOverrideOrMask = 0x00 30 | RdOverrideAndMask = 0xFFFFFFFF 31 | RdOverrideAddr = 0xFFFFFFFF 32 | WrOverrideOrMask = 0x00 33 | WrOverrideAndMask = 0xFFFFFFFF 34 | WrOverrideAddr = 0xFFFFFFFF 35 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/Client.h: -------------------------------------------------------------------------------- 1 | #ifndef client_h 2 | #define client_h 3 | #include "Print.h" 4 | #include "Stream.h" 5 | #include "IPAddress.h" 6 | 7 | class Client : public Stream { 8 | 9 | public: 10 | virtual int connect(IPAddress ip, uint16_t port) =0; 11 | virtual int connect(const char *host, uint16_t port) =0; 12 | virtual size_t write(uint8_t) =0; 13 | virtual size_t write(const uint8_t *buf, size_t size) =0; 14 | virtual int available() = 0; 15 | virtual int read() = 0; 16 | virtual int read(uint8_t *buf, size_t size) = 0; 17 | virtual int peek() = 0; 18 | virtual void flush() = 0; 19 | virtual void stop() = 0; 20 | virtual uint8_t connected() = 0; 21 | virtual operator bool() = 0; 22 | protected: 23 | uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); }; 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/FatFs/src/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned long DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /User/ui/draw_keyboard.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_KEYBOARD_H_ 2 | #define _DRAW_KEYBOARD_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 6 | #endif 7 | extern void draw_keyboard(); 8 | extern void Clear_keyboard(); 9 | 10 | extern float key_set_value; 11 | extern char key_value[11]; 12 | 13 | typedef struct print_value_option 14 | { 15 | uint32_t BottomLayer; 16 | float ExposureOff; 17 | float BottomExposure; 18 | float NormalExposure; 19 | }value_option; 20 | 21 | extern value_option para_value; 22 | typedef enum 23 | { 24 | BottomLayer_edit, 25 | ExpoOff_edit, 26 | BottomExpo_edit, 27 | NormalExpo_edit, 28 | DetectionExpo_edit, 29 | 30 | Clean_edit 31 | }para_edit; 32 | 33 | extern para_edit text_edit; 34 | 35 | 36 | #if defined(__cplusplus) 37 | } /* Make sure we have C-declarations in C++ programs */ 38 | #endif 39 | #endif 40 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | // API compatibility 20 | #include "variant.h" 21 | 22 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/Tone.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _WIRING_TONE_ 20 | #define _WIRING_TONE_ 21 | 22 | 23 | #endif /* _WIRING_TONE_ */ 24 | -------------------------------------------------------------------------------- /Inc/pic.h: -------------------------------------------------------------------------------- 1 | #ifndef _PIC_H_ 2 | #define _PIC_H_ 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { 6 | #endif 7 | #include "stdint.h" 8 | 9 | #define VERSION_WITH_PIC 1 10 | 11 | extern unsigned char bmp_public_buf[32 * 1024]; 12 | extern unsigned char bmp_layer_buf[8 * 1024]; 13 | 14 | extern GUI_BITMAP bmp_struct; 15 | extern GUI_BITMAP bmp_struct_140X90; 16 | extern GUI_BITMAP bmp_struct_140X70; 17 | extern GUI_BITMAP bmp_struct_50X40; 18 | extern GUI_BITMAP bmp_struct_90X90; 19 | extern GUI_BITMAP bmp_struct_20X22; 20 | extern GUI_BITMAP bmp_struct_105X105; 21 | extern GUI_BITMAP bmp_struct_116X116; 22 | 23 | extern GUI_BITMAP bmp_struct_50; 24 | extern GUI_BITMAP bmp_struct_100; 25 | extern GUI_BITMAP bmp_struct_150; 26 | extern GUI_BITMAP bmp_struct_key,bmp_struct_key2; 27 | 28 | extern uint8_t drawicon_preview(char *path,int xsize_small,int ysize_small); 29 | extern uint8_t have_pre_pic(char *path); 30 | 31 | #if defined(__cplusplus) 32 | } 33 | #endif 34 | 35 | #endif 36 | 37 | 38 | -------------------------------------------------------------------------------- /User/ui/id_manage.c: -------------------------------------------------------------------------------- 1 | #include "stdint.h" 2 | #include "gui.h" 3 | #include "id_manage.h" 4 | 5 | #define ID_USED 1 6 | #define ID_NOT_USED 0 7 | 8 | static int32_t nextId = GUI_ID_USER; 9 | 10 | static ID_STACK gId_stack[100]; 11 | 12 | void init_win_id() 13 | { 14 | uint32_t i; 15 | for(i = 0; i < sizeof(gId_stack) / sizeof(ID_STACK); i++) 16 | { 17 | gId_stack[i].flag = ID_NOT_USED; 18 | gId_stack[i].id = GUI_ID_USER + i; 19 | } 20 | //HAL_Delay(50); 21 | } 22 | 23 | uint32_t alloc_win_id() 24 | { 25 | int32_t curId = nextId; 26 | uint32_t i; 27 | 28 | for(i = 0; i < sizeof(gId_stack) / sizeof(ID_STACK); i++) 29 | { 30 | if(gId_stack[i].flag == ID_NOT_USED) 31 | { 32 | gId_stack[i].flag == ID_USED; 33 | return gId_stack[i].id; 34 | } 35 | } 36 | return 0; 37 | } 38 | 39 | void del_win_id(int32_t id) 40 | { 41 | uint32_t i; 42 | 43 | for(i = 0; i < sizeof(gId_stack) / sizeof(ID_STACK); i++) 44 | { 45 | if(gId_stack[i].id == id) 46 | { 47 | gId_stack[i].flag = ID_NOT_USED; 48 | } 49 | } 50 | } 51 | 52 | 53 | -------------------------------------------------------------------------------- /Middlewares/gui/WM_Intern_ConfDep.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : WM_Intern_ConfDep.h 4 | Purpose : Windows manager internal include, dependent on LCDConf.h 5 | ---------------------------------------------------------------------- 6 | */ 7 | 8 | #ifndef WM_INTERN_CONFDEP_H /* Make sure we only include it once */ 9 | #define WM_INTERN_CONFDEP_H /* Make sure we only include it once */ 10 | 11 | #include "WM_Intern.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | 16 | #ifdef WM_C 17 | #define GUI_EXTERN 18 | #else 19 | #define GUI_EXTERN extern 20 | #endif 21 | 22 | GUI_EXTERN WM_HWIN WM__ahDesktopWin[GUI_NUM_LAYERS]; /* No longer depends on LCDConf.h ... Can be moved to an other file */ 23 | GUI_EXTERN GUI_COLOR WM__aBkColor[GUI_NUM_LAYERS]; /* No longer depends on LCDConf.h ... Can be moved to an other file */ 24 | 25 | #undef GUI_EXTERN 26 | 27 | #endif /* GUI_WINSUPPORT */ 28 | 29 | #endif /* WM_INTERN_H */ 30 | 31 | /*************************** End of file ****************************/ 32 | -------------------------------------------------------------------------------- /Middlewares/gui/DIALOG.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : Dialog.h 4 | Purpose : Dialog box include 5 | ---------------------------------------------------------------------- 6 | Open items: 7 | None 8 | --------------------END-OF-HEADER------------------------------------- 9 | */ 10 | 11 | #ifndef DIALOG_H 12 | #define DIALOG_H 13 | 14 | #include "WM.h" 15 | #include "BUTTON.h" 16 | #include "CHECKBOX.h" 17 | #include "DROPDOWN.h" 18 | #include "EDIT.h" 19 | #include "FRAMEWIN.h" 20 | #include "LISTBOX.h" 21 | #include "MULTIEDIT.h" 22 | #include "RADIO.h" 23 | #include "SLIDER.h" 24 | #include "TEXT.h" 25 | 26 | #if GUI_WINSUPPORT 27 | 28 | #if defined(__cplusplus) 29 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 30 | #endif 31 | 32 | WM_HWIN WINDOW_CreateIndirect(const GUI_WIDGET_CREATE_INFO* pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK* cb); 33 | void WINDOW_SetDefaultBkColor(GUI_COLOR Color); 34 | 35 | #if defined(__cplusplus) 36 | } 37 | #endif 38 | 39 | #endif 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /Drivers/libstmf4/build_gcc/release.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2011 Arduino. All right reserved. 3 | # 4 | # This library is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU Lesser General Public 6 | # License as published by the Free Software Foundation; either 7 | # version 2.1 of the License, or (at your option) any later version. 8 | # 9 | # This library is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | # See the GNU Lesser General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this library; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | # 18 | 19 | # Optimization level 20 | # -O1 Optimize 21 | # -O2 Optimize even more 22 | # -O3 Optimize yet more 23 | # -O0 Reduce compilation time and make debugging produce the expected results 24 | # -Os Optimize for size 25 | OPTIMIZATION = -Os 26 | -------------------------------------------------------------------------------- /Drivers/libstmf4/build_gcc/debug.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2011 Arduino. All right reserved. 3 | # 4 | # This library is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU Lesser General Public 6 | # License as published by the Free Software Foundation; either 7 | # version 2.1 of the License, or (at your option) any later version. 8 | # 9 | # This library is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | # See the GNU Lesser General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this library; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | # 18 | 19 | # Optimization level 20 | # -O1 Optimize 21 | # -O2 Optimize even more 22 | # -O3 Optimize yet more 23 | # -O0 Reduce compilation time and make debugging produce the expected results 24 | # -Os Optimize for size 25 | OPTIMIZATION = -g -O0 -DDEBUG 26 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/cxxabi-compat.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | extern "C" void __cxa_pure_virtual(void) ; 20 | 21 | /* We compile with nodefaultlibs, so we need to provide an error 22 | * handler for an empty pure virtual function */ 23 | extern "C" void __cxa_pure_virtual(void) { 24 | while(1) 25 | ; 26 | } 27 | -------------------------------------------------------------------------------- /Drivers/libstmf4/build_iar/libsam.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\..\..\..\cores\sam\build_iar\libarduino.ewp 6 | 7 | 8 | $WS_DIR$\libsam.ewp 9 | 10 | 11 | $WS_DIR$\..\..\..\variants\sam3s_ek\build_iar\libvariant_sam3s_ek.ewp 12 | 13 | 14 | $WS_DIR$\..\..\..\cores\sam\validation\build_iar\test.ewp 15 | 16 | 17 | 18 | all_debug_sam3s 19 | 20 | libsam 21 | Debug 22 | 23 | 24 | libarduino 25 | Debug 26 | 27 | 28 | libsam3s_ek 29 | Debug 30 | 31 | 32 | test 33 | Debug 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/avr/dtostrf.h: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /Inc/wifi_upload.h: -------------------------------------------------------------------------------- 1 | #ifndef _WIFI_UPLOAD_H_ 2 | #define _WIFI_UPLOAD_H_ 3 | 4 | #define ESP_FIRMWARE_FILE "1:/MksWifi.bin" 5 | #define ESP_WEB_FIRMWARE_FILE "1:/MksWifi_Web.bin" 6 | #define ESP_WEB_FILE "1:/MksWifi_WebView.bin" 7 | 8 | 9 | 10 | typedef enum 11 | { 12 | upload_idle, 13 | resetting, 14 | connecting, 15 | erasing, 16 | uploading, 17 | done 18 | } UploadState; 19 | 20 | typedef enum 21 | { 22 | success = 0, 23 | timeout, 24 | connected, 25 | badReply, 26 | fileRead, 27 | emptyFile, 28 | respHeader, 29 | slipFrame, 30 | slipState, 31 | slipData, 32 | } EspUploadResult; 33 | 34 | typedef struct 35 | { 36 | FIL uploadFile; 37 | uint32_t fileSize; 38 | 39 | uint32_t uploadAddress; 40 | UploadState state; 41 | uint32_t retriesPerBaudRate; 42 | uint32_t connectAttemptNumber; 43 | uint32_t lastAttemptTime; 44 | uint32_t lastResetTime; 45 | uint32_t uploadBlockNumber; 46 | uint32_t uploadNextPercentToReport; 47 | EspUploadResult uploadResult; 48 | } UPLOAD_STRUCT; 49 | 50 | 51 | extern UPLOAD_STRUCT esp_upload; 52 | 53 | #ifdef __cplusplus 54 | extern "C" { 55 | #endif 56 | int32_t wifi_upload(int type); 57 | #ifdef __cplusplus 58 | } 59 | #endif 60 | 61 | #endif 62 | 63 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/Conditionals.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * Conditionals.h 25 | * OBSOLETE: Replaced by Conditionals_LCD.h and Conditionals_post.h 26 | */ 27 | #error "Old configurations? Please delete all #include lines from Configuration.h and Configuration_adv.h." 28 | -------------------------------------------------------------------------------- /User/ui/draw_printing.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_PRINTING_H_ 2 | #define _DRAW_PRINTING_H_ 3 | #include "stdint.h" 4 | 5 | 6 | #if defined(__cplusplus) 7 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 8 | #endif 9 | extern int once_flag; 10 | 11 | extern void display_print_times(); 12 | extern void display_print_statue(); 13 | extern void draw_printing(); 14 | extern void Clear_printing(); 15 | extern void setProBarValue(int added); 16 | extern void disp_print_time(); 17 | extern void disp_printing_speed(); 18 | extern void disp_sprayer_tem_printing(); 19 | extern void disp_bed_temp_printing(); 20 | extern void disp_fan_speed_printing(); 21 | extern void disp_printing_speed(); 22 | extern void reset_print_time(); 23 | 24 | extern void draw_status_clear(); 25 | 26 | #if tan_mask 27 | extern void setProBarRate(int rate); 28 | #else 29 | extern void setProBarRate(); 30 | #endif 31 | 32 | extern void disp_fan_move_printing(); 33 | extern void start_print_time(); 34 | extern void stop_print_time(); 35 | extern void print_time_run(); 36 | extern void reset_file_info(); 37 | 38 | #if defined(__cplusplus) 39 | } /* Make sure we have C-declarations in C++ programs */ 40 | #endif 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/avr/dtostrf.c: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout) { 22 | char fmt[20]; 23 | sprintf(fmt, "%%%d.%df", width, prec); 24 | sprintf(sout, fmt, val); 25 | return sout; 26 | } 27 | 28 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/Reset.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved. 3 | Copyright (c) 2012 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef RESET_H 21 | #define RESET_H 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | void initiateReset(int ms); 28 | void tickReset(); 29 | void cancelReset(); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/blinkm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * blinkm.h - Control a BlinkM over i2c 25 | */ 26 | 27 | #ifndef _BLINKM_H_ 28 | #define _BLINKM_H_ 29 | 30 | struct LEDColor; 31 | typedef LEDColor LEDColor; 32 | 33 | void blinkm_set_led_color(const LEDColor &color); 34 | 35 | #endif // _BLINKM_H_ 36 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/types.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef __TYPES_H__ 24 | #define __TYPES_H__ 25 | 26 | typedef unsigned long millis_t; 27 | 28 | typedef struct { 29 | int8_t x_index, y_index; 30 | float distance; // When populated, the distance from the search location 31 | } mesh_index_pair; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Middlewares/gui/GUIConf.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUIConf.h 4 | Purpose : Configures abilities, fonts etc. 5 | ---------------------------------------------------------------------- 6 | */ 7 | 8 | 9 | #ifndef GUICONF_H 10 | #define GUICONF_H 11 | 12 | #define GUI_OS (0) /* Compile with multitasking support */ 13 | #define GUI_SUPPORT_TOUCH (1) /* Support a touch screen (req. win-manager) */ 14 | #define GUI_SUPPORT_UNICODE (1) /* Support mixed ASCII/UNICODE strings */ 15 | 16 | #define GUI_DEFAULT_FONT &GUI_Font6x8 17 | #define GUI_ALLOC_SIZE (6*1024) /* Size of dynamic memory ... For WM and memory devices*/ 18 | //#define GUI_ALLOC_SIZE 1024*1024 /* Size of dynamic memory ... For WM and memory devices*/ 19 | 20 | /********************************************************************* 21 | * 22 | * Configuration of available packages 23 | */ 24 | 25 | #define GUI_WINSUPPORT 1 /* Window manager package available */ 26 | #define GUI_SUPPORT_MEMDEV 0 /* Memory devices available */ 27 | #define GUI_SUPPORT_AA 0 /* Anti aliasing available */ 28 | 29 | #endif /* Avoid multiple inclusion */ 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/SanityCheck.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * SanityCheck.h 25 | * 26 | * Test configuration values for errors at compile-time. 27 | */ 28 | 29 | #ifndef _SANITYCHECK_H_ 30 | #define _SANITYCHECK_H_ 31 | 32 | /** 33 | * Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features. 34 | */ 35 | #endif // _SANITYCHECK_H_ 36 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/pca9632.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * Driver for the Philips PCA9632 LED driver. 25 | * Written by Robert Mendon Feb 2017. 26 | */ 27 | 28 | #ifndef __PCA9632_H__ 29 | #define __PCA9632_H__ 30 | 31 | struct LEDColor; 32 | typedef LEDColor LEDColor; 33 | 34 | void pca9632_set_led_color(const LEDColor &color); 35 | 36 | #endif // __PCA9632_H__ 37 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/WMath.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _WIRING_MATH_ 20 | #define _WIRING_MATH_ 21 | 22 | extern long random( long ) ; 23 | extern long random( long, long ) ; 24 | extern void randomSeed( uint32_t dwSeed ) ; 25 | extern long map( long, long, long, long, long ) ; 26 | 27 | extern uint16_t makeWord( uint16_t w ) ; 28 | extern uint16_t makeWord( uint8_t h, uint8_t l ) ; 29 | 30 | #define word(...) makeWord(__VA_ARGS__) 31 | 32 | 33 | #endif /* _WIRING_MATH_ */ 34 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_998.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // User-defined table 1 24 | // Dummy Thermistor table.. It will ALWAYS read a fixed value. 25 | #ifndef DUMMY_THERMISTOR_998_VALUE 26 | #define DUMMY_THERMISTOR_998_VALUE 25 27 | #endif 28 | 29 | const short temptable_998[][2] PROGMEM = { 30 | { OV( 1), DUMMY_THERMISTOR_998_VALUE }, 31 | { OV(1023), DUMMY_THERMISTOR_998_VALUE } 32 | }; 33 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_999.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // User-defined table 2 24 | // Dummy Thermistor table.. It will ALWAYS read a fixed value. 25 | #ifndef DUMMY_THERMISTOR_999_VALUE 26 | #define DUMMY_THERMISTOR_999_VALUE 25 27 | #endif 28 | 29 | const short temptable_999[][2] PROGMEM = { 30 | { OV( 1), DUMMY_THERMISTOR_999_VALUE }, 31 | { OV(1023), DUMMY_THERMISTOR_999_VALUE } 32 | }; 33 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_110.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // Pt100 with 1k0 pullup 24 | const short temptable_110[][2] PROGMEM = { 25 | // only a few values are needed as the curve is very flat 26 | PtLine( 0, 100, 1000) 27 | PtLine( 50, 100, 1000) 28 | PtLine(100, 100, 1000) 29 | PtLine(150, 100, 1000) 30 | PtLine(200, 100, 1000) 31 | PtLine(250, 100, 1000) 32 | PtLine(300, 100, 1000) 33 | }; 34 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_147.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // Pt100 with 4k7 pullup 24 | const short temptable_147[][2] PROGMEM = { 25 | // only a few values are needed as the curve is very flat 26 | PtLine( 0, 100, 4700) 27 | PtLine( 50, 100, 4700) 28 | PtLine(100, 100, 4700) 29 | PtLine(150, 100, 4700) 30 | PtLine(200, 100, 4700) 31 | PtLine(250, 100, 4700) 32 | PtLine(300, 100, 4700) 33 | }; 34 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_1047.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // Pt1000 with 4k7 pullup 24 | const short temptable_1047[][2] PROGMEM = { 25 | // only a few values are needed as the curve is very flat 26 | PtLine( 0, 1000, 4700) 27 | PtLine( 50, 1000, 4700) 28 | PtLine(100, 1000, 4700) 29 | PtLine(150, 1000, 4700) 30 | PtLine(200, 1000, 4700) 31 | PtLine(250, 1000, 4700) 32 | PtLine(300, 1000, 4700) 33 | }; 34 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/wiring_shift.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _WIRING_SHIFT_ 20 | #define _WIRING_SHIFT_ 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | /* 27 | * \brief 28 | */ 29 | extern uint32_t shiftIn( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder ) ; 30 | 31 | 32 | /* 33 | * \brief 34 | */ 35 | extern void shiftOut( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder, uint32_t ulVal ) ; 36 | 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* _WIRING_SHIFT_ */ 43 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/watchdog.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef WATCHDOG_H 24 | #define WATCHDOG_H 25 | 26 | #include "Marlin.h" 27 | //#include 28 | 29 | // Initialize watchdog with a 4 second interrupt time 30 | void watchdog_init(); 31 | 32 | // Reset watchdog. MUST be called at least every 4 seconds after the 33 | // first watchdog_init or AVR will go into emergency procedures. 34 | inline void watchdog_reset() { wdt_reset(); } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Middlewares/gui/GUI_HOOK.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUI_HOOK.h 4 | Purpose : Hook handling routines 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef GUI_HOOK_H 9 | #define GUI_HOOK_H 10 | 11 | #include "WM_Intern.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | #if defined(__cplusplus) 16 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 17 | #endif 18 | 19 | /********************************************************************* 20 | * 21 | * Types 22 | * 23 | ********************************************************************** 24 | */ 25 | 26 | typedef int GUI_HOOK_FUNC(WM_MESSAGE* pMsg); 27 | 28 | typedef struct GUI_HOOK { 29 | struct GUI_HOOK* pNext; 30 | GUI_HOOK_FUNC* pHookFunc; 31 | } GUI_HOOK; 32 | 33 | /********************************************************************* 34 | * 35 | * Functions 36 | * 37 | ********************************************************************** 38 | */ 39 | 40 | void GUI_HOOK_Add (GUI_HOOK** ppFirstHook, GUI_HOOK* pNewHook, GUI_HOOK_FUNC* pHookFunc); 41 | void GUI_HOOK_Remove(GUI_HOOK** ppFirstHook, GUI_HOOK* pHook); 42 | 43 | #if defined(__cplusplus) 44 | } 45 | #endif 46 | 47 | #endif /* GUI_WINSUPPORT */ 48 | #endif /* GUI_HOOK_H */ 49 | 50 | /*************************** End of file ****************************/ 51 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/WInterrupts.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved. 3 | Copyright (c) 2011-2012 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _WIRING_INTERRUPTS_ 21 | #define _WIRING_INTERRUPTS_ 22 | 23 | #include "Arduino.h" 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | void attachInterrupt(uint32_t pin, void (*callback)(void), uint32_t mode); 30 | 31 | void detachInterrupt(uint32_t pin); 32 | 33 | // void interrupts(void); 34 | 35 | // void noInterrupts(void); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | 41 | #endif /* _WIRING_INTERRUPTS_ */ 42 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/IPAddress.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | 6 | IPAddress::IPAddress() 7 | { 8 | memset(_address, 0, sizeof(_address)); 9 | } 10 | 11 | IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet) 12 | { 13 | _address[0] = first_octet; 14 | _address[1] = second_octet; 15 | _address[2] = third_octet; 16 | _address[3] = fourth_octet; 17 | } 18 | 19 | IPAddress::IPAddress(uint32_t address) 20 | { 21 | memcpy(_address, &address, sizeof(_address)); 22 | } 23 | 24 | IPAddress::IPAddress(const uint8_t *address) 25 | { 26 | memcpy(_address, address, sizeof(_address)); 27 | } 28 | 29 | IPAddress& IPAddress::operator=(const uint8_t *address) 30 | { 31 | memcpy(_address, address, sizeof(_address)); 32 | return *this; 33 | } 34 | 35 | IPAddress& IPAddress::operator=(uint32_t address) 36 | { 37 | memcpy(_address, (const uint8_t *)&address, sizeof(_address)); 38 | return *this; 39 | } 40 | 41 | bool IPAddress::operator==(const uint8_t* addr) 42 | { 43 | return memcmp(addr, _address, sizeof(_address)) == 0; 44 | } 45 | 46 | size_t IPAddress::printTo(Print& p) const 47 | { 48 | size_t n = 0; 49 | for (int i =0; i < 3; i++) 50 | { 51 | n += p.print(_address[i], DEC); 52 | n += p.print('.'); 53 | } 54 | n += p.print(_address[3], DEC); 55 | return n; 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /Inc/cpld.h: -------------------------------------------------------------------------------- 1 | /******************** (C) COPYRIGHT 2018 www.makerbase.com ******************** 2 | * File Name : cpld.h 3 | * Author : www.armjishu.com 4 | * Version : V1.0 5 | * Library : Using STM32F2XX_STDPERIPH_VERSION V3.3.0 6 | * Date : 07/25/2018 7 | * Description : Header for cpld.c file. 8 | *******************************************************************************/ 9 | /* Define to prevent recursive inclusion -------------------------------------*/ 10 | #ifndef __CPLD_H 11 | #define __CPLD_H 12 | #if defined(__cplusplus) 13 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 14 | #endif 15 | 16 | /* Includes ------------------------------------------------------------------*/ 17 | #include "sys.h" 18 | #include "stm32f4xx.h" 19 | #include "stm32f4xx_spi.h" 20 | 21 | /* User Define --------------------------------------------------------*/ 22 | /* Exported functions ------------------------------------------------------- */ 23 | /*----- High layer function -----*/ 24 | void genRowData_T(u8 data); 25 | void writeRowDataToCpld_T(); 26 | void writeFrameToCpld_T(); 27 | void CPLD_TEST(); 28 | /*----- Low layer function -----*/ 29 | 30 | #if defined(__cplusplus) 31 | } /* Make sure we have C-declarations in C++ programs */ 32 | #endif 33 | 34 | 35 | #endif /* __CPLD_H */ 36 | 37 | /******************* (C) COPYRIGHT 2018 www.makerbase.com *****END OF FILE****/ 38 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/wiring_private.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved. 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef WiringPrivate_h 21 | #define WiringPrivate_h 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C"{ 29 | #endif 30 | 31 | // Includes Atmel CMSIS 32 | //#include 33 | // Includes STM32 CMSIS 34 | #include 35 | 36 | #include "wiring_constants.h" 37 | 38 | #ifdef __cplusplus 39 | } // extern "C" 40 | 41 | #include "HardwareSerial.h" 42 | 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_1010.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // Pt1000 with 1k0 pullup 24 | const short temptable_1010[][2] PROGMEM = { 25 | PtLine( 0, 1000, 1000) 26 | PtLine( 25, 1000, 1000) 27 | PtLine( 50, 1000, 1000) 28 | PtLine( 75, 1000, 1000) 29 | PtLine(100, 1000, 1000) 30 | PtLine(125, 1000, 1000) 31 | PtLine(150, 1000, 1000) 32 | PtLine(175, 1000, 1000) 33 | PtLine(200, 1000, 1000) 34 | PtLine(225, 1000, 1000) 35 | PtLine(250, 1000, 1000) 36 | PtLine(275, 1000, 1000) 37 | PtLine(300, 1000, 1000) 38 | }; 39 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/itoa.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _ITOA_ 20 | #define _ITOA_ 21 | 22 | #ifdef __cplusplus 23 | extern "C"{ 24 | #endif // __cplusplus 25 | 26 | #if 0 27 | 28 | extern void itoa( int n, char s[] ) ; 29 | 30 | #else 31 | 32 | extern char* itoa( int value, char *string, int radix ) ; 33 | extern char* ltoa( long value, char *string, int radix ) ; 34 | extern char* utoa( unsigned long value, char *string, int radix ) ; 35 | extern char* ultoa( unsigned long value, char *string, int radix ) ; 36 | #endif /* 0 */ 37 | 38 | #ifdef __cplusplus 39 | } // extern "C" 40 | #endif // __cplusplus 41 | 42 | #endif // _ITOA_ 43 | -------------------------------------------------------------------------------- /Middlewares/gui/TEXT_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : TEXT.h 4 | Purpose : TEXT include 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef TEXT_PRIVATE_H 9 | #define TEXT_PRIVATE_H 10 | 11 | #include "TEXT.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | /********************************************************************* 16 | * 17 | * Private config defaults 18 | * 19 | ********************************************************************** 20 | */ 21 | 22 | #ifndef TEXT_SUPPORT_TRANSPARENCY 23 | #define TEXT_SUPPORT_TRANSPARENCY WM_SUPPORT_TRANSPARENCY 24 | #endif 25 | 26 | /********************************************************************* 27 | * 28 | * Macros for internal use 29 | * 30 | ********************************************************************** 31 | */ 32 | 33 | #define TEXT_ID 0x4544 /* Magic numer, should be unique if possible */ 34 | 35 | 36 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 37 | #define TEXT_ASSERT_IS_VALID_PTR(p) DEBUG_ERROROUT_IF(p->DebugId != TEXT_ID, "xxx.c: Wrong handle type or Object not init'ed") 38 | #define TEXT_INIT_ID(p) p->DebugId = TEXT_ID 39 | #define TEXT_DEINIT_ID(p) p->DebugId = TEXT_ID+1 40 | #else 41 | #define TEXT_ASSERT_IS_VALID_PTR(p) 42 | #define TEXT_INIT_ID(p) 43 | #define TEXT_DEINIT_ID(p) 44 | #endif 45 | 46 | #endif /* if GUI_WINSUPPORT */ 47 | #endif /* TEXT_PRIVATE_H */ 48 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/language_pl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * Polish 25 | * 26 | * LCD Menu Messages 27 | * See also http://marlinfw.org/docs/development/lcd_language.html 28 | * 29 | */ 30 | #ifndef LANGUAGE_PL_H 31 | #define LANGUAGE_PL_H 32 | 33 | #define MAPPER_C3C4C5_PL 34 | #define DISPLAY_CHARSET_ISO10646_PL 35 | 36 | /** 37 | * One version with accented characters and one without 38 | */ 39 | #if ENABLED(DOGLCD) 40 | #include "language_pl-DOGM.h" 41 | #else 42 | #include "language_pl-HD44780.h" 43 | #endif 44 | 45 | #endif // LANGUAGE_PL_H 46 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/Printable.h: -------------------------------------------------------------------------------- 1 | /* 2 | Printable.h - Interface class that allows printing of complex types 3 | Copyright (c) 2011 Adrian McEwen. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef Printable_h 21 | #define Printable_h 22 | 23 | #include 24 | 25 | class Print; 26 | 27 | /** The Printable class provides a way for new classes to allow themselves to be printed. 28 | By deriving from Printable and implementing the printTo method, it will then be possible 29 | for users to print out instances of this class by passing them into the usual 30 | Print::print and Print::println methods. 31 | */ 32 | 33 | class Printable 34 | { 35 | public: 36 | virtual size_t printTo(Print& p) const = 0; 37 | }; 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /User/ui/draw_dialog.h: -------------------------------------------------------------------------------- 1 | #ifndef _DRAW_DIALOG_H_ 2 | #define _DRAW_DIALOG_H_ 3 | 4 | #define DIALOG_TYPE_STOP 0 5 | #define DIALOG_TYPE_PRINT_FILE 1 6 | #define DIALOG_TYPE_REPRINT_NO_FILE 2 7 | 8 | #define DIALOG_TYPE_M80_FAIL 3 //** 9 | #define DIALOG_TYPE_MESSEGE_ERR1 4//** 10 | 11 | #define DIALOG_TYPE_UPDATE_ESP_FIRMARE 5 12 | #define DIALOG_TYPE_UPDATE_ESP_DATA 6 13 | #define DIALOG_TYPE_UPLOAD_FILE 7 14 | #define DIALOG_TYPE_UNBIND 8 15 | 16 | #define DIALOG_TYPE_FILAMENT_LOAD_HEAT 9 17 | #define DIALOG_TYPE_FILAMENT_HEAT_LOAD_COMPLETED 10 18 | #define DIALOG_TYPE_FILAMENT_LOADING 11 19 | #define DIALOG_TYPE_FILAMENT_LOAD_COMPLETED 12 20 | #define DIALOG_TYPE_FILAMENT_UNLOAD_HEAT 13 21 | #define DIALOG_TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED 14 22 | #define DIALOG_TYPE_FILAMENT_UNLOADING 15 23 | #define DIALOG_TYPE_FILAMENT_UNLOAD_COMPLETED 16 24 | 25 | #define DIALOG_TYPE_FILE_LOADING 17//** 26 | 27 | #define DIALOG_TYPE_Z_HOME 18 28 | #define DIALOG_TYPE_Z_UNHOME 19 29 | #define DIALOG_TYPE_DEL_FILE 20 30 | 31 | #define DIALOG_TYPE_CLEANING 21 32 | #define DIALOG_TYPE_COMPLETE 22 33 | #if defined(__cplusplus) 34 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 35 | #endif 36 | extern uint8_t dialog_display_flg; 37 | extern void draw_dialog(uint8_t type); 38 | extern void Clear_dialog(void); 39 | #if defined(__cplusplus) 40 | } /* Make sure we have C-declarations in C++ programs */ 41 | #endif 42 | 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /User/ui/QRENCODE/mmask.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Masking for Micro QR Code. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __MMASK_H__ 23 | #define __MMASK_H__ 24 | 25 | extern unsigned char *MMask_makeMask(int version, unsigned char *frame, int mask, QRecLevel level); 26 | extern unsigned char *MMask_mask(int version, unsigned char *frame, QRecLevel level); 27 | 28 | #ifdef WITH_TESTS 29 | extern int MMask_evaluateSymbol(int width, unsigned char *frame); 30 | extern void MMask_writeFormatInformation(int version, int width, unsigned char *frame, int mask, QRecLevel level); 31 | extern unsigned char *MMask_makeMaskedFrame(int width, unsigned char *frame, int mask); 32 | #endif 33 | 34 | #endif /* __MMASK_H__ */ 35 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/planner_bezier.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * planner_bezier.h 25 | * 26 | * Compute and buffer movement commands for bezier curves 27 | * 28 | */ 29 | 30 | #ifndef PLANNER_BEZIER_H 31 | #define PLANNER_BEZIER_H 32 | 33 | #include "Marlin.h" 34 | 35 | void cubic_b_spline( 36 | const float position[NUM_AXIS], // current position 37 | const float target[NUM_AXIS], // target position 38 | const float offset[4], // a pair of offsets 39 | float fr_mm_s, 40 | uint8_t extruder 41 | ); 42 | 43 | #endif // PLANNER_BEZIER_H 44 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/blinkm.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * blinkm.cpp - Control a BlinkM over i2c 25 | */ 26 | 27 | #include "MarlinConfig.h" 28 | 29 | #if ENABLED(BLINKM) 30 | 31 | #include "blinkm.h" 32 | #include "leds.h" 33 | #include 34 | 35 | void blinkm_set_led_color(const LEDColor &color) { 36 | Wire.begin(); 37 | Wire.beginTransmission(0x09); 38 | Wire.write('o'); //to disable ongoing script, only needs to be used once 39 | Wire.write('n'); 40 | Wire.write(color.r); 41 | Wire.write(color.g); 42 | Wire.write(color.b); 43 | Wire.endTransmission(); 44 | } 45 | 46 | #endif // BLINKM 47 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_4.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 10k thermistor 24 | const short temptable_4[][2] PROGMEM = { 25 | { OV( 1), 430 }, 26 | { OV( 54), 137 }, 27 | { OV( 107), 107 }, 28 | { OV( 160), 91 }, 29 | { OV( 213), 80 }, 30 | { OV( 266), 71 }, 31 | { OV( 319), 64 }, 32 | { OV( 372), 57 }, 33 | { OV( 425), 51 }, 34 | { OV( 478), 46 }, 35 | { OV( 531), 41 }, 36 | { OV( 584), 35 }, 37 | { OV( 637), 30 }, 38 | { OV( 690), 25 }, 39 | { OV( 743), 20 }, 40 | { OV( 796), 14 }, 41 | { OV( 849), 7 }, 42 | { OV( 902), 0 }, 43 | { OV( 955), -11 }, 44 | { OV(1008), -35 } 45 | }; 46 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/HardwareSerial.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef HardwareSerial_h 20 | #define HardwareSerial_h 21 | 22 | #include 23 | 24 | #include "Stream.h" 25 | 26 | class HardwareSerial : public Stream 27 | { 28 | public: 29 | void begin(unsigned long); 30 | void end(); 31 | virtual int available(void) = 0; 32 | virtual int peek(void) = 0; 33 | virtual int16_t read(void) = 0; 34 | virtual void flush(void) = 0; 35 | virtual size_t write(uint8_t) = 0; 36 | using Print::write; // pull in write(str) and write(buf, size) from Print 37 | virtual operator bool() = 0; 38 | }; 39 | 40 | //extern void serialEventRun(void) __attribute__((weak)); //skyblue mask 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Middlewares/gui/DROPDOWN_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : DROPDOWN_Private.h 4 | Purpose : DROPDOWN private header file 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef DROPDOWN_PRIVATE_H 9 | #define DROPDOWN_PRIVATE_H 10 | 11 | #include "DROPDOWN.h" 12 | #include "WIDGET.h" 13 | #include "GUI_ARRAY.h" 14 | 15 | #if GUI_WINSUPPORT 16 | 17 | /************************************************************ 18 | * 19 | * Create / Status flags 20 | */ 21 | #define DROPDOWN_SF_AUTOSCROLLBAR DROPDOWN_CF_AUTOSCROLLBAR 22 | 23 | #define DROPDOWN_H2P(h) (DROPDOWN_Obj*) GUI_ALLOC_h2p(h) 24 | 25 | typedef struct { 26 | const GUI_FONT GUI_UNI_PTR * pFont; 27 | GUI_COLOR aBackColor[3]; 28 | GUI_COLOR aTextColor[3]; 29 | I16 TextBorderSize; 30 | I16 Align; 31 | } DROPDOWN_PROPS; 32 | 33 | typedef struct { 34 | WIDGET Widget; 35 | I16 Sel; /* current selection */ 36 | I16 ySizeEx; /* Drop down size */ 37 | I16 TextHeight; 38 | GUI_ARRAY Handles; 39 | WM_SCROLL_STATE ScrollState; 40 | DROPDOWN_PROPS Props; 41 | WM_HWIN hListWin; 42 | U8 Flags; 43 | U16 ItemSpacing; 44 | U8 ScrollbarWidth; 45 | char IsPressed; 46 | #if GUI_DEBUG_LEVEL >1 47 | int DebugId; 48 | #endif 49 | } DROPDOWN_Obj; 50 | 51 | void DROPDOWN__AdjustHeight(DROPDOWN_Handle hObj, DROPDOWN_Obj* pObj); 52 | 53 | #endif /* GUI_WINSUPPORT */ 54 | #endif /* DROPDOWN_PRIVATE_H */ 55 | -------------------------------------------------------------------------------- /Drivers/BSP/Components/at24cxx/at24cxx.h: -------------------------------------------------------------------------------- 1 | #ifndef __AT24CXX_H_ 2 | #define __AT24CXX_H_ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | #include "i2c.h" 9 | 10 | 11 | #define AT24C01 127 //PAGE_SIZE 8 byte 12 | #define AT24C02 255 //PAGE_SIZE 8 byte 13 | #define AT24C04 511 //PAGE_SIZE 16 byte 14 | #define AT24C08 1023 //PAGE_SIZE 16 byte 15 | #define AT24C16 2047 //PAGE_SIZE 16 byte 16 | #define AT24C32 4095 17 | #define AT24C64 8191 18 | #define AT24C128 16383 19 | #define AT24C256 32767 20 | 21 | #define AT24CXX_TYPE AT24C16 22 | #define AT24CXX_ADDRESS 0XA0 23 | #define AT24CXX_PAGE_SIZE 16//8 24 | 25 | //#if (AT24CXX_TYPE < AT24C04) //skyblue 26 | #if (AT24CXX_TYPE < AT24C32) //skyblue 27 | #define AT24CXX_MEMADD_SIZE I2C_MEMADD_SIZE_8BIT 28 | #else 29 | #define AT24CXX_MEMADD_SIZE I2C_MEMADD_SIZE_16BIT 30 | #endif 31 | 32 | #if 1 33 | void I2Cx_Error(uint8_t Addr); 34 | 35 | 36 | void AT24CXX_Init(void); 37 | void AT24CXX_WriteByte(uint8_t Reg, uint8_t Value); 38 | uint8_t AT24CXX_ReadByte(uint8_t Reg); 39 | HAL_StatusTypeDef AT24CXX_PageWrite(uint16_t MemAddress, uint8_t* pBuffer, uint32_t BufferSize); 40 | HAL_StatusTypeDef AT24CXX_Write(uint16_t MemAddress, uint8_t* pBuffer, uint32_t BufferSize); 41 | HAL_StatusTypeDef AT24CXX_Read(uint16_t MemAddress, uint8_t* pBuffer, uint32_t BufferSize); 42 | HAL_StatusTypeDef AT24CXX_IsDeviceReady(uint32_t Trials); 43 | 44 | uint8_t AT24CXX_Check(void); 45 | #endif 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/RingBuffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _RING_BUFFER_ 20 | #define _RING_BUFFER_ 21 | 22 | #include 23 | 24 | // Define constants and variables for buffering incoming serial data. We're 25 | // using a ring buffer (I think), in which head is the index of the location 26 | // to which to write the next incoming character and tail is the index of the 27 | // location from which to read. 28 | //#define SERIAL_BUFFER_SIZE 64 29 | #define SERIAL_BUFFER_SIZE 96 30 | 31 | class RingBuffer 32 | { 33 | public: 34 | uint8_t _aucBuffer[SERIAL_BUFFER_SIZE] ; 35 | int _iHead ; 36 | int _iTail ; 37 | 38 | public: 39 | RingBuffer( void ) ; 40 | void store_char( uint8_t c ) ; 41 | } ; 42 | 43 | #endif /* _RING_BUFFER_ */ 44 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/wiring_pulse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved. 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _WIRING_PULSE_ 21 | #define _WIRING_PULSE_ 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | /* 28 | * \brief Measures the length (in microseconds) of a pulse on the pin; state is HIGH 29 | * or LOW, the type of pulse to measure. Works on pulses from 2-3 microseconds 30 | * to 3 minutes in length, but must be called at least a few dozen microseconds 31 | * before the start of the pulse. 32 | */ 33 | extern uint32_t pulseIn( uint32_t ulPin, uint32_t ulState, uint32_t ulTimeout = 1000000L ) ; 34 | 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif /* _WIRING_PULSE_ */ 41 | -------------------------------------------------------------------------------- /User/ui/QRENCODE/bitstream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Binary sequence class. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __BITSTREAM_H__ 23 | #define __BITSTREAM_H__ 24 | 25 | typedef struct { 26 | int length; 27 | unsigned char *data; 28 | } BitStream; 29 | 30 | extern BitStream *BitStream_new(void); 31 | extern int BitStream_append(BitStream *bstream, BitStream *arg); 32 | extern int BitStream_appendNum(BitStream *bstream, int bits, unsigned int num); 33 | extern int BitStream_appendBytes(BitStream *bstream, int size, unsigned char *data); 34 | #define BitStream_size(__bstream__) (__bstream__->length) 35 | extern unsigned char *BitStream_toByte(BitStream *bstream); 36 | extern void BitStream_free(BitStream *bstream); 37 | 38 | #endif /* __BITSTREAM_H__ */ 39 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_8.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) 24 | const short temptable_8[][2] PROGMEM = { 25 | { OV( 1), 704 }, 26 | { OV( 54), 216 }, 27 | { OV( 107), 175 }, 28 | { OV( 160), 152 }, 29 | { OV( 213), 137 }, 30 | { OV( 266), 125 }, 31 | { OV( 319), 115 }, 32 | { OV( 372), 106 }, 33 | { OV( 425), 99 }, 34 | { OV( 478), 91 }, 35 | { OV( 531), 85 }, 36 | { OV( 584), 78 }, 37 | { OV( 637), 71 }, 38 | { OV( 690), 65 }, 39 | { OV( 743), 58 }, 40 | { OV( 796), 50 }, 41 | { OV( 849), 42 }, 42 | { OV( 902), 31 }, 43 | { OV( 955), 17 }, 44 | { OV(1008), 0 } 45 | }; 46 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/RingBuffer.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #include "RingBuffer.h" 20 | #include 21 | 22 | RingBuffer::RingBuffer( void ) 23 | { 24 | memset( _aucBuffer, 0, SERIAL_BUFFER_SIZE ) ; 25 | _iHead=0 ; 26 | _iTail=0 ; 27 | } 28 | 29 | void RingBuffer::store_char( uint8_t c ) 30 | { 31 | int i = (uint32_t)(_iHead + 1) % SERIAL_BUFFER_SIZE ; 32 | 33 | // if we should be storing the received character into the location 34 | // just before the tail (meaning that the head would advance to the 35 | // current location of the tail), we're about to overflow the buffer 36 | // and so we don't write the character or advance the head. 37 | if ( i != _iTail ) 38 | { 39 | _aucBuffer[_iHead] = c ; 40 | _iHead = i ; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/neopixel.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * neopixel.h 25 | */ 26 | 27 | #include "MarlinConfig.h" 28 | 29 | #define NEOPIXEL_IS_RGB (NEOPIXEL_TYPE == NEO_RGB || NEOPIXEL_TYPE == NEO_RBG || NEOPIXEL_TYPE == NEO_GRB || NEOPIXEL_TYPE == NEO_GBR || NEOPIXEL_TYPE == NEO_BRG || NEOPIXEL_TYPE == NEO_BGR) 30 | #define NEOPIXEL_IS_RGBW !NEOPIXEL_IS_RGB 31 | 32 | #if NEOPIXEL_IS_RGB 33 | #define NEO_WHITE 255, 255, 255, 0 34 | #else 35 | #define NEO_WHITE 0, 0, 0, 255 36 | #endif 37 | 38 | #include 39 | #include 40 | 41 | void setup_neopixel(); 42 | void set_neopixel_color(const uint32_t color); 43 | 44 | extern Adafruit_NeoPixel pixels; 45 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/MarlinConfig.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef MARLIN_CONFIG_H 24 | #define MARLIN_CONFIG_H 25 | 26 | //#include "fastio.h" 27 | #include "macros.h" 28 | #include "boards.h" 29 | #include "Version.h" 30 | #include "Configuration.h" 31 | #include "Conditionals_LCD.h" 32 | #include "tmc_macros.h" 33 | #include "Configuration_adv.h" 34 | #include "pins.h" 35 | /* 36 | #ifndef USBCON 37 | #define HardwareSerial_h // trick to disable the standard HWserial 38 | #endif 39 | */ 40 | //#include "Arduino.h" 41 | #include "Marlin_export.h" 42 | #include "stm32f4xx_hal.h" 43 | #include "mks_variant.h" 44 | 45 | #include "Conditionals_post.h" 46 | #include "SanityCheck.h" 47 | 48 | #endif // MARLIN_CONFIG_H 49 | -------------------------------------------------------------------------------- /Middlewares/gui/BUTTON_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : BUTTON_Private.h 4 | Purpose : BUTTON private header file 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef BUTTON_PRIVATE_H 9 | #define BUTTON_PRIVATE_H 10 | 11 | #include "WM.h" 12 | #include "BUTTON.h" 13 | 14 | #if GUI_WINSUPPORT 15 | 16 | #define BUTTON_ID 0x42555454 17 | 18 | #define BUTTON_H2P(h) (BUTTON_Obj*) GUI_ALLOC_h2p(h) 19 | 20 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 21 | #define BUTTON_ASSERT_IS_VALID_PTR(p) GUI_DEBUG_ERROROUT_IF(p->DebugId != BUTTON_ID, "BUTTON.C: Wrong handle type or object not init'ed") 22 | #define BUTTON_INIT_ID(p) p->DebugId = BUTTON_ID 23 | #define BUTTON_DEINIT_ID(p) p->DebugId = BUTTON_ID+1 24 | #else 25 | #define BUTTON_ASSERT_IS_VALID_PTR(p) 26 | #define BUTTON_INIT_ID(p) 27 | #define BUTTON_DEINIT_ID(p) 28 | #endif 29 | 30 | typedef struct { 31 | GUI_COLOR aBkColor[3]; 32 | GUI_COLOR aTextColor[3]; 33 | const GUI_FONT GUI_UNI_PTR * pFont; 34 | I16 Align; 35 | } BUTTON_PROPS; 36 | 37 | typedef struct { 38 | WIDGET Widget; 39 | BUTTON_PROPS Props; 40 | WM_HMEM hpText; 41 | WM_HMEM ahDrawObj[3]; 42 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 43 | int DebugId; 44 | #endif 45 | char *BmpFileName; 46 | char *gcode_path; 47 | char clear_flag; 48 | } BUTTON_Obj; 49 | 50 | extern BUTTON_PROPS BUTTON__DefaultProps; 51 | 52 | void BUTTON__SetDrawObj(BUTTON_Handle hObj, int Index, GUI_DRAW_HANDLE hDrawObj); 53 | 54 | 55 | #endif /* GUI_WINSUPPORT */ 56 | #endif /* BUTTON_H */ 57 | -------------------------------------------------------------------------------- /User/ui/QRENCODE/rscode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Reed solomon encoder. This code is taken from Phil Karn's libfec then 5 | * editted and packed into a pair of .c and .h files. 6 | * 7 | * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q 8 | * (libfec is released under the GNU Lesser General Public License.) 9 | * 10 | * Copyright (C) 2006-2011 Kentaro Fukuchi 11 | * 12 | * This library is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU Lesser General Public 14 | * License as published by the Free Software Foundation; either 15 | * version 2.1 of the License, or any later version. 16 | * 17 | * This library is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | * Lesser General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU Lesser General Public 23 | * License along with this library; if not, write to the Free Software 24 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | */ 26 | 27 | #ifndef __RSCODE_H__ 28 | #define __RSCODE_H__ 29 | 30 | /* 31 | * General purpose RS codec, 8-bit symbols. 32 | */ 33 | 34 | typedef struct _RS RS; 35 | 36 | extern RS *init_rs(int symsize, int gfpoly, int fcr, int prim, int nroots, int pad); 37 | extern void encode_rs_char(RS *rs, const unsigned char *data, unsigned char *parity); 38 | extern void free_rs_char(RS *rs); 39 | extern void free_rs_cache(void); 40 | 41 | #endif /* __RSCODE_H__ */ 42 | -------------------------------------------------------------------------------- /Middlewares/gui/WM_GUI.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : WM_GUI.h 4 | Purpose : Windows manager include for low level GUI routines 5 | ---------------------------------------------------------------------- 6 | */ 7 | 8 | #ifndef WM_GUI_H /* Make sure we only include it once */ 9 | #define WM_GUI_H 10 | 11 | #if defined(__cplusplus) 12 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 13 | #endif 14 | 15 | int WM__InitIVRSearch(const GUI_RECT* pMaxRect); 16 | int WM__GetNextIVR (void); 17 | int WM__GetOrgX_AA(void); 18 | int WM__GetOrgY_AA(void); 19 | 20 | #define WM_ITERATE_START(pRect) \ 21 | { \ 22 | if (WM__InitIVRSearch(pRect)) \ 23 | do { 24 | 25 | #define WM_ITERATE_END() \ 26 | } while (WM__GetNextIVR()); \ 27 | } 28 | 29 | #define WM_ADDORGX(x) x += GUI_Context.xOff 30 | #define WM_ADDORGY(y) y += GUI_Context.yOff 31 | #define WM_ADDORG(x0,y0) WM_ADDORGX(x0); WM_ADDORGY(y0) 32 | #define WM_ADDORGX_AA(x) x += WM__GetOrgX_AA() 33 | #define WM_ADDORGY_AA(y) y += WM__GetOrgY_AA() 34 | #define WM_ADDORG_AA(x0,y0) WM_ADDORGX_AA(x0); WM_ADDORGY_AA(y0) 35 | #define WM_SUBORGX(x) x -= GUI_Context.xOff 36 | #define WM_SUBORGY(y) y -= GUI_Context.yOff 37 | #define WM_SUBORG(x0,y0) WM_SUBORGX(x0); WM_SUBORGY(y0) 38 | 39 | #if defined(__cplusplus) 40 | } 41 | #endif 42 | 43 | 44 | #endif /* Avoid multiple inclusion */ 45 | 46 | /*************************** End of file ****************************/ 47 | -------------------------------------------------------------------------------- /EWARM/stm32f407xx_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__ = 0x08010000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08010000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x080FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; 11 | define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000; 12 | define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x2000; 15 | define symbol __ICFEDIT_size_heap__ = 0x1000; 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 CCMRAM_region = mem:[from __ICFEDIT_region_CCMRAM_start__ to __ICFEDIT_region_CCMRAM_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 }; -------------------------------------------------------------------------------- /EWARM/stm32f407xx_sram.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_CCMRAM_start__ = 0x10000000; 12 | define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF; 13 | /*-Sizes-*/ 14 | define symbol __ICFEDIT_size_cstack__ = 0x2000; 15 | define symbol __ICFEDIT_size_heap__ = 0x1000; 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 CCMRAM_region = mem:[from __ICFEDIT_region_CCMRAM_start__ to __ICFEDIT_region_CCMRAM_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 }; 35 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_13.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // Hisens thermistor B25/50 =3950 +/-1% 24 | const short temptable_13[][2] PROGMEM = { 25 | { OV( 20.04), 300 }, 26 | { OV( 23.19), 290 }, 27 | { OV( 26.71), 280 }, 28 | { OV( 31.23), 270 }, 29 | { OV( 36.52), 260 }, 30 | { OV( 42.75), 250 }, 31 | { OV( 50.68), 240 }, 32 | { OV( 60.22), 230 }, 33 | { OV( 72.03), 220 }, 34 | { OV( 86.84), 210 }, 35 | { OV(102.79), 200 }, 36 | { OV(124.46), 190 }, 37 | { OV(151.02), 180 }, 38 | { OV(182.86), 170 }, 39 | { OV(220.72), 160 }, 40 | { OV(316.96), 140 }, 41 | { OV(447.17), 120 }, 42 | { OV(590.61), 100 }, 43 | { OV(737.31), 80 }, 44 | { OV(857.77), 60 }, 45 | { OV(939.52), 40 }, 46 | { OV(986.03), 20 }, 47 | { OV(1008.7), 0 } 48 | }; 49 | -------------------------------------------------------------------------------- /User/ui/QRENCODE/mask.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Masking. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __MASK_H__ 23 | #define __MASK_H__ 24 | 25 | extern unsigned char *Mask_makeMask(int width, unsigned char *frame, int mask, QRecLevel level); 26 | extern unsigned char *Mask_mask(int width, unsigned char *frame, QRecLevel level); 27 | 28 | #ifdef WITH_TESTS 29 | extern int Mask_calcN2(int width, unsigned char *frame); 30 | extern int Mask_calcN1N3(int length, int *runLength); 31 | extern int Mask_calcRunLength(int width, unsigned char *frame, int dir, int *runLength); 32 | extern int Mask_evaluateSymbol(int width, unsigned char *frame); 33 | extern int Mask_writeFormatInformation(int width, unsigned char *frame, int mask, QRecLevel level); 34 | extern unsigned char *Mask_makeMaskedFrame(int width, unsigned char *frame, int mask); 35 | #endif 36 | 37 | #endif /* __MASK_H__ */ 38 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/SdFatUtil.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * Arduino SdFat Library 25 | * Copyright (C) 2008 by William Greiman 26 | * 27 | * This file is part of the Arduino Sd2Card Library 28 | */ 29 | #ifndef _SDFATUTIL_H_ 30 | #define _SDFATUTIL_H_ 31 | 32 | /** 33 | * \file 34 | * \brief Useful utility functions. 35 | */ 36 | /** Store and print a string in flash memory.*/ 37 | #define PgmPrint(x) SerialPrint_P(PSTR(x)) 38 | /** Store and print a string in flash memory followed by a CR/LF.*/ 39 | #define PgmPrintln(x) SerialPrintln_P(PSTR(x)) 40 | 41 | namespace SdFatUtil { 42 | int FreeRam(); 43 | void print_P(PGM_P str); 44 | void println_P(PGM_P str); 45 | void SerialPrint_P(PGM_P str); 46 | void SerialPrintln_P(PGM_P str); 47 | } 48 | 49 | using namespace SdFatUtil; // NOLINT 50 | 51 | #endif // _SDFATUTIL_H_ 52 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/bitmap_flags.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016, 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef _BITMAP_FLAGS_H_ 24 | #define _BITMAP_FLAGS_H_ 25 | 26 | #include "macros.h" 27 | 28 | /** 29 | * These support functions allow the use of large bit arrays of flags that take very 30 | * little RAM. Currently they are limited to being 16x16 in size. Changing the declaration 31 | * to unsigned long will allow us to go to 32x32 if higher resolution meshes are needed 32 | * in the future. 33 | */ 34 | FORCE_INLINE void bitmap_clear(unsigned int bits[16], const uint8_t x, const uint8_t y) { CBI(bits[y], x); } 35 | FORCE_INLINE void bitmap_set(unsigned int bits[16], const uint8_t x, const uint8_t y) { SBI(bits[y], x); } 36 | FORCE_INLINE bool is_bitmap_set(unsigned int bits[16], const uint8_t x, const uint8_t y) { return TEST(bits[y], x); } 37 | 38 | #endif // _BITMAP_FLAGS_H_ 39 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_3.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // mendel-parts 24 | const short temptable_3[][2] PROGMEM = { 25 | { OV( 1), 864 }, 26 | { OV( 21), 300 }, 27 | { OV( 25), 290 }, 28 | { OV( 29), 280 }, 29 | { OV( 33), 270 }, 30 | { OV( 39), 260 }, 31 | { OV( 46), 250 }, 32 | { OV( 54), 240 }, 33 | { OV( 64), 230 }, 34 | { OV( 75), 220 }, 35 | { OV( 90), 210 }, 36 | { OV( 107), 200 }, 37 | { OV( 128), 190 }, 38 | { OV( 154), 180 }, 39 | { OV( 184), 170 }, 40 | { OV( 221), 160 }, 41 | { OV( 265), 150 }, 42 | { OV( 316), 140 }, 43 | { OV( 375), 130 }, 44 | { OV( 441), 120 }, 45 | { OV( 513), 110 }, 46 | { OV( 588), 100 }, 47 | { OV( 734), 80 }, 48 | { OV( 856), 60 }, 49 | { OV( 938), 40 }, 50 | { OV( 986), 20 }, 51 | { OV(1008), 0 }, 52 | { OV(1018), -20 } 53 | }; 54 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/avr/pgmspace.h: -------------------------------------------------------------------------------- 1 | #ifndef __PGMSPACE_H_ 2 | #define __PGMSPACE_H_ 1 3 | 4 | #include 5 | 6 | #define PROGMEM 7 | #define PGM_P const char * 8 | //#define PSTR(str) (str) //skyblue modidy 2016-11-29 9 | 10 | #define _SFR_BYTE(n) (n) 11 | 12 | typedef void prog_void; 13 | typedef char prog_char; 14 | typedef unsigned char prog_uchar; 15 | typedef int8_t prog_int8_t; 16 | typedef uint8_t prog_uint8_t; 17 | typedef int16_t prog_int16_t; 18 | typedef uint16_t prog_uint16_t; 19 | typedef int32_t prog_int32_t; 20 | typedef uint32_t prog_uint32_t; 21 | 22 | #define memcpy_P(dest, src, num) memcpy((dest), (src), (num)) 23 | #define strcpy_P(dest, src) strcpy((dest), (src)) 24 | #define strcat_P(dest, src) strcat((dest), (src)) 25 | #define strcmp_P(a, b) strcmp((a), (b)) 26 | #define strstr_P(a, b) strstr((a), (b)) 27 | #define strlen_P(a) strlen((a)) 28 | #define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__) 29 | #if 0 //skyblue modidy 2016-11-29 30 | 31 | #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) 32 | #define pgm_read_word(addr) (*(const unsigned short *)(addr)) 33 | #define pgm_read_dword(addr) (*(const unsigned long *)(addr)) 34 | #define pgm_read_float(addr) (*(const float *)(addr)) 35 | 36 | #define pgm_read_byte_near(addr) pgm_read_byte(addr) 37 | #endif //skyblue modidy 2016-11-29 38 | #define pgm_read_word_near(addr) pgm_read_word(addr) 39 | #define pgm_read_dword_near(addr) pgm_read_dword(addr) 40 | #define pgm_read_float_near(addr) pgm_read_float(addr) 41 | #define pgm_read_byte_far(addr) pgm_read_byte(addr) 42 | #define pgm_read_word_far(addr) pgm_read_word(addr) 43 | #define pgm_read_dword_far(addr) pgm_read_dword(addr) 44 | #define pgm_read_float_far(addr) pgm_read_float(addr) 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /Middlewares/gui/MULTIPAGE_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : MULTIPAGE_Private.h 4 | Purpose : Private MULTIPAGE include 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef MULTIPAGE_PRIVATE_H 9 | 10 | #include "GUIDebug.h" 11 | #include "MULTIPAGE.h" 12 | 13 | /********************************************************************* 14 | * 15 | * Macros for internal use 16 | * 17 | ********************************************************************** 18 | */ 19 | 20 | #define MULTIPAGE_STATE_ENABLED (1<<0) 21 | #define MULTIPAGE_STATE_SCROLLMODE WIDGET_STATE_USER0 22 | 23 | #define MULTIPAGE_ID 0x4544 /* Magic number, should be unique if possible */ 24 | 25 | #define MULTIPAGE_H2P(h) (MULTIPAGE_Obj*) WM_H2P(h) 26 | 27 | #if GUI_DEBUG_LEVEL > 1 28 | #define MULTIPAGE_ASSERT_IS_VALID_PTR(p) GUI_DEBUG_ERROROUT_IF(p->DebugId != MULTIPAGE_ID, "MULTIPAGE.c: Wrong handle type or Object not init'ed") 29 | #define MULTIPAGE_INIT_ID(p) p->DebugId = MULTIPAGE_ID 30 | #define MULTIPAGE_DEINIT_ID(p) p->DebugId = MULTIPAGE_ID+1 31 | #else 32 | #define MULTIPAGE_ASSERT_IS_VALID_PTR(p) 33 | #define MULTIPAGE_INIT_ID(p) 34 | #define MULTIPAGE_DEINIT_ID(p) 35 | #endif 36 | 37 | /********************************************************************* 38 | * 39 | * Externals 40 | * 41 | ********************************************************************** 42 | */ 43 | 44 | extern const GUI_FONT GUI_UNI_PTR * MULTIPAGE__pDefaultFont; 45 | extern unsigned MULTIPAGE__DefaultAlign; 46 | extern GUI_COLOR MULTIPAGE__DefaultBkColor[2]; 47 | extern GUI_COLOR MULTIPAGE__DefaultTextColor[2]; 48 | 49 | #endif /* MULTIPAGE_PRIVATE_H */ 50 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_66.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // DyzeDesign 500°C Thermistor 24 | const short temptable_66[][2] PROGMEM = { 25 | { OV( 17.5), 850 }, 26 | { OV( 17.9), 500 }, 27 | { OV( 21.7), 480 }, 28 | { OV( 26.6), 460 }, 29 | { OV( 33.1), 440 }, 30 | { OV( 41.0), 420 }, 31 | { OV( 52.3), 400 }, 32 | { OV( 67.7), 380 }, 33 | { OV( 86.5), 360 }, 34 | { OV( 112.0), 340 }, 35 | { OV( 147.2), 320 }, 36 | { OV( 194.0), 300 }, 37 | { OV( 254.3), 280 }, 38 | { OV( 330.2), 260 }, 39 | { OV( 427.9), 240 }, 40 | { OV( 533.4), 220 }, 41 | { OV( 646.5), 200 }, 42 | { OV( 754.4), 180 }, 43 | { OV( 844.3), 160 }, 44 | { OV( 911.7), 140 }, 45 | { OV( 958.6), 120 }, 46 | { OV( 988.8), 100 }, 47 | { OV(1006.6), 80 }, 48 | { OV(1015.8), 60 }, 49 | { OV(1021.3), 30 }, 50 | { OV(1023) - 1, 25}, 51 | { OV( 1023), 20} 52 | }; 53 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/SdFile.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * \file 25 | * \brief SdFile class 26 | */ 27 | 28 | /** 29 | * Arduino SdFat Library 30 | * Copyright (C) 2009 by William Greiman 31 | * 32 | * This file is part of the Arduino Sd2Card Library 33 | */ 34 | #ifndef _SDFILE_H_ 35 | #define _SDFILE_H_ 36 | 37 | #include "SdBaseFile.h" 38 | #include 39 | 40 | /** 41 | * \class SdFile 42 | * \brief SdBaseFile with Print. 43 | */ 44 | class SdFile : public SdBaseFile, public Print { 45 | public: 46 | SdFile() {} 47 | SdFile(const char* name, uint8_t oflag); 48 | #if ARDUINO >= 100 49 | size_t write(uint8_t b); 50 | #else 51 | void write(uint8_t b); 52 | #endif 53 | 54 | int16_t write(const void* buf, uint16_t nbyte); 55 | void write(const char* str); 56 | void write_P(PGM_P str); 57 | void writeln_P(PGM_P str); 58 | }; 59 | 60 | #endif // _SDFILE_H_ 61 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/hex_print_routines.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef HEX_PRINT_ROUTINES_H 24 | #define HEX_PRINT_ROUTINES_H 25 | 26 | #include "MarlinConfig.h" 27 | #include "gcode.h" 28 | 29 | #if ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(M100_FREE_MEMORY_WATCHER) || ENABLED(DEBUG_GCODE_PARSER) 30 | 31 | // 32 | // Utility functions to create and print hex strings as nybble, byte, and word. 33 | // 34 | 35 | inline char hex_nybble(const uint8_t n) { 36 | return (n & 0xF) + ((n & 0xF) < 10 ? '0' : 'A' - 10); 37 | } 38 | char* hex_byte(const uint8_t b); 39 | char* hex_word(const uint16_t w); 40 | char* hex_address(uint16_t w); 41 | 42 | void print_hex_nybble(const uint8_t n); 43 | void print_hex_byte(const uint8_t b); 44 | void print_hex_word(const uint16_t w); 45 | //void print_hex_address(const void * const w); 46 | 47 | #endif // AUTO_BED_LEVELING_UBL || M100_FREE_MEMORY_WATCHER || DEBUG_GCODE_PARSER 48 | #endif // HEX_PRINT_ROUTINES_H 49 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/WMath.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | extern "C" { 20 | #include "stdlib.h" 21 | #include "stdint.h" 22 | } 23 | #include "WMath.h" 24 | 25 | extern void randomSeed( uint32_t dwSeed ) 26 | { 27 | if ( dwSeed != 0 ) 28 | { 29 | srand( dwSeed ) ; 30 | } 31 | } 32 | 33 | extern long random( long howbig ) 34 | { 35 | if ( howbig == 0 ) 36 | { 37 | return 0 ; 38 | } 39 | 40 | return rand() % howbig; 41 | } 42 | 43 | extern long random( long howsmall, long howbig ) 44 | { 45 | if (howsmall >= howbig) 46 | { 47 | return howsmall; 48 | } 49 | 50 | long diff = howbig - howsmall; 51 | 52 | return random(diff) + howsmall; 53 | } 54 | 55 | extern long map(long x, long in_min, long in_max, long out_min, long out_max) 56 | { 57 | return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; 58 | } 59 | 60 | extern uint16_t makeWord( uint16_t w ) 61 | { 62 | return w ; 63 | } 64 | 65 | extern uint16_t makeWord( uint8_t h, uint8_t l ) 66 | { 67 | return (h << 8) | l ; 68 | } 69 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_10.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k RS thermistor 198-961 (4.7k pullup) 24 | const short temptable_10[][2] PROGMEM = { 25 | { OV( 1), 929 }, 26 | { OV( 36), 299 }, 27 | { OV( 71), 246 }, 28 | { OV( 106), 217 }, 29 | { OV( 141), 198 }, 30 | { OV( 176), 184 }, 31 | { OV( 211), 173 }, 32 | { OV( 246), 163 }, 33 | { OV( 281), 154 }, 34 | { OV( 316), 147 }, 35 | { OV( 351), 140 }, 36 | { OV( 386), 134 }, 37 | { OV( 421), 128 }, 38 | { OV( 456), 122 }, 39 | { OV( 491), 117 }, 40 | { OV( 526), 112 }, 41 | { OV( 561), 107 }, 42 | { OV( 596), 102 }, 43 | { OV( 631), 97 }, 44 | { OV( 666), 91 }, 45 | { OV( 701), 86 }, 46 | { OV( 736), 81 }, 47 | { OV( 771), 76 }, 48 | { OV( 806), 70 }, 49 | { OV( 841), 63 }, 50 | { OV( 876), 56 }, 51 | { OV( 911), 48 }, 52 | { OV( 946), 38 }, 53 | { OV( 981), 23 }, 54 | { OV(1005), 5 }, 55 | { OV(1016), 0 } 56 | }; 57 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/mesh_bed_leveling.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #include "mesh_bed_leveling.h" 24 | 25 | #if ENABLED(MESH_BED_LEVELING) 26 | 27 | mesh_bed_leveling mbl; 28 | 29 | bool mesh_bed_leveling::has_mesh; 30 | 31 | float mesh_bed_leveling::z_offset, 32 | mesh_bed_leveling::z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y], 33 | mesh_bed_leveling::index_to_xpos[GRID_MAX_POINTS_X], 34 | mesh_bed_leveling::index_to_ypos[GRID_MAX_POINTS_Y]; 35 | 36 | mesh_bed_leveling::mesh_bed_leveling() { 37 | for (uint8_t i = 0; i < GRID_MAX_POINTS_X; ++i) 38 | index_to_xpos[i] = MESH_MIN_X + i * (MESH_X_DIST); 39 | for (uint8_t i = 0; i < GRID_MAX_POINTS_Y; ++i) 40 | index_to_ypos[i] = MESH_MIN_Y + i * (MESH_Y_DIST); 41 | reset(); 42 | } 43 | 44 | void mesh_bed_leveling::reset() { 45 | has_mesh = false; 46 | z_offset = 0; 47 | ZERO(z_values); 48 | } 49 | 50 | #endif // MESH_BED_LEVELING 51 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_9.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup) 24 | const short temptable_9[][2] PROGMEM = { 25 | { OV( 1), 936 }, 26 | { OV( 36), 300 }, 27 | { OV( 71), 246 }, 28 | { OV( 106), 218 }, 29 | { OV( 141), 199 }, 30 | { OV( 176), 185 }, 31 | { OV( 211), 173 }, 32 | { OV( 246), 163 }, 33 | { OV( 281), 155 }, 34 | { OV( 316), 147 }, 35 | { OV( 351), 140 }, 36 | { OV( 386), 134 }, 37 | { OV( 421), 128 }, 38 | { OV( 456), 122 }, 39 | { OV( 491), 117 }, 40 | { OV( 526), 112 }, 41 | { OV( 561), 107 }, 42 | { OV( 596), 102 }, 43 | { OV( 631), 97 }, 44 | { OV( 666), 92 }, 45 | { OV( 701), 87 }, 46 | { OV( 736), 81 }, 47 | { OV( 771), 76 }, 48 | { OV( 806), 70 }, 49 | { OV( 841), 63 }, 50 | { OV( 876), 56 }, 51 | { OV( 911), 48 }, 52 | { OV( 946), 38 }, 53 | { OV( 981), 23 }, 54 | { OV(1005), 5 }, 55 | { OV(1016), 0 } 56 | }; 57 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/FatFs/src/drivers/sd_diskio.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file sd_diskio.h 4 | * @author MCD Application Team 5 | * @version V1.3.0 6 | * @date 08-May-2015 7 | * @brief Header for sd_diskio.c module 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 __SD_DISKIO_H 30 | #define __SD_DISKIO_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | /* Exported types ------------------------------------------------------------*/ 34 | /* Exported constants --------------------------------------------------------*/ 35 | /* Exported functions ------------------------------------------------------- */ 36 | extern Diskio_drvTypeDef SD_Driver; 37 | 38 | #endif /* __SD_DISKIO_H */ 39 | 40 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 41 | 42 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbh_diskio.h 4 | * @author MCD Application Team 5 | * @version V1.3.0 6 | * @date 08-May-2015 7 | * @brief Header for usbh_diskio.c module 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 __USBH_DISKIO_H 30 | #define __USBH_DISKIO_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | /* Exported types ------------------------------------------------------------*/ 34 | /* Exported constants --------------------------------------------------------*/ 35 | /* Exported functions ------------------------------------------------------- */ 36 | extern Diskio_drvTypeDef USBH_Driver; 37 | 38 | #endif /* __USBH_DISKIO_H */ 39 | 40 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 41 | 42 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_12.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed) 24 | const short temptable_12[][2] PROGMEM = { 25 | { OV( 35), 180 }, // top rating 180C 26 | { OV( 211), 140 }, 27 | { OV( 233), 135 }, 28 | { OV( 261), 130 }, 29 | { OV( 290), 125 }, 30 | { OV( 328), 120 }, 31 | { OV( 362), 115 }, 32 | { OV( 406), 110 }, 33 | { OV( 446), 105 }, 34 | { OV( 496), 100 }, 35 | { OV( 539), 95 }, 36 | { OV( 585), 90 }, 37 | { OV( 629), 85 }, 38 | { OV( 675), 80 }, 39 | { OV( 718), 75 }, 40 | { OV( 758), 70 }, 41 | { OV( 793), 65 }, 42 | { OV( 822), 60 }, 43 | { OV( 841), 55 }, 44 | { OV( 875), 50 }, 45 | { OV( 899), 45 }, 46 | { OV( 926), 40 }, 47 | { OV( 946), 35 }, 48 | { OV( 962), 30 }, 49 | { OV( 977), 25 }, 50 | { OV( 987), 20 }, 51 | { OV( 995), 15 }, 52 | { OV(1001), 10 }, 53 | { OV(1010), 0 }, 54 | { OV(1023), -40 } 55 | }; 56 | -------------------------------------------------------------------------------- /EWARM/settings/mksDLP.mksDLP.cspy.bat: -------------------------------------------------------------------------------- 1 | @REM This batch file has been generated by the IAR Embedded Workbench 2 | @REM C-SPY Debugger, as an aid to preparing a command line for running 3 | @REM the cspybat command line utility using the appropriate settings. 4 | @REM 5 | @REM Note that this file is generated every time a new debug session 6 | @REM is initialized, so you may want to move or rename the file before 7 | @REM making changes. 8 | @REM 9 | @REM You can launch cspybat by typing the name of this batch file followed 10 | @REM by the name of the debug file (usually an ELF/DWARF or UBROF file). 11 | @REM 12 | @REM Read about available command line parameters in the C-SPY Debugging 13 | @REM Guide. Hints about additional command line parameters that may be 14 | @REM useful in specific cases: 15 | @REM --download_only Downloads a code image without starting a debug 16 | @REM session afterwards. 17 | @REM --silent Omits the sign-on message. 18 | @REM --timeout Limits the maximum allowed execution time. 19 | @REM 20 | 21 | 22 | "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\common\bin\cspybat" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armproc.dll" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armjlink.dll" %1 --plugin "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armbat.dll" --device_macro "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\debugger\ST\STM32F4xx.dmac" --backend -B "--endian=little" "--cpu=Cortex-M4F" "--fpu=VFPv4" "-p" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\CONFIG\debugger\ST\STM32F407VE.ddf" "--drv_verify_download" "--semihosting" "--device=STM32F407VE" "--drv_communication=USB0" "--jlink_speed=auto" "--jlink_initial_speed=32" "--jlink_reset_strategy=0,0" "--jlink_interface=SWD" "--drv_catch_exceptions=0x000" "--drv_swo_clock_setup=168000000,0,2000000" 23 | 24 | 25 | -------------------------------------------------------------------------------- /EWARM/settings/mksRobin2.mksRobin2.cspy.bat: -------------------------------------------------------------------------------- 1 | @REM This batch file has been generated by the IAR Embedded Workbench 2 | @REM C-SPY Debugger, as an aid to preparing a command line for running 3 | @REM the cspybat command line utility using the appropriate settings. 4 | @REM 5 | @REM Note that this file is generated every time a new debug session 6 | @REM is initialized, so you may want to move or rename the file before 7 | @REM making changes. 8 | @REM 9 | @REM You can launch cspybat by typing the name of this batch file followed 10 | @REM by the name of the debug file (usually an ELF/DWARF or UBROF file). 11 | @REM 12 | @REM Read about available command line parameters in the C-SPY Debugging 13 | @REM Guide. Hints about additional command line parameters that may be 14 | @REM useful in specific cases: 15 | @REM --download_only Downloads a code image without starting a debug 16 | @REM session afterwards. 17 | @REM --silent Omits the sign-on message. 18 | @REM --timeout Limits the maximum allowed execution time. 19 | @REM 20 | 21 | 22 | "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\common\bin\cspybat" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armproc.dll" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armjlink.dll" %1 --plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\bin\armbat.dll" --device_macro "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\debugger\ST\Trace_STM32F4xx.dmac" --backend -B "--endian=little" "--cpu=Cortex-M4F" "--fpu=VFPv4" "-p" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\CONFIG\debugger\ST\STM32F407ZE.ddf" "--drv_verify_download" "--semihosting" "--device=STM32F407ZE" "--drv_communication=USB0" "--jlink_speed=auto" "--jlink_initial_speed=32" "--jlink_reset_strategy=0,0" "--jlink_interface=SWD" "--drv_catch_exceptions=0x000" "--drv_swo_clock_setup=168000000,0,2000000" 23 | 24 | 25 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/MarlinSPI_nouse.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef __MARLIN_SPI_H__ 24 | #define __MARLIN_SPI_H__ 25 | 26 | #include 27 | #include "softspi.h" 28 | 29 | template 30 | class SPI { 31 | static SoftSPI softSPI; 32 | public: 33 | FORCE_INLINE static void init() { softSPI.begin(); } 34 | FORCE_INLINE static void send(uint8_t data) { softSPI.send(data); } 35 | FORCE_INLINE static uint8_t receive() { return softSPI.receive(); } 36 | }; 37 | 38 | 39 | // Hardware SPI 40 | template<> 41 | class SPI { 42 | public: 43 | FORCE_INLINE static void init() { 44 | OUT_WRITE(SCK_PIN, LOW); 45 | OUT_WRITE(MOSI_PIN, HIGH); 46 | SET_INPUT(MISO_PIN); 47 | WRITE(MISO_PIN, HIGH); 48 | } 49 | FORCE_INLINE static uint8_t receive() { 50 | SPDR = 0; 51 | for (;!TEST(SPSR, SPIF);); 52 | return SPDR; 53 | } 54 | 55 | }; 56 | 57 | #endif // __MARLIN_SPI_H__ 58 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/neopixel.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | * neopixel.cpp 25 | */ 26 | 27 | #include "MarlinConfig.h" 28 | 29 | #if ENABLED(NEOPIXEL_LED) 30 | 31 | #include "neopixel.h" 32 | 33 | Adafruit_NeoPixel pixels(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIXEL_TYPE + NEO_KHZ800); 34 | 35 | void set_neopixel_color(const uint32_t color) { 36 | for (uint16_t i = 0; i < pixels.numPixels(); ++i) 37 | pixels.setPixelColor(i, color); 38 | pixels.show(); 39 | } 40 | 41 | void setup_neopixel() { 42 | SET_OUTPUT(NEOPIXEL_PIN); 43 | pixels.setBrightness(NEOPIXEL_BRIGHTNESS); // 0 - 255 range 44 | pixels.begin(); 45 | pixels.show(); // initialize to all off 46 | 47 | #if ENABLED(NEOPIXEL_STARTUP_TEST) 48 | safe_delay(1000); 49 | set_neopixel_color(pixels.Color(255, 0, 0, 0)); // red 50 | safe_delay(1000); 51 | set_neopixel_color(pixels.Color(0, 255, 0, 0)); // green 52 | safe_delay(1000); 53 | set_neopixel_color(pixels.Color(0, 0, 255, 0)); // blue 54 | safe_delay(1000); 55 | #endif 56 | set_neopixel_color(pixels.Color(NEO_WHITE)); // white 57 | } 58 | 59 | #endif // NEOPIXEL_LED 60 | 61 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/syscalls.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * \file syscalls.h 21 | * 22 | * Implementation of newlib syscall. 23 | * 24 | */ 25 | 26 | /*---------------------------------------------------------------------------- 27 | * Headers 28 | *----------------------------------------------------------------------------*/ 29 | #include 30 | #include 31 | #include //skyblue 32 | #include //skyblue 33 | 34 | 35 | /*---------------------------------------------------------------------------- 36 | * Exported functions 37 | *----------------------------------------------------------------------------*/ 38 | #ifdef __cplusplus 39 | extern "C" { 40 | #endif 41 | 42 | extern caddr_t _sbrk( int incr ) ; 43 | 44 | extern int link( char *cOld, char *cNew ) ; 45 | 46 | extern int _close( int file ) ; 47 | 48 | extern int _fstat( int file, struct stat *st ) ; 49 | 50 | extern int _isatty( int file ) ; 51 | 52 | extern int _lseek( int file, int ptr, int dir ) ; 53 | 54 | extern int _read(int file, char *ptr, int len) ; 55 | 56 | extern int _write( int file, char *ptr, int len ) ; 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/wiring_shift.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #include "Arduino.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C"{ 23 | #endif 24 | 25 | uint32_t shiftIn( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder ) 26 | { 27 | uint8_t value = 0 ; 28 | uint8_t i ; 29 | 30 | for ( i=0 ; i < 8 ; ++i ) 31 | { 32 | digitalWrite( ulClockPin, HIGH ) ; 33 | 34 | if ( ulBitOrder == LSBFIRST ) 35 | { 36 | value |= digitalRead( ulDataPin ) << i ; 37 | } 38 | else 39 | { 40 | value |= digitalRead( ulDataPin ) << (7 - i) ; 41 | } 42 | 43 | digitalWrite( ulClockPin, LOW ) ; 44 | } 45 | 46 | return value ; 47 | } 48 | 49 | void shiftOut( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder, uint32_t ulVal ) 50 | { 51 | uint8_t i ; 52 | 53 | for ( i=0 ; i < 8 ; i++ ) 54 | { 55 | if ( ulBitOrder == LSBFIRST ) 56 | { 57 | digitalWrite( ulDataPin, !!(ulVal & (1 << i)) ) ; 58 | } 59 | else 60 | { 61 | digitalWrite( ulDataPin, !!(ulVal & (1 << (7 - i))) ) ; 62 | } 63 | 64 | digitalWrite( ulClockPin, HIGH ) ; 65 | digitalWrite( ulClockPin, LOW ) ; 66 | } 67 | } 68 | 69 | #ifdef __cplusplus 70 | } // extern "C" 71 | #endif 72 | -------------------------------------------------------------------------------- /Middlewares/gui/HEADER_Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : HEADER_Private.h 4 | Purpose : Private HEADER include 5 | --------------------END-OF-HEADER------------------------------------- 6 | */ 7 | 8 | #ifndef HEADER_PRIVATE_H 9 | #define HEADER_PRIVATE_H 10 | 11 | 12 | #include "WIDGET.h" 13 | #include "HEADER.h" 14 | #include "WM.h" 15 | #include "GUI_ARRAY.h" 16 | 17 | #if GUI_WINSUPPORT 18 | 19 | /********************************************************************* 20 | * 21 | * Macros for internal use 22 | * 23 | ********************************************************************** 24 | */ 25 | 26 | #define HEADER_ID 0x4567 /* Magic numer, should be unique if possible */ 27 | 28 | #define HEADER_H2P(h) (HEADER_Obj*) WM_H2P(h) 29 | 30 | #if GUI_DEBUG_LEVEL > 1 31 | #define HEADER_ASSERT_IS_VALID_PTR(p) DEBUG_ERROROUT_IF(p->DebugId != HEADER_ID, "xxx.c: Wrong handle type or Object not init'ed") 32 | #define HEADER_INIT_ID(p) p->DebugId = HEADER_ID 33 | #define HEADER_DEINIT_ID(p) p->DebugId = HEADER_ID+1 34 | #else 35 | #define HEADER_ASSERT_IS_VALID_PTR(p) 36 | #define HEADER_INIT_ID(p) 37 | #define HEADER_DEINIT_ID(p) 38 | #endif 39 | 40 | /********************************************************************* 41 | * 42 | * Object definition 43 | * 44 | ********************************************************************** 45 | */ 46 | 47 | typedef struct { 48 | int Width; 49 | I16 Align; 50 | WM_HMEM hDrawObj; 51 | char acText[1]; 52 | } HEADER_COLUMN; 53 | 54 | typedef struct { 55 | WIDGET Widget; 56 | GUI_COLOR BkColor; 57 | GUI_COLOR TextColor; 58 | GUI_ARRAY Columns; 59 | int CapturePosX; 60 | int CaptureItem; 61 | int ScrollPos; 62 | const GUI_FONT GUI_UNI_PTR * pFont; 63 | #if (GUI_DEBUG_LEVEL > 1) 64 | int DebugId; 65 | #endif 66 | } HEADER_Obj; 67 | 68 | void HEADER__SetDrawObj(HEADER_Handle hObj, unsigned Index, GUI_DRAW_HANDLE hDrawObj); 69 | 70 | 71 | #endif /* GUI_WINSUPPORT */ 72 | #endif /* Avoid multiple inclusion */ 73 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 24 | // 200k ATC Semitec 204GT-2 25 | // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf 26 | // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance 27 | // 28 | const short temptable_2[][2] PROGMEM = { 29 | { OV( 1), 848 }, 30 | { OV( 30), 300 }, // top rating 300C 31 | { OV( 34), 290 }, 32 | { OV( 39), 280 }, 33 | { OV( 46), 270 }, 34 | { OV( 53), 260 }, 35 | { OV( 63), 250 }, 36 | { OV( 74), 240 }, 37 | { OV( 87), 230 }, 38 | { OV( 104), 220 }, 39 | { OV( 124), 210 }, 40 | { OV( 148), 200 }, 41 | { OV( 176), 190 }, 42 | { OV( 211), 180 }, 43 | { OV( 252), 170 }, 44 | { OV( 301), 160 }, 45 | { OV( 357), 150 }, 46 | { OV( 420), 140 }, 47 | { OV( 489), 130 }, 48 | { OV( 562), 120 }, 49 | { OV( 636), 110 }, 50 | { OV( 708), 100 }, 51 | { OV( 775), 90 }, 52 | { OV( 835), 80 }, 53 | { OV( 884), 70 }, 54 | { OV( 924), 60 }, 55 | { OV( 955), 50 }, 56 | { OV( 977), 40 }, 57 | { OV( 993), 30 }, 58 | { OV(1004), 20 }, 59 | { OV(1012), 10 }, 60 | { OV(1016), 0 } 61 | }; 62 | -------------------------------------------------------------------------------- /User/ui/QRENCODE/split.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Input data splitter. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * The following data / specifications are taken from 8 | * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) 9 | * or 10 | * "Automatic identification and data capture techniques -- 11 | * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) 12 | * 13 | * This library is free software; you can redistribute it and/or 14 | * modify it under the terms of the GNU Lesser General Public 15 | * License as published by the Free Software Foundation; either 16 | * version 2.1 of the License, or any later version. 17 | * 18 | * This library is distributed in the hope that it will be useful, 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | * Lesser General Public License for more details. 22 | * 23 | * You should have received a copy of the GNU Lesser General Public 24 | * License along with this library; if not, write to the Free Software 25 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 | */ 27 | 28 | #ifndef __SPLIT_H__ 29 | #define __SPLIT_H__ 30 | 31 | #include "qrencode.h" 32 | 33 | /** 34 | * Split the input string (null terminated) into QRinput. 35 | * @param string input string 36 | * @param hint give QR_MODE_KANJI if the input string contains Kanji character encoded in Shift-JIS. If not, give QR_MODE_8. 37 | * @param casesensitive 0 for case-insensitive encoding (all alphabet characters are replaced to UPPER-CASE CHARACTERS. 38 | * @retval 0 success. 39 | * @retval -1 an error occurred. errno is set to indicate the error. See 40 | * Exceptions for the details. 41 | * @throw EINVAL invalid input object. 42 | * @throw ENOMEM unable to allocate memory for input objects. 43 | */ 44 | extern int Split_splitStringToQRinput(const char *string, QRinput *input, 45 | QRencodeMode hint, int casesensitive); 46 | 47 | #endif /* __SPLIT_H__ */ 48 | -------------------------------------------------------------------------------- /Middlewares/gui/GUI_ARRAY.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUI_ARRAY.h 4 | Purpose : Array handling routines 5 | ---------------------------END-OF-HEADER------------------------------ 6 | */ 7 | 8 | #ifndef GUIARRAY_H 9 | #define GUIARRAY_H 10 | 11 | #include "WM_Intern.h" 12 | 13 | #if GUI_WINSUPPORT 14 | 15 | typedef enum { 16 | GUI_ARRAY_STATE_NOT_CREATED, 17 | GUI_ARRAY_STATE_CREATED, 18 | GUI_ARRAY_STATE_DELETED 19 | } GUI_ARRAY_STATE; 20 | 21 | typedef struct { 22 | U16 NumItems; 23 | WM_HMEM haHandle; /* Handle to buffer holding handles */ 24 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 25 | GUI_ARRAY_STATE InitState; 26 | #endif 27 | } GUI_ARRAY; 28 | 29 | 30 | 31 | int GUI_ARRAY_AddItem (GUI_ARRAY* pThis, const void *pNew, int Len); 32 | void GUI_ARRAY_Delete (GUI_ARRAY* pThis); 33 | WM_HMEM GUI_ARRAY_GethItem (const GUI_ARRAY* pThis, unsigned int Index); 34 | unsigned GUI_ARRAY_GetNumItems (const GUI_ARRAY* pThis); 35 | void* GUI_ARRAY_GetpItem (const GUI_ARRAY* pThis, unsigned int Index); 36 | /* Optional methods */ 37 | int GUI_ARRAY_SethItem (GUI_ARRAY* pThis, unsigned int Index, WM_HMEM hItem); 38 | WM_HMEM GUI_ARRAY_SetItem (GUI_ARRAY* pThis, unsigned int Index, const void* pData, int Len); 39 | void GUI_ARRAY_DeleteItem (GUI_ARRAY* pThis, unsigned int Index); 40 | char GUI_ARRAY_InsertBlankItem(GUI_ARRAY* pThis, unsigned int Index); 41 | WM_HMEM GUI_ARRAY_InsertItem (GUI_ARRAY* pThis, unsigned int Index, int Len); 42 | void* GUI_ARRAY_ResizeItem (GUI_ARRAY* pThis, unsigned int Index, int Len); 43 | 44 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 45 | void GUI_ARRAY_Create ( GUI_ARRAY * pThis); 46 | void GUI_ARRAY_Check (const GUI_ARRAY * pThis); 47 | #define GUI_ARRAY_CREATE(pThis) GUI_ARRAY_Create(pThis) 48 | #define GUI_ARRAY_CHECK(pThis) GUI_ARRAY_Check(pThis) 49 | #else 50 | #define GUI_ARRAY_CREATE(pThis) 51 | #define GUI_ARRAY_CHECK(pThis) 52 | #endif 53 | 54 | 55 | #endif 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/hex_print_routines.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | #include "Marlin.h" 23 | #include "gcode.h" 24 | 25 | #if ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(M100_FREE_MEMORY_WATCHER) || ENABLED(DEBUG_GCODE_PARSER) 26 | 27 | #include "hex_print_routines.h" 28 | 29 | static char _hex[7] = "0x0000"; 30 | 31 | char* hex_byte(const uint8_t b) { 32 | _hex[4] = hex_nybble(b >> 4); 33 | _hex[5] = hex_nybble(b); 34 | return &_hex[4]; 35 | } 36 | 37 | char* hex_word(const uint16_t w) { 38 | _hex[2] = hex_nybble(w >> 12); 39 | _hex[3] = hex_nybble(w >> 8); 40 | _hex[4] = hex_nybble(w >> 4); 41 | _hex[5] = hex_nybble(w); 42 | return &_hex[2]; 43 | } 44 | 45 | char* hex_address(const void * const w) { 46 | (void)hex_word((uint16_t)w); 47 | return _hex; 48 | } 49 | 50 | void print_hex_nybble(const uint8_t n) { SERIAL_CHAR(hex_nybble(n)); } 51 | void print_hex_byte(const uint8_t b) { SERIAL_ECHO(hex_byte(b)); } 52 | void print_hex_word(const uint16_t w) { SERIAL_ECHO(hex_word(w)); } 53 | void print_hex_address(const void * const w) { SERIAL_ECHO(hex_address(w)); } 54 | 55 | #endif // AUTO_BED_LEVELING_UBL || M100_FREE_MEMORY_WATCHER || DEBUG_GCODE_PARSER 56 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_6.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k Epcos thermistor 24 | const short temptable_6[][2] PROGMEM = { 25 | { OV( 1), 350 }, 26 | { OV( 28), 250 }, // top rating 250C 27 | { OV( 31), 245 }, 28 | { OV( 35), 240 }, 29 | { OV( 39), 235 }, 30 | { OV( 42), 230 }, 31 | { OV( 44), 225 }, 32 | { OV( 49), 220 }, 33 | { OV( 53), 215 }, 34 | { OV( 62), 210 }, 35 | { OV( 71), 205 }, // fitted graphically 36 | { OV( 78), 200 }, // fitted graphically 37 | { OV( 94), 190 }, 38 | { OV( 102), 185 }, 39 | { OV( 116), 170 }, 40 | { OV( 143), 160 }, 41 | { OV( 183), 150 }, 42 | { OV( 223), 140 }, 43 | { OV( 270), 130 }, 44 | { OV( 318), 120 }, 45 | { OV( 383), 110 }, 46 | { OV( 413), 105 }, 47 | { OV( 439), 100 }, 48 | { OV( 484), 95 }, 49 | { OV( 513), 90 }, 50 | { OV( 607), 80 }, 51 | { OV( 664), 70 }, 52 | { OV( 781), 60 }, 53 | { OV( 810), 55 }, 54 | { OV( 849), 50 }, 55 | { OV( 914), 45 }, 56 | { OV( 914), 40 }, 57 | { OV( 935), 35 }, 58 | { OV( 954), 30 }, 59 | { OV( 970), 25 }, 60 | { OV( 978), 22 }, 61 | { OV(1008), 3 }, 62 | { OV(1023), 0 } // to allow internal 0 degrees C 63 | }; 64 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/tmc_macros.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | #ifndef TMC_MACROS_H 23 | #define TMC_MACROS_H 24 | 25 | // Trinamic Stepper Drivers 26 | #define HAS_TRINAMIC (ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208) || ENABLED(IS_TRAMS)) 27 | #define X_IS_TRINAMIC (ENABLED( X_IS_TMC2130) || ENABLED( X_IS_TMC2208) || ENABLED(IS_TRAMS)) 28 | #define X2_IS_TRINAMIC (ENABLED(X2_IS_TMC2130) || ENABLED(X2_IS_TMC2208)) 29 | #define Y_IS_TRINAMIC (ENABLED( Y_IS_TMC2130) || ENABLED( Y_IS_TMC2208) || ENABLED(IS_TRAMS)) 30 | #define Y2_IS_TRINAMIC (ENABLED(Y2_IS_TMC2130) || ENABLED(Y2_IS_TMC2208)) 31 | #define Z_IS_TRINAMIC (ENABLED( Z_IS_TMC2130) || ENABLED( Z_IS_TMC2208) || ENABLED(IS_TRAMS)) 32 | #define Z2_IS_TRINAMIC (ENABLED(Z2_IS_TMC2130) || ENABLED(Z2_IS_TMC2208)) 33 | #define E0_IS_TRINAMIC (ENABLED(E0_IS_TMC2130) || ENABLED(E0_IS_TMC2208) || ENABLED(IS_TRAMS)) 34 | #define E1_IS_TRINAMIC (ENABLED(E1_IS_TMC2130) || ENABLED(E1_IS_TMC2208)) 35 | #define E2_IS_TRINAMIC (ENABLED(E2_IS_TMC2130) || ENABLED(E2_IS_TMC2208)) 36 | #define E3_IS_TRINAMIC (ENABLED(E3_IS_TMC2130) || ENABLED(E3_IS_TMC2208)) 37 | #define E4_IS_TRINAMIC (ENABLED(E4_IS_TMC2130) || ENABLED(E4_IS_TMC2208)) 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_5.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k ParCan thermistor (104GT-2) 24 | // ATC Semitec 104GT-2 (Used in ParCan) 25 | // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf 26 | // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance 27 | const short temptable_5[][2] PROGMEM = { 28 | { OV( 1), 713 }, 29 | { OV( 17), 300 }, // top rating 300C 30 | { OV( 20), 290 }, 31 | { OV( 23), 280 }, 32 | { OV( 27), 270 }, 33 | { OV( 31), 260 }, 34 | { OV( 37), 250 }, 35 | { OV( 43), 240 }, 36 | { OV( 51), 230 }, 37 | { OV( 61), 220 }, 38 | { OV( 73), 210 }, 39 | { OV( 87), 200 }, 40 | { OV( 106), 190 }, 41 | { OV( 128), 180 }, 42 | { OV( 155), 170 }, 43 | { OV( 189), 160 }, 44 | { OV( 230), 150 }, 45 | { OV( 278), 140 }, 46 | { OV( 336), 130 }, 47 | { OV( 402), 120 }, 48 | { OV( 476), 110 }, 49 | { OV( 554), 100 }, 50 | { OV( 635), 90 }, 51 | { OV( 713), 80 }, 52 | { OV( 784), 70 }, 53 | { OV( 846), 60 }, 54 | { OV( 897), 50 }, 55 | { OV( 937), 40 }, 56 | { OV( 966), 30 }, 57 | { OV( 986), 20 }, 58 | { OV(1000), 10 }, 59 | { OV(1010), 0 } 60 | }; 61 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/dogm_font_data_Marlin_symbols.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | Fontname: Marlin_symbols 25 | Copyright: Created with Fony 1.4.7 26 | Capital A Height: 0, '1' Height: 0 27 | Calculated Max Values w= 5 h=10 x= 0 y= 3 dx= 6 dy= 0 ascent= 8 len=10 28 | Font Bounding box w= 6 h= 9 x= 0 y=-2 29 | Calculated Min Values x= 0 y=-2 dx= 0 dy= 0 30 | Pure Font ascent = 0 descent= 0 31 | X Font ascent = 0 descent= 0 32 | Max Font ascent = 8 descent=-2 33 | */ 34 | #include 35 | const u8g_fntpgm_uint8_t Marlin_symbols[140] U8G_SECTION(".progmem.Marlin_symbols") = { 36 | 0, 6, 9, 0, 254, 0, 0, 0, 0, 0, 1, 9, 0, 8, 254, 0, 37 | 0, 5, 8, 8, 6, 0, 0, 64, 240, 200, 136, 136, 152, 120, 16, 5, 38 | 8, 8, 6, 0, 0, 192, 248, 136, 136, 136, 136, 136, 248, 5, 5, 5, 39 | 6, 0, 1, 32, 48, 248, 48, 32, 5, 8, 8, 6, 0, 0, 32, 112, 40 | 248, 32, 32, 32, 32, 224, 5, 9, 9, 6, 0, 255, 32, 112, 168, 168, 41 | 184, 136, 136, 112, 32, 5, 9, 9, 6, 0, 255, 224, 128, 192, 176, 168, 42 | 40, 48, 40, 40, 5, 9, 9, 6, 0, 255, 248, 168, 136, 136, 136, 136, 43 | 136, 168, 248, 5, 10, 10, 6, 0, 254, 32, 80, 80, 80, 80, 136, 168, 44 | 168, 136, 112, 3, 3, 3, 6, 0, 3, 64, 160, 64 45 | }; 46 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/UARTClass.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _UART_CLASS_ 20 | #define _UART_CLASS_ 21 | 22 | #include "HardwareSerial.h" 23 | #include "RingBuffer.h" 24 | 25 | // Includes Atmel CMSIS 26 | //#include 27 | #include 28 | 29 | #if 0 30 | class UARTClass : public HardwareSerial 31 | { 32 | protected: 33 | RingBuffer *_rx_buffer ; 34 | 35 | protected: 36 | Uart* _pUart ; 37 | IRQn_Type _dwIrq ; 38 | uint32_t _dwId ; 39 | 40 | public: 41 | #if 0 42 | UARTClass( Uart* pUart, IRQn_Type dwIrq, uint32_t dwId, RingBuffer* pRx_buffer ) ; 43 | #endif 44 | 45 | void begin( const uint32_t dwBaudRate ) ; 46 | void end( void ) ; 47 | int available( void ) ; 48 | int peek( void ) ; 49 | int read( void ) ; 50 | void flush( void ) ; 51 | size_t write( const uint8_t c ) ; 52 | 53 | void IrqHandler( void ) ; 54 | 55 | #if defined __GNUC__ /* GCC CS3 */ 56 | using Print::write ; // pull in write(str) and write(buf, size) from Print 57 | #elif defined __ICCARM__ /* IAR Ewarm 5.41+ */ 58 | // virtual void write( const char *str ) ; 59 | // virtual void write( const uint8_t *buffer, size_t size ) ; 60 | #endif 61 | 62 | operator bool() { return true; }; // UART always active 63 | }; 64 | 65 | #endif 66 | #endif // _UART_CLASS_ 67 | -------------------------------------------------------------------------------- /Middlewares/gui/GUI_X.h: -------------------------------------------------------------------------------- 1 | /* 2 | ---------------------------------------------------------------------- 3 | File : GUI_X.h 4 | Purpose : Declarations for GUI_X module 5 | ---------------------------END-OF-HEADER------------------------------ 6 | 7 | Attention : Do not modify this file ! If you do, you will not 8 | be able do update to a later GUI version ! 9 | 10 | */ 11 | 12 | #ifndef GUI_X_H 13 | #define GUI_X_H 14 | 15 | #include "GUI.h" 16 | 17 | #if defined(__cplusplus) 18 | extern "C" { /* Make sure we have C-declarations in C++ programs */ 19 | #endif 20 | 21 | /************************************************************ 22 | * 23 | * GUI_X_ 24 | * 25 | * externals, to be defined by application 26 | * 27 | ************************************************************* 28 | 29 | The externals defined below should be defined by the 30 | application. They are per default contained in the module 31 | GUI_X.c. 32 | Note that a lot if not all of these are not required in most target 33 | systems. 34 | For this module, samples are available for configurations 35 | with or without operating system. 36 | */ 37 | 38 | /**** Init ****/ 39 | void GUI_X_Init(void); 40 | 41 | /**** ExecIdle - called if nothing else is left to do ****/ 42 | void GUI_X_ExecIdle(void); 43 | 44 | /**** Timing routines - required for blinking ****/ 45 | int GUI_X_GetTime(void); 46 | void GUI_X_Delay(int Period); 47 | 48 | /**** Multitask routines - required only if multitasking is used (#define GUI_OS 1) ****/ 49 | void GUI_X_Unlock(void); 50 | void GUI_X_Lock(void); 51 | U32 GUI_X_GetTaskId(void); 52 | void GUI_X_InitOS(void); 53 | 54 | /**** Event driving (optional with multitasking) ****/ 55 | void GUI_X_WaitEvent(void); 56 | void GUI_X_SignalEvent(void); 57 | /**** Recording (logs/warnings and errors) - required only for higher levels ****/ 58 | void GUI_X_Log(const char *s); 59 | void GUI_X_Warn(const char *s); 60 | void GUI_X_ErrorOut(const char *s); 61 | 62 | #if defined(__cplusplus) 63 | } 64 | #endif 65 | #endif /* ifdef GUI_X_H */ 66 | 67 | /*************************** End of file ****************************/ 68 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/USB/USBDesc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010, Peter Barrett 2 | /* 3 | ** Permission to use, copy, modify, and/or distribute this software for 4 | ** any purpose with or without fee is hereby granted, provided that the 5 | ** above copyright notice and this permission notice appear in all copies. 6 | ** 7 | ** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 8 | ** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 9 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 10 | ** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 11 | ** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 12 | ** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 13 | ** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 14 | ** SOFTWARE. 15 | */ 16 | 17 | #ifndef __USBDESC_H__ 18 | #define __USBDESC_H__ 19 | 20 | #define CDC_ENABLED 21 | #define HID_ENABLED 22 | 23 | #ifdef CDC_ENABLED 24 | #define CDC_INTERFACE_COUNT 2 25 | #define CDC_ENPOINT_COUNT 3 26 | #else 27 | #define CDC_INTERFACE_COUNT 0 28 | #define CDC_ENPOINT_COUNT 0 29 | #endif 30 | 31 | #ifdef HID_ENABLED 32 | #define HID_INTERFACE_COUNT 1 33 | #define HID_ENPOINT_COUNT 1 34 | #else 35 | #define HID_INTERFACE_COUNT 0 36 | #define HID_ENPOINT_COUNT 0 37 | #endif 38 | 39 | #define CDC_ACM_INTERFACE 0 // CDC ACM 40 | #define CDC_DATA_INTERFACE 1 // CDC Data 41 | #define CDC_FIRST_ENDPOINT 1 42 | #define CDC_ENDPOINT_ACM (CDC_FIRST_ENDPOINT) // CDC First 43 | #define CDC_ENDPOINT_OUT (CDC_FIRST_ENDPOINT+1) 44 | #define CDC_ENDPOINT_IN (CDC_FIRST_ENDPOINT+2) 45 | 46 | #define HID_INTERFACE (CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT) // HID Interface 47 | #define HID_FIRST_ENDPOINT (CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT) 48 | #define HID_ENDPOINT_INT (HID_FIRST_ENDPOINT) 49 | 50 | #define INTERFACE_COUNT (MSC_INTERFACE + MSC_INTERFACE_COUNT) 51 | 52 | #ifdef CDC_ENABLED 53 | #define CDC_RX CDC_ENDPOINT_OUT 54 | #define CDC_TX CDC_ENDPOINT_IN 55 | #endif 56 | 57 | #ifdef HID_ENABLED 58 | #define HID_TX HID_ENDPOINT_INT 59 | #endif 60 | 61 | #define IMANUFACTURER 1 62 | #define IPRODUCT 2 63 | 64 | #endif /* __USBDESC_H__ */ 65 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/point_t.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | #ifndef __POINT_T__ 24 | #define __POINT_T__ 25 | 26 | /** 27 | * @brief Cartesian Point 28 | * @details Represents a three dimensional point on Cartesian coordinate system, 29 | * using an additional fourth dimension for the extrusion length. 30 | * 31 | * @param x The x-coordinate of the point. 32 | * @param y The y-coordinate of the point. 33 | * @param z The z-coordinate of the point. 34 | */ 35 | struct point_t { 36 | float x, y, z/*,e*/; 37 | #if 0 38 | /** 39 | * @brief Three dimensional point constructor 40 | * 41 | * @param x The x-coordinate of the point. 42 | * @param y The y-coordinate of the point. 43 | * @param z The z-coordinate of the point. 44 | */ 45 | point_t(const float x, const float y, const float z) : x(x), y(y), z(z) {} 46 | 47 | /** 48 | * @brief Two dimensional point constructor 49 | * 50 | * @param x The x-coordinate of the point. 51 | * @param y The y-coordinate of the point. 52 | */ 53 | point_t(const float x, const float y) : point_t(x, y, NAN) {} 54 | #endif 55 | point_t(float const x, float const y, float const z/*, float const e*/) { 56 | this->x = x; 57 | this->y = y; 58 | this->z = z; 59 | /*this->e = e;*/ 60 | } 61 | 62 | }; 63 | 64 | #endif // __POINT_T__ 65 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/stepper_dac.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | /** 24 | stepper_dac.h - To set stepper current via DAC 25 | 26 | Part of Marlin 27 | 28 | Copyright (c) 2016 MarlinFirmware 29 | 30 | Marlin is free software: you can redistribute it and/or modify 31 | it under the terms of the GNU General Public License as published by 32 | the Free Software Foundation, either version 3 of the License, or 33 | (at your option) any later version. 34 | 35 | Marlin is distributed in the hope that it will be useful, 36 | but WITHOUT ANY WARRANTY; without even the implied warranty of 37 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38 | GNU General Public License for more details. 39 | 40 | You should have received a copy of the GNU General Public License 41 | along with Marlin. If not, see . 42 | */ 43 | 44 | #ifndef STEPPER_DAC_H 45 | #define STEPPER_DAC_H 46 | 47 | #include "dac_mcp4728.h" 48 | 49 | int dac_init(); 50 | void dac_current_percent(uint8_t channel, float val); 51 | void dac_current_raw(uint8_t channel, uint16_t val); 52 | void dac_print_values(); 53 | void dac_commit_eeprom(); 54 | uint8_t dac_current_get_percent(const AxisEnum axis); 55 | void dac_current_set_percents(const uint8_t pct[XYZE]); 56 | 57 | #endif // STEPPER_DAC_H 58 | -------------------------------------------------------------------------------- /Middlewares/arduino/stm32/cores/arduino/hooks.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2012 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * Empty yield() hook. 21 | * 22 | * This function is intended to be used by library writers to build 23 | * libraries or sketches that supports cooperative threads. 24 | * 25 | * Its defined as a weak symbol and it can be redefined to implement a 26 | * real cooperative scheduler. 27 | */ 28 | /* //skyblue mask 29 | static void __empty() { 30 | // Empty 31 | }*/ 32 | //void yield(void) __attribute__ ((weak, alias("__empty"))); //skyblue mask 33 | #pragma weak yield = __empty 34 | /** 35 | * SysTick hook 36 | * 37 | * This function is called from SysTick handler, before the default 38 | * handler provided by Arduino. 39 | */ 40 | /* //skyblue mask 41 | static int __false() { 42 | // Return false 43 | return 0; 44 | } 45 | */ 46 | //int sysTickHook(void) __attribute__ ((weak, alias("__false"))); 47 | #pragma weak sysTickHook = __false 48 | 49 | /** 50 | * SVC hook 51 | * PendSV hook 52 | * 53 | * These functions are called from SVC handler, and PensSV handler. 54 | * Default action is halting. 55 | */ 56 | /* //skyblue mask 57 | static void __halt() { 58 | // Halts 59 | while (1) 60 | ; 61 | }*/ 62 | //void svcHook(void) __attribute__ ((weak, alias("__halt"))); 63 | #pragma weak svcHook = __halt 64 | //void pendSVHook(void) __attribute__ ((weak, alias("__halt"))); 65 | #pragma weak pendSVHook = __halt 66 | -------------------------------------------------------------------------------- /Middlewares/Third_Party/Marlin/thermistortable_55.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Marlin 3D Printer Firmware 3 | * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] 4 | * 5 | * Based on Sprinter and grbl. 6 | * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | */ 22 | 23 | // 100k ATC Semitec 104GT-2 (Used on ParCan) (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!) 24 | // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf 25 | // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance 26 | // Advantage: More resolution and better linearity from 150C to 200C 27 | const short temptable_55[][2] PROGMEM = { 28 | { OV( 1), 500 }, 29 | { OV( 76), 300 }, 30 | { OV( 87), 290 }, 31 | { OV( 100), 280 }, 32 | { OV( 114), 270 }, 33 | { OV( 131), 260 }, 34 | { OV( 152), 250 }, 35 | { OV( 175), 240 }, 36 | { OV( 202), 230 }, 37 | { OV( 234), 220 }, 38 | { OV( 271), 210 }, 39 | { OV( 312), 200 }, 40 | { OV( 359), 190 }, 41 | { OV( 411), 180 }, 42 | { OV( 467), 170 }, 43 | { OV( 527), 160 }, 44 | { OV( 590), 150 }, 45 | { OV( 652), 140 }, 46 | { OV( 713), 130 }, 47 | { OV( 770), 120 }, 48 | { OV( 822), 110 }, 49 | { OV( 867), 100 }, 50 | { OV( 905), 90 }, 51 | { OV( 936), 80 }, 52 | { OV( 961), 70 }, 53 | { OV( 979), 60 }, 54 | { OV( 993), 50 }, 55 | { OV(1003), 40 }, 56 | { OV(1010), 30 }, 57 | { OV(1015), 20 }, 58 | { OV(1018), 10 }, 59 | { OV(1020), 0 } 60 | }; 61 | --------------------------------------------------------------------------------