Skip to content

Commit

Permalink
Reformat pins files
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and albertogg committed Aug 31, 2020
1 parent 6cef11b commit 4133eee
Show file tree
Hide file tree
Showing 67 changed files with 343 additions and 344 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/pins/linux/pins_RAMPS_LINUX.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#endif

#ifndef MARLIN_EEPROM_SIZE
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
#endif

#define IS_RAMPS_EFB
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
#define E1_SERIAL_RX_PIN P1_01

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
#define Z2_SERIAL_RX_PIN P1_01

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

//
// Steppers
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define BOARD_INFO_NAME "GMARSH X6 REV1"

// Ignore temp readings during develpment.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

//
// Enable 12MHz clock output on P1.27 pin to sync TMC2208 chip clocks
Expand Down Expand Up @@ -97,7 +97,7 @@
#define E2_SERIAL_RX_PIN P2_06

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#else
#error "TMC2208 UART configuration is required for GMarsh X6."
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
#define E0_SERIAL_RX_PIN P0_26 // TH4

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

// UNUSED
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
#define Z2_SERIAL_RX_PIN P1_17

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif // TMC2208 || TMC2209

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
#endif

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

//
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
// DIGIPOT slave addresses
//
#ifndef DIGIPOT_I2C_ADDRESS_A
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
#endif

#ifndef DIGIPOT_I2C_ADDRESS_B
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
#define E1_SERIAL_RX_PIN P4_28 // J8-6

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif
2 changes: 1 addition & 1 deletion Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#define E0_SERIAL_RX_PIN P0_21

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/mega/pins_INTAMSYS40.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
#ifndef MOTOR_CURRENT_PWM_RANGE
#define MOTOR_CURRENT_PWM_RANGE 2000
#define MOTOR_CURRENT_PWM_RANGE 2000
#endif
#define DEFAULT_PWM_MOTOR_CURRENT { 1300, 1300, 1250 }

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
#define DIGIPOTS_I2C_SDA_E1 77 // J6

#ifndef DIGIPOT_I2C_ADDRESS_A
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
#endif

//
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@

// DIGIPOT slave addresses
#ifndef DIGIPOT_I2C_ADDRESS_A
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
#endif
#ifndef DIGIPOT_I2C_ADDRESS_B
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@

#define SUICIDE_PIN 12 // Used by CR2020 Industrial series
#ifndef SUICIDE_PIN_INVERTING
#define SUICIDE_PIN_INVERTING true
#define SUICIDE_PIN_INVERTING true
#endif
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@

#define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
#define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS

/////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RADDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//
#if EITHER(NO_EEPROM_SELECTED, I2C_EEPROM)
#define I2C_EEPROM
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RAMPS_SMART.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

// I2C EEPROM with 4K of space
#define I2C_EEPROM
#define MARLIN_EEPROM_SIZE 0x1000
#define MARLIN_EEPROM_SIZE 0x1000

#define RESET_PIN 42 // Resets the board if the jumper is attached

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RURAMPS4D_11.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
//
// EEPROM
//
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb (24lc256)
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RURAMPS4D_13.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
//
// EEPROM
//
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb (24lc256)
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/samd/pins_RAMPS_144.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
//
//#define QSPI_EEPROM // Use AGCM4 onboard QSPI EEPROM (Uses 4K of RAM)
#define I2C_EEPROM // EEPROM on I2C-0
#define MARLIN_EEPROM_SIZE 0x8000 // 32K (24lc256)
#define MARLIN_EEPROM_SIZE 0x8000 // 32K (24lc256)

//
// Limit Switches
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32f0/pins_MALYAN_M300.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
//
// Timers
//
#define STEP_TIMER 6
#define TEMP_TIMER 7
#define STEP_TIMER 6
#define TEMP_TIMER 7

//
// Limit Switches
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define DISABLE_JTAG

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
Expand Down Expand Up @@ -138,7 +138,7 @@
#define E0_SERIAL_RX_PIN PD2

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

