forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 MKS Robin2 PIO Env (MarlinFirmware#25792)
- Loading branch information
Showing
11 changed files
with
1,761 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"build": { | ||
"cpu": "cortex-m4", | ||
"extra_flags": "-DSTM32F407xx", | ||
"f_cpu": "168000000L", | ||
"hwids": [ | ||
[ | ||
"0x1EAF", | ||
"0x0003" | ||
], | ||
[ | ||
"0x0483", | ||
"0x3748" | ||
] | ||
], | ||
"ldscript": "ldscript.ld", | ||
"mcu": "stm32f407zet6", | ||
"variant": "MARLIN_MKS_ROBIN2" | ||
}, | ||
"debug": { | ||
"jlink_device": "STM32F407ZE", | ||
"openocd_target": "stm32f4x", | ||
"svd_path": "STM32F40x.svd", | ||
"tools": { | ||
"stlink": { | ||
"server": { | ||
"arguments": [ | ||
"-f", | ||
"scripts/interface/stlink.cfg", | ||
"-c", | ||
"transport select hla_swd", | ||
"-f", | ||
"scripts/target/stm32f4x.cfg", | ||
"-c", | ||
"reset_config none" | ||
], | ||
"executable": "bin/openocd", | ||
"package": "tool-openocd" | ||
} | ||
} | ||
} | ||
}, | ||
"frameworks": [ | ||
"arduino", | ||
"stm32cube" | ||
], | ||
"name": "STM32F407ZE (192k RAM. 512k Flash)", | ||
"upload": { | ||
"disable_flushing": false, | ||
"maximum_ram_size": 131072, | ||
"maximum_size": 514288, | ||
"protocol": "stlink", | ||
"protocols": [ | ||
"stlink", | ||
"dfu", | ||
"jlink", | ||
"cmsis-dap" | ||
], | ||
"require_upload_port": true, | ||
"use_1200bps_touch": false, | ||
"wait_for_upload_port": false | ||
}, | ||
"url": "http://www.st.com/en/microcontrollers/stm32f407ze.html", | ||
"vendor": "Generic" | ||
} |
437 changes: 437 additions & 0 deletions
437
buildroot/share/PlatformIO/variants/MARLIN_MKS_ROBIN2/PeripheralPins.c
Large diffs are not rendered by default.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
buildroot/share/PlatformIO/variants/MARLIN_MKS_ROBIN2/PinNamesVar.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* SYS_WKUP */ | ||
#ifdef PWR_WAKEUP_PIN1 | ||
SYS_WKUP1 = PA_0, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN2 | ||
SYS_WKUP2 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN3 | ||
SYS_WKUP3 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN4 | ||
SYS_WKUP4 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN5 | ||
SYS_WKUP5 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN6 | ||
SYS_WKUP6 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN7 | ||
SYS_WKUP7 = NC, | ||
#endif | ||
#ifdef PWR_WAKEUP_PIN8 | ||
SYS_WKUP8 = NC, | ||
#endif | ||
/* USB */ | ||
#ifdef USBCON | ||
USB_OTG_FS_SOF = PA_8, | ||
USB_OTG_FS_VBUS = PA_9, | ||
USB_OTG_FS_ID = PA_10, | ||
USB_OTG_FS_DM = PA_11, | ||
USB_OTG_FS_DP = PA_12, | ||
USB_OTG_HS_ULPI_D0 = PA_3, | ||
USB_OTG_HS_SOF = PA_4, | ||
USB_OTG_HS_ULPI_CK = PA_5, | ||
USB_OTG_HS_ULPI_D1 = PB_0, | ||
USB_OTG_HS_ULPI_D2 = PB_1, | ||
USB_OTG_HS_ULPI_D7 = PB_5, | ||
USB_OTG_HS_ULPI_D3 = PB_10, | ||
USB_OTG_HS_ULPI_D4 = PB_11, | ||
USB_OTG_HS_ID = PB_12, | ||
USB_OTG_HS_ULPI_D5 = PB_12, | ||
USB_OTG_HS_ULPI_D6 = PB_13, | ||
USB_OTG_HS_VBUS = PB_13, | ||
USB_OTG_HS_DM = PB_14, | ||
USB_OTG_HS_DP = PB_15, | ||
USB_OTG_HS_ULPI_STP = PC_0, | ||
USB_OTG_HS_ULPI_DIR = PC_2, | ||
USB_OTG_HS_ULPI_NXT = PC_3, | ||
#endif |
Oops, something went wrong.