My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pin_defs.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
  2. /* Onboard LED is connected to pin PB5 in Arduino NG, Diecimila, and Duemilanove */
  3. #define LED_DDR DDRB
  4. #define LED_PORT PORTB
  5. #define LED_PIN PINB
  6. #define LED PINB5
  7. /* Ports for soft UART */
  8. #ifdef SOFT_UART
  9. #define UART_PORT PORTD
  10. #define UART_PIN PIND
  11. #define UART_DDR DDRD
  12. #define UART_TX_BIT 1
  13. #define UART_RX_BIT 0
  14. #endif
  15. #endif
  16. #if defined(__AVR_ATmega8__)
  17. //Name conversion R.Wiersma
  18. #define UCSR0A UCSRA
  19. #define UDR0 UDR
  20. #define UDRE0 UDRE
  21. #define RXC0 RXC
  22. #define FE0 FE
  23. #define TIFR1 TIFR
  24. #define WDTCSR WDTCR
  25. #endif
  26. /* Luminet support */
  27. #if defined(__AVR_ATtiny84__)
  28. /* Red LED is connected to pin PA4 */
  29. #define LED_DDR DDRA
  30. #define LED_PORT PORTA
  31. #define LED_PIN PINA
  32. #define LED PINA4
  33. /* Ports for soft UART - left port only for now. TX/RX on PA2/PA3 */
  34. #ifdef SOFT_UART
  35. #define UART_PORT PORTA
  36. #define UART_PIN PINA
  37. #define UART_DDR DDRA
  38. #define UART_TX_BIT 2
  39. #define UART_RX_BIT 3
  40. #endif
  41. #endif
  42. /* Sanguino support */
  43. #if defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
  44. /* Onboard LED is connected to pin PB0 on Sanguino */
  45. #define LED_DDR DDRB
  46. #define LED_PORT PORTB
  47. #define LED_PIN PINB
  48. #define LED PINB0
  49. /* Ports for soft UART */
  50. #ifdef SOFT_UART
  51. #define UART_PORT PORTD
  52. #define UART_PIN PIND
  53. #define UART_DDR DDRD
  54. #define UART_TX_BIT 1
  55. #define UART_RX_BIT 0
  56. #endif
  57. #endif
  58. /* Mega support */
  59. #if defined(__AVR_ATmega1280__)
  60. /* Onboard LED is connected to pin PB7 on Arduino Mega */
  61. #define LED_DDR DDRB
  62. #define LED_PORT PORTB
  63. #define LED_PIN PINB
  64. #define LED PINB7
  65. /* Ports for soft UART */
  66. #ifdef SOFT_UART
  67. #define UART_PORT PORTE
  68. #define UART_PIN PINE
  69. #define UART_DDR DDRE
  70. #define UART_TX_BIT 1
  71. #define UART_RX_BIT 0
  72. #endif
  73. #endif