//
Expand All @@ -158,7 +158,7 @@
// USB connect control
//
#define USB_CONNECT_PIN PC13
#define USB_CONNECT_INVERTING false
#define USB_CONNECT_INVERTING false

/**
* _____
Expand Down Expand Up @@ -260,7 +260,7 @@
*
*/

#define CLCD_SPI_BUS 1 // SPI1 connector
#define CLCD_SPI_BUS 1 // SPI1 connector

#define BEEPER_PIN PB6

Expand Down Expand Up @@ -288,5 +288,5 @@
#error "SD CUSTOM_CABLE is not compatible with SKR E3 DIP."
#endif

#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
8 changes: 4 additions & 4 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define DISABLE_JTAG

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
Expand Down Expand Up @@ -108,7 +108,7 @@
#define USB_CONNECT_PIN PC13
#endif

#define USB_CONNECT_INVERTING false
#define USB_CONNECT_INVERTING false

/**
* SKR Mini E3 V1.0, V1.2 SKR Mini E3 V2.0
Expand Down Expand Up @@ -208,7 +208,7 @@
*
*/

#define CLCD_SPI_BUS 1 // SPI1 connector
#define CLCD_SPI_BUS 1 // SPI1 connector

#define BEEPER_PIN EXP1_9

Expand Down Expand Up @@ -236,5 +236,5 @@
#error "SD CUSTOM_CABLE is not compatible with SKR Mini E3."
#endif

#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define DISABLE_JTAG

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
Expand Down Expand Up @@ -213,5 +213,5 @@
#define MOSI_PIN PA7
#define SS_PIN PA4
#endif
#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
8 changes: 4 additions & 4 deletions Marlin/src/pins/stm32f1/pins_CCROBOT_MEEB_3DP.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
//
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
#define EEPROM_PAGE_SIZE 0x800U // 2KB
#define EEPROM_PAGE_SIZE 0x800U // 2KB
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
#endif

//
Expand Down Expand Up @@ -95,7 +95,7 @@
#define E0_SERIAL_RX_PIN PC4

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200

//
// Temperature Sensors
Expand Down Expand Up @@ -173,7 +173,7 @@
#define SS_PIN PA4
#endif

#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ON_BOARD_SPI_DEVICE 1 // SPI1
#define ONBOARD_SD_CS_PIN PA4 // Chip select for SD-NAND

#endif
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f1/pins_CHITU3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//#define I2C_EEPROM

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

//
// Steppers
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f1/pins_CHITU3D_V5.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

// Emulated DOGM

#define GRAPHICAL_TFT_UPSCALE 3
#define GRAPHICAL_TFT_UPSCALE 3
#ifndef XPT2046_X_CALIBRATION
#define XPT2046_X_CALIBRATION -12316
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f1/pins_CHITU3D_V6.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@

// Emulated DOGM
#elif ENABLED(FSMC_GRAPHICAL_TFT)
#define GRAPHICAL_TFT_UPSCALE 3
#define GRAPHICAL_TFT_UPSCALE 3

#ifndef XPT2046_X_CALIBRATION
#define XPT2046_X_CALIBRATION -12316
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/pins/stm32f1/pins_CREALITY_V4.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
#if ENABLED(IIC_BL24CXX_EEPROM)
#define IIC_EEPROM_SDA PA11
#define IIC_EEPROM_SCL PA12
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
#else
#define SDCARD_EEPROM_EMULATION // SD EEPROM until all EEPROM is BL24CXX
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
#endif

// SPI
Expand Down Expand Up @@ -150,7 +150,7 @@
//
#define SD_DETECT_PIN PC7
#define SDCARD_CONNECTION ONBOARD
#define ON_BOARD_SPI_DEVICE 1
#define ON_BOARD_SPI_DEVICE 1
#define ONBOARD_SD_CS_PIN PA4 // SDSS
#define SDIO_SUPPORT

Expand Down

0 comments on commit 4133eee

Please sign in to comment.