Browse Source

Merge pull request #495 from Gatulibu/Marlin_v1

Added support for Megatronics v2.0 and Minitronics v1.0
ErikZalm 11 years ago
parent
commit
a964b3cf3d
3 changed files with 916 additions and 3 deletions
  1. 2
    0
      Marlin/Configuration.h
  2. 695
    1
      Marlin/fastio.h
  3. 219
    2
      Marlin/pins.h

+ 2
- 0
Marlin/Configuration.h View File

@@ -43,6 +43,8 @@
43 43
 // 82 = Brainwave (AT90USB646)
44 44
 // 9  = Gen3+
45 45
 // 70 = Megatronics
46
+// 701= Megatronics v2.0
47
+// 702= Minitronics v1.0
46 48
 // 90 = Alpha OMCA board
47 49
 // 91 = Final OMCA board
48 50
 // 301 = Rambo

+ 695
- 1
Marlin/fastio.h View File

@@ -2575,8 +2575,702 @@ pins
2575 2575
 #define PF7_DDR			DDRF
2576 2576
 #endif
2577 2577
 
2578
+
2579
+#if defined (__AVR_ATmega1281__) || defined (__AVR_ATmega2561__)
2580
+// UART
2581
+#define	RXD					DIO0
2582
+#define	TXD					DIO1
2583
+
2584
+// SPI
2585
+#define	SCK					DIO10
2586
+#define	MISO				DIO12
2587
+#define	MOSI				DIO11
2588
+#define	SS					DIO16
2589
+
2590
+// TWI (I2C)
2591
+#define	SCL					DIO17
2592
+#define	SDA					DIO18
2593
+
2594
+// timers and PWM
2595
+#define	OC0A				DIO9
2596
+#define	OC0B				DIO4
2597
+#define	OC1A				DIO7
2598
+#define	OC1B				DIO8
2599
+#define	OC2A				DIO6
2600
+#define	OC3A				DIO5
2601
+#define	OC3B				DIO2
2602
+#define	OC3C				DIO3
2603
+
2604
+
2605
+// change for your board
2606
+#define	DEBUG_LED		DIO46
2607
+
2608
+/*
2609
+pins
2610
+*/
2611
+#define	DIO0_PIN		PINE0
2612
+#define	DIO0_RPORT	PINE
2613
+#define	DIO0_WPORT	PORTE
2614
+#define	DIO0_DDR		DDRE
2615
+#define DIO0_PWM		NULL
2616
+
2617
+#define	DIO1_PIN		PINE1
2618
+#define	DIO1_RPORT	PINE
2619
+#define	DIO1_WPORT	PORTE
2620
+#define	DIO1_DDR		DDRE
2621
+#define DIO1_PWM		NULL
2622
+
2623
+#define	DIO2_PIN		PINE4
2624
+#define	DIO2_RPORT	PINE
2625
+#define	DIO2_WPORT	PORTE
2626
+#define	DIO2_DDR		DDRE
2627
+#define DIO2_PWM		&OCR3BL
2628
+
2629
+#define	DIO3_PIN		PINE5
2630
+#define	DIO3_RPORT	PINE
2631
+#define	DIO3_WPORT	PORTE
2632
+#define	DIO3_DDR		DDRE
2633
+#define DIO3_PWM		&OCR3CL
2634
+
2635
+#define	DIO4_PIN		PING5
2636
+#define	DIO4_RPORT	PING
2637
+#define	DIO4_WPORT	PORTG
2638
+#define	DIO4_DDR		DDRG
2639
+#define DIO4_PWM		&OCR0B
2640
+
2641
+#define	DIO5_PIN		PINE3
2642
+#define	DIO5_RPORT	PINE
2643
+#define	DIO5_WPORT	PORTE
2644
+#define	DIO5_DDR		DDRE
2645
+#define DIO5_PWM		&OCR3AL
2646
+
2647
+#define	DIO6_PIN		PINB4
2648
+#define	DIO6_RPORT	PINB
2649
+#define	DIO6_WPORT	PORTB
2650
+#define	DIO6_DDR		DDRB
2651
+#define DIO6_PWM		&OCR2AL
2652
+
2653
+#define	DIO7_PIN		PINB5
2654
+#define	DIO7_RPORT	PINB
2655
+#define	DIO7_WPORT	PORTB
2656
+#define	DIO7_DDR		DDRB
2657
+#define DIO7_PWM		&OCR1AL
2658
+
2659
+#define	DIO8_PIN		PINB6
2660
+#define	DIO8_RPORT	PINB
2661
+#define	DIO8_WPORT	PORTB
2662
+#define	DIO8_DDR		DDRB
2663
+#define DIO8_PWM		&OCR1BL
2664
+
2665
+#define	DIO9_PIN		PINB7
2666
+#define	DIO9_RPORT	PINB
2667
+#define	DIO9_WPORT	PORTB
2668
+#define	DIO9_DDR		DDRB
2669
+#define DIO9_PWM		&OCR0AL
2670
+
2671
+#define	DIO10_PIN		PINB1
2672
+#define	DIO10_RPORT	PINB
2673
+#define	DIO10_WPORT	PORTB
2674
+#define	DIO10_DDR		DDRB
2675
+#define DIO10_PWM		NULL
2676
+
2677
+#define	DIO11_PIN		PINB2
2678
+#define	DIO11_RPORT	PINB
2679
+#define	DIO11_WPORT	PORTB
2680
+#define	DIO11_DDR		DDRB
2681
+#define DIO11_PWM		NULL
2682
+
2683
+#define	DIO12_PIN		PINB3
2684
+#define	DIO12_RPORT	PINB
2685
+#define	DIO12_WPORT	PORTB
2686
+#define	DIO12_DDR		DDRB
2687
+#define DIO12_PWM		NULL
2688
+
2689
+#define	DIO13_PIN		PINE2
2690
+#define	DIO13_RPORT	PINE
2691
+#define	DIO13_WPORT	PORTE
2692
+#define	DIO13_DDR		DDRE
2693
+#define DIO13_PWM		NULL
2694
+
2695
+#define	DIO14_PIN		PINE6
2696
+#define	DIO14_RPORT	PINE
2697
+#define	DIO14_WPORT	PORTE
2698
+#define	DIO14_DDR		DDRE
2699
+#define DIO14_PWM		NULL
2700
+
2701
+#define	DIO15_PIN		PINE7
2702
+#define	DIO15_RPORT	PINE
2703
+#define	DIO15_WPORT	PORTE
2704
+#define	DIO15_DDR		DDRE
2705
+#define DIO15_PWM		NULL
2706
+
2707
+#define	DIO16_PIN		PINB0
2708
+#define	DIO16_RPORT	PINB
2709
+#define	DIO16_WPORT	PORTB
2710
+#define	DIO16_DDR		DDRB
2711
+#define DIO16_PWM		NULL
2712
+
2713
+#define	DIO17_PIN		PIND0
2714
+#define	DIO17_RPORT	PIND
2715
+#define	DIO17_WPORT	PORTD
2716
+#define	DIO17_DDR		DDRD
2717
+#define DIO17_PWM		NULL
2718
+
2719
+#define	DIO18_PIN		PIND1
2720
+#define	DIO18_RPORT	PIND
2721
+#define	DIO18_WPORT	PORTD
2722
+#define	DIO18_DDR		DDRD
2723
+#define DIO18_PWM		NULL
2724
+
2725
+#define	DIO19_PIN		PIND2
2726
+#define	DIO19_RPORT	PIND
2727
+#define	DIO19_WPORT	PORTD
2728
+#define	DIO19_DDR		DDRD
2729
+#define DIO19_PWM		NULL
2730
+
2731
+#define	DIO20_PIN		PIND3
2732
+#define	DIO20_RPORT	PIND
2733
+#define	DIO20_WPORT	PORTD
2734
+#define	DIO20_DDR		DDRD
2735
+#define DIO20_PWM		NULL
2736
+
2737
+#define	DIO21_PIN		PIND4
2738
+#define	DIO21_RPORT	PIND
2739
+#define	DIO21_WPORT	PORTD
2740
+#define	DIO21_DDR		DDRD
2741
+#define DIO21_PWM		NULL
2742
+
2743
+#define	DIO22_PIN		PIND5
2744
+#define	DIO22_RPORT	PIND
2745
+#define	DIO22_WPORT	PORTD
2746
+#define	DIO22_DDR		DDRD
2747
+#define DIO22_PWM		NULL
2748
+
2749
+#define	DIO23_PIN		PIND6
2750
+#define	DIO23_RPORT	PIND
2751
+#define	DIO23_WPORT	PORTD
2752
+#define	DIO23_DDR		DDRD
2753
+#define DIO23_PWM		NULL
2754
+
2755
+#define	DIO24_PIN		PIND7
2756
+#define	DIO24_RPORT	PIND
2757
+#define	DIO24_WPORT	PORTD
2758
+#define	DIO24_DDR		DDRD
2759
+#define DIO24_PWM		NULL
2760
+
2761
+#define	DIO25_PIN		PING0
2762
+#define	DIO25_RPORT	PING
2763
+#define	DIO25_WPORT	PORTG
2764
+#define	DIO25_DDR		DDRG
2765
+#define DIO25_PWM		NULL
2766
+
2767
+#define	DIO26_PIN		PING1
2768
+#define	DIO26_RPORT	PING
2769
+#define	DIO26_WPORT	PORTG
2770
+#define	DIO26_DDR		DDRG
2771
+#define DIO26_PWM		NULL
2772
+
2773
+#define	DIO27_PIN		PING2
2774
+#define	DIO27_RPORT	PING
2775
+#define	DIO27_WPORT	PORTG
2776
+#define	DIO27_DDR		DDRG
2777
+#define DIO27_PWM		NULL
2778
+
2779
+#define	DIO28_PIN		PING3
2780
+#define	DIO28_RPORT	PING
2781
+#define	DIO28_WPORT	PORTG
2782
+#define	DIO28_DDR		DDRG
2783
+#define DIO28_PWM		NULL
2784
+
2785
+#define	DIO29_PIN		PING4
2786
+#define	DIO29_RPORT	PING
2787
+#define	DIO29_WPORT	PORTG
2788
+#define	DIO29_DDR		DDRG
2789
+#define DIO29_PWM		NULL
2790
+
2791
+#define	DIO30_PIN		PINC0
2792
+#define	DIO30_RPORT	PINC
2793
+#define	DIO30_WPORT	PORTC
2794
+#define	DIO30_DDR		DDRC
2795
+#define DIO30_PWM		NULL
2796
+
2797
+#define	DIO31_PIN		PINC1
2798
+#define	DIO31_RPORT	PINC
2799
+#define	DIO31_WPORT	PORTC
2800
+#define	DIO31_DDR		DDRC
2801
+#define DIO31_PWM		NULL
2802
+
2803
+#define	DIO32_PIN		PINC2
2804
+#define	DIO32_RPORT	PINC
2805
+#define	DIO32_WPORT	PORTC
2806
+#define	DIO32_DDR		DDRC
2807
+#define DIO32_PWM		NULL
2808
+
2809
+#define	DIO33_PIN		PINC3
2810
+#define	DIO33_RPORT	PINC
2811
+#define	DIO33_WPORT	PORTC
2812
+#define	DIO33_DDR		DDRC
2813
+#define DIO33_PWM		NULL
2814
+
2815
+#define	DIO34_PIN		PINC4
2816
+#define	DIO34_RPORT	PINC
2817
+#define	DIO34_WPORT	PORTC
2818
+#define	DIO34_DDR		DDRC
2819
+#define DIO34_PWM		NULL
2820
+
2821
+#define	DIO35_PIN		PINC5
2822
+#define	DIO35_RPORT	PINC
2823
+#define	DIO35_WPORT	PORTC
2824
+#define	DIO35_DDR		DDRC
2825
+#define DIO35_PWM		NULL
2826
+
2827
+#define	DIO36_PIN		PINC6
2828
+#define	DIO36_RPORT	PINC
2829
+#define	DIO36_WPORT	PORTC
2830
+#define	DIO36_DDR		DDRC
2831
+#define DIO36_PWM		NULL
2832
+
2833
+#define	DIO37_PIN		PINC7
2834
+#define	DIO37_RPORT	PINC
2835
+#define	DIO37_WPORT	PORTC
2836
+#define	DIO37_DDR		DDRC
2837
+#define DIO37_PWM		NULL
2838
+
2839
+#define	DIO38_PIN		PINA0
2840
+#define	DIO38_RPORT	PINA
2841
+#define	DIO38_WPORT	PORTA
2842
+#define	DIO38_DDR		DDRA
2843
+#define DIO38_PWM		NULL
2844
+
2845
+#define	DIO39_PIN		PINA1
2846
+#define	DIO39_RPORT	PINA
2847
+#define	DIO39_WPORT	PORTA
2848
+#define	DIO39_DDR		DDRA
2849
+#define DIO39_PWM		NULL
2850
+
2851
+#define	DIO40_PIN		PINA2
2852
+#define	DIO40_RPORT	PINA
2853
+#define	DIO40_WPORT	PORTA
2854
+#define	DIO40_DDR		DDRA
2855
+#define DIO40_PWM		NULL
2856
+
2857
+#define	DIO41_PIN		PINA3
2858
+#define	DIO41_RPORT	PINA
2859
+#define	DIO41_WPORT	PORTA
2860
+#define	DIO41_DDR		DDRA
2861
+#define DIO41_PWM		NULL
2862
+
2863
+#define	DIO42_PIN		PINA4
2864
+#define	DIO42_RPORT	PINA
2865
+#define	DIO42_WPORT	PORTA
2866
+#define	DIO42_DDR		DDRA
2867
+#define DIO42_PWM		NULL
2868
+
2869
+#define	DIO43_PIN		PINA5
2870
+#define	DIO43_RPORT	PINA
2871
+#define	DIO43_WPORT	PORTA
2872
+#define	DIO43_DDR		DDRA
2873
+#define DIO43_PWM		NULL
2874
+
2875
+#define	DIO44_PIN		PINA6
2876
+#define	DIO44_RPORT	PINA
2877
+#define	DIO44_WPORT	PORTA
2878
+#define	DIO44_DDR		DDRA
2879
+#define DIO44_PWM		NULL
2880
+
2881
+#define	DIO45_PIN		PINA7
2882
+#define	DIO45_RPORT	PINA
2883
+#define	DIO45_WPORT	PORTA
2884
+#define	DIO45_DDR		DDRA
2885
+#define DIO45_PWM		NULL
2886
+
2887
+#define	DIO46_PIN		PINF0
2888
+#define	DIO46_RPORT	PINF
2889
+#define	DIO46_WPORT	PORTF
2890
+#define	DIO46_DDR		DDRF
2891
+#define DIO46_PWM		NULL
2892
+
2893
+#define	DIO47_PIN		PINF1
2894
+#define	DIO47_RPORT	PINF
2895
+#define	DIO47_WPORT	PORTF
2896
+#define	DIO47_DDR		DDRF
2897
+#define DIO47_PWM		NULL
2898
+
2899
+#define	DIO48_PIN		PINF2
2900
+#define	DIO48_RPORT	PINF
2901
+#define	DIO48_WPORT	PORTF
2902
+#define	DIO48_DDR		DDRF
2903
+#define DIO48_PWM		NULL
2904
+
2905
+#define	DIO49_PIN		PINF3
2906
+#define	DIO49_RPORT	PINF
2907
+#define	DIO49_WPORT	PORTF
2908
+#define	DIO49_DDR		DDRF
2909
+#define DIO49_PWM		NULL
2910
+
2911
+#define	DIO50_PIN		PINF4
2912
+#define	DIO50_RPORT	PINF
2913
+#define	DIO50_WPORT	PORTF
2914
+#define	DIO50_DDR		DDRF
2915
+#define DIO50_PWM		NULL
2916
+
2917
+#define	DIO51_PIN		PINF5
2918
+#define	DIO51_RPORT	PINF
2919
+#define	DIO51_WPORT	PORTF
2920
+#define	DIO51_DDR		DDRF
2921
+#define DIO51_PWM		NULL
2922
+
2923
+#define	DIO52_PIN		PINF6
2924
+#define	DIO52_RPORT	PINF
2925
+#define	DIO52_WPORT	PORTF
2926
+#define	DIO52_DDR		DDRF
2927
+#define DIO52_PWM		NULL
2928
+
2929
+#define	DIO53_PIN		PINF7
2930
+#define	DIO53_RPORT	PINF
2931
+#define	DIO53_WPORT	PORTF
2932
+#define	DIO53_DDR		DDRF
2933
+#define DIO53_PWM		NULL
2934
+
2935
+
2936
+
2937
+
2938
+#undef PA0
2939
+#define PA0_PIN			PINA0
2940
+#define PA0_RPORT		PINA
2941
+#define PA0_WPORT		PORTA
2942
+#define PA0_DDR			DDRA
2943
+#define PA0_PWM			NULL
2944
+#undef PA1
2945
+#define PA1_PIN			PINA1
2946
+#define PA1_RPORT		PINA
2947
+#define PA1_WPORT		PORTA
2948
+#define PA1_DDR			DDRA
2949
+#define PA1_PWM			NULL
2950
+#undef PA2
2951
+#define PA2_PIN			PINA2
2952
+#define PA2_RPORT		PINA
2953
+#define PA2_WPORT		PORTA
2954
+#define PA2_DDR			DDRA
2955
+#define PA2_PWM			NULL
2956
+#undef PA3
2957
+#define PA3_PIN			PINA3
2958
+#define PA3_RPORT		PINA
2959
+#define PA3_WPORT		PORTA
2960
+#define PA3_DDR			DDRA
2961
+#define PA3_PWM			NULL
2962
+#undef PA4
2963
+#define PA4_PIN			PINA4
2964
+#define PA4_RPORT		PINA
2965
+#define PA4_WPORT		PORTA
2966
+#define PA4_DDR			DDRA
2967
+#define PA4_PWM			NULL
2968
+#undef PA5
2969
+#define PA5_PIN			PINA5
2970
+#define PA5_RPORT		PINA
2971
+#define PA5_WPORT		PORTA
2972
+#define PA5_DDR			DDRA
2973
+#define PA5_PWM			NULL
2974
+#undef PA6
2975
+#define PA6_PIN			PINA6
2976
+#define PA6_RPORT		PINA
2977
+#define PA6_WPORT		PORTA
2978
+#define PA6_DDR			DDRA
2979
+#define PA6_PWM			NULL
2980
+#undef PA7
2981
+#define PA7_PIN			PINA7
2982
+#define PA7_RPORT		PINA
2983
+#define PA7_WPORT		PORTA
2984
+#define PA7_DDR			DDRA
2985
+#define PA7_PWM			NULL
2986
+
2987
+#undef PB0
2988
+#define PB0_PIN			PINB0
2989
+#define PB0_RPORT		PINB
2990
+#define PB0_WPORT		PORTB
2991
+#define PB0_DDR			DDRB
2992
+#define PB0_PWM			NULL
2993
+#undef PB1
2994
+#define PB1_PIN			PINB1
2995
+#define PB1_RPORT		PINB
2996
+#define PB1_WPORT		PORTB
2997
+#define PB1_DDR			DDRB
2998
+#define PB1_PWM			NULL
2999
+#undef PB2
3000
+#define PB2_PIN			PINB2
3001
+#define PB2_RPORT		PINB
3002
+#define PB2_WPORT		PORTB
3003
+#define PB2_DDR			DDRB
3004
+#define PB2_PWM			NULL
3005
+#undef PB3
3006
+#define PB3_PIN			PINB3
3007
+#define PB3_RPORT		PINB
3008
+#define PB3_WPORT		PORTB
3009
+#define PB3_DDR			DDRB
3010
+#define PB3_PWM			NULL
3011
+#undef PB4
3012
+#define PB4_PIN			PINB4
3013
+#define PB4_RPORT		PINB
3014
+#define PB4_WPORT		PORTB
3015
+#define PB4_DDR			DDRB
3016
+#define PB4_PWM			&OCR2A
3017
+#undef PB5
3018
+#define PB5_PIN			PINB5
3019
+#define PB5_RPORT		PINB
3020
+#define PB5_WPORT		PORTB
3021
+#define PB5_DDR			DDRB
3022
+#define PB5_PWM			NULL
3023
+#undef PB6
3024
+#define PB6_PIN			PINB6
3025
+#define PB6_RPORT		PINB
3026
+#define PB6_WPORT		PORTB
3027
+#define PB6_DDR			DDRB
3028
+#define PB6_PWM			NULL
3029
+#undef PB7
3030
+#define PB7_PIN			PINB7
3031
+#define PB7_RPORT		PINB
3032
+#define PB7_WPORT		PORTB
3033
+#define PB7_DDR			DDRB
3034
+#define PB7_PWM			&OCR0A
3035
+
3036
+#undef PC0
3037
+#define PC0_PIN			PINC0
3038
+#define PC0_RPORT		PINC
3039
+#define PC0_WPORT		PORTC
3040
+#define PC0_DDR			DDRC
3041
+#define PC0_PWM			NULL
3042
+#undef PC1
3043
+#define PC1_PIN			PINC1
3044
+#define PC1_RPORT		PINC
3045
+#define PC1_WPORT		PORTC
3046
+#define PC1_DDR			DDRC
3047
+#define PC1_PWM			NULL
3048
+#undef PC2
3049
+#define PC2_PIN			PINC2
3050
+#define PC2_RPORT		PINC
3051
+#define PC2_WPORT		PORTC
3052
+#define PC2_DDR			DDRC
3053
+#define PC2_PWM			NULL
3054
+#undef PC3
3055
+#define PC3_PIN			PINC3
3056
+#define PC3_RPORT		PINC
3057
+#define PC3_WPORT		PORTC
3058
+#define PC3_DDR			DDRC
3059
+#define PC3_PWM			NULL
3060
+#undef PC4
3061
+#define PC4_PIN			PINC4
3062
+#define PC4_RPORT		PINC
3063
+#define PC4_WPORT		PORTC
3064
+#define PC4_DDR			DDRC
3065
+#define PC4_PWM			NULL
3066
+#undef PC5
3067
+#define PC5_PIN			PINC5
3068
+#define PC5_RPORT		PINC
3069
+#define PC5_WPORT		PORTC
3070
+#define PC5_DDR			DDRC
3071
+#define PC5_PWM			NULL
3072
+#undef PC6
3073
+#define PC6_PIN			PINC6
3074
+#define PC6_RPORT		PINC
3075
+#define PC6_WPORT		PORTC
3076
+#define PC6_DDR			DDRC
3077
+#define PC6_PWM			NULL
3078
+#undef PC7
3079
+#define PC7_PIN			PINC7
3080
+#define PC7_RPORT		PINC
3081
+#define PC7_WPORT		PORTC
3082
+#define PC7_DDR			DDRC
3083
+#define PC7_PWM			NULL
3084
+
3085
+#undef PD0
3086
+#define PD0_PIN			PIND0
3087
+#define PD0_RPORT		PIND
3088
+#define PD0_WPORT		PORTD
3089
+#define PD0_DDR			DDRD
3090
+#define PD0_PWM			NULL
3091
+#undef PD1
3092
+#define PD1_PIN			PIND1
3093
+#define PD1_RPORT		PIND
3094
+#define PD1_WPORT		PORTD
3095
+#define PD1_DDR			DDRD
3096
+#define PD1_PWM			NULL
3097
+#undef PD2
3098
+#define PD2_PIN			PIND2
3099
+#define PD2_RPORT		PIND
3100
+#define PD2_WPORT		PORTD
3101
+#define PD2_DDR			DDRD
3102
+#define PD2_PWM			NULL
3103
+#undef PD3
3104
+#define PD3_PIN			PIND3
3105
+#define PD3_RPORT		PIND
3106
+#define PD3_WPORT		PORTD
3107
+#define PD3_DDR			DDRD
3108
+#define PD3_PWM			NULL
3109
+#undef PD4
3110
+#define PD4_PIN			PIND4
3111
+#define PD4_RPORT		PIND
3112
+#define PD4_WPORT		PORTD
3113
+#define PD4_DDR			DDRD
3114
+#define PD4_PWM			NULL
3115
+#undef PD5
3116
+#define PD5_PIN			PIND5
3117
+#define PD5_RPORT		PIND
3118
+#define PD5_WPORT		PORTD
3119
+#define PD5_DDR			DDRD
3120
+#define PD5_PWM			NULL
3121
+#undef PD6
3122
+#define PD6_PIN			PIND6
3123
+#define PD6_RPORT		PIND
3124
+#define PD6_WPORT		PORTD
3125
+#define PD6_DDR			DDRD
3126
+#define PD6_PWM			NULL
3127
+#undef PD7
3128
+#define PD7_PIN			PIND7
3129
+#define PD7_RPORT		PIND
3130
+#define PD7_WPORT		PORTD
3131
+#define PD7_DDR			DDRD
3132
+#define PD7_PWM			NULL
3133
+
3134
+#undef PE0
3135
+#define PE0_PIN			PINE0
3136
+#define PE0_RPORT		PINE
3137
+#define PE0_WPORT		PORTE
3138
+#define PE0_DDR			DDRE
3139
+#define PE0_PWM			NULL
3140
+#undef PE1
3141
+#define PE1_PIN			PINE1
3142
+#define PE1_RPORT		PINE
3143
+#define PE1_WPORT		PORTE
3144
+#define PE1_DDR			DDRE
3145
+#define PE1_PWM			NULL
3146
+#undef PE2
3147
+#define PE2_PIN			PINE2
3148
+#define PE2_RPORT		PINE
3149
+#define PE2_WPORT		PORTE
3150
+#define PE2_DDR			DDRE
3151
+#define PE2_PWM			NULL
3152
+#undef PE3
3153
+#define PE3_PIN			PINE3
3154
+#define PE3_RPORT		PINE
3155
+#define PE3_WPORT		PORTE
3156
+#define PE3_DDR			DDRE
3157
+#define PE3_PWM			&OCR3AL
3158
+#undef PE4
3159
+#define PE4_PIN			PINE4
3160
+#define PE4_RPORT		PINE
3161
+#define PE4_WPORT		PORTE
3162
+#define PE4_DDR			DDRE
3163
+#define PE4_PWM			&OCR3BL
3164
+#undef PE5
3165
+#define PE5_PIN			PINE5
3166
+#define PE5_RPORT		PINE
3167
+#define PE5_WPORT		PORTE
3168
+#define PE5_DDR			DDRE
3169
+#define PE5_PWM			&OCR3CL
3170
+#undef PE6
3171
+#define PE6_PIN			PINE6
3172
+#define PE6_RPORT		PINE
3173
+#define PE6_WPORT		PORTE
3174
+#define PE6_DDR			DDRE
3175
+#define PE6_PWM			NULL
3176
+#undef PE7
3177
+#define PE7_PIN			PINE7
3178
+#define PE7_RPORT		PINE
3179
+#define PE7_WPORT		PORTE
3180
+#define PE7_DDR			DDRE
3181
+#define PE7_PWM			NULL
3182
+
3183
+#undef PF0
3184
+#define PF0_PIN			PINF0
3185
+#define PF0_RPORT		PINF
3186
+#define PF0_WPORT		PORTF
3187
+#define PF0_DDR			DDRF
3188
+#define PF0_PWM			NULL
3189
+#undef PF1
3190
+#define PF1_PIN			PINF1
3191
+#define PF1_RPORT		PINF
3192
+#define PF1_WPORT		PORTF
3193
+#define PF1_DDR			DDRF
3194
+#define PF1_PWM			NULL
3195
+#undef PF2
3196
+#define PF2_PIN			PINF2
3197
+#define PF2_RPORT		PINF
3198
+#define PF2_WPORT		PORTF
3199
+#define PF2_DDR			DDRF
3200
+#define PF2_PWM			NULL
3201
+#undef PF3
3202
+#define PF3_PIN			PINF3
3203
+#define PF3_RPORT		PINF
3204
+#define PF3_WPORT		PORTF
3205
+#define PF3_DDR			DDRF
3206
+#define PF3_PWM			NULL
3207
+#undef PF4
3208
+#define PF4_PIN			PINF4
3209
+#define PF4_RPORT		PINF
3210
+#define PF4_WPORT		PORTF
3211
+#define PF4_DDR			DDRF
3212
+#define PF4_PWM			NULL
3213
+#undef PF5
3214
+#define PF5_PIN			PINF5
3215
+#define PF5_RPORT		PINF
3216
+#define PF5_WPORT		PORTF
3217
+#define PF5_DDR			DDRF
3218
+#define PF5_PWM			NULL
3219
+#undef PF6
3220
+#define PF6_PIN			PINF6
3221
+#define PF6_RPORT		PINF
3222
+#define PF6_WPORT		PORTF
3223
+#define PF6_DDR			DDRF
3224
+#define PF6_PWM			NULL
3225
+#undef PF7
3226
+#define PF7_PIN			PINF7
3227
+#define PF7_RPORT		PINF
3228
+#define PF7_WPORT		PORTF
3229
+#define PF7_DDR			DDRF
3230
+#define PF7_PWM			NULL
3231
+
3232
+#undef PG0
3233
+#define PG0_PIN			PING0
3234
+#define PG0_RPORT		PING
3235
+#define PG0_WPORT		PORTG
3236
+#define PG0_DDR			DDRG
3237
+#define PG0_PWM			NULL
3238
+#undef PG1
3239
+#define PG1_PIN			PING1
3240
+#define PG1_RPORT		PING
3241
+#define PG1_WPORT		PORTG
3242
+#define PG1_DDR			DDRG
3243
+#define PG1_PWM			NULL
3244
+#undef PG2
3245
+#define PG2_PIN			PING2
3246
+#define PG2_RPORT		PING
3247
+#define PG2_WPORT		PORTG
3248
+#define PG2_DDR			DDRG
3249
+#define PG2_PWM			NULL
3250
+#undef PG3
3251
+#define PG3_PIN			PING3
3252
+#define PG3_RPORT		PING
3253
+#define PG3_WPORT		PORTG
3254
+#define PG3_DDR			DDRG
3255
+#define PG3_PWM			NULL
3256
+#undef PG4
3257
+#define PG4_PIN			PING4
3258
+#define PG4_RPORT		PING
3259
+#define PG4_WPORT		PORTG
3260
+#define PG4_DDR			DDRG
3261
+#define PG4_PWM			NULL
3262
+#undef PG5
3263
+#define PG5_PIN			PING5
3264
+#define PG5_RPORT		PING
3265
+#define PG5_WPORT		PORTG
3266
+#define PG5_DDR			DDRG
3267
+#define PG5_PWM			&OCR0B
3268
+
3269
+
3270
+#endif
3271
+
2578 3272
 #ifndef	DIO0_PIN
2579 3273
 #error pins for this chip not defined in arduino.h! If you write an appropriate pin definition and have this firmware work on your chip, please submit a pull request
2580 3274
 #endif
2581 3275
 
2582
-#endif /* _FASTIO_ARDUINO_H */
3276
+#endif /* _FASTIO_ARDUINO_H */

+ 219
- 2
Marlin/pins.h View File

@@ -1475,7 +1475,6 @@
1475 1475
 #if MOTHERBOARD == 70
1476 1476
 #define KNOWN_BOARD 1
1477 1477
 
1478
-//////////////////FIX THIS//////////////
1479 1478
 
1480 1479
  #ifndef __AVR_ATmega2560__
1481 1480
  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
@@ -1555,12 +1554,230 @@
1555 1554
     #define BTN_EN2 64
1556 1555
     #define BTN_ENC 43  //the click
1557 1556
     
1558
-    #define SDCARDDETECT -1   // Ramps does not use this port
1557
+    #define BLEN_C 2
1558
+    #define BLEN_B 1
1559
+    #define BLEN_A 0
1560
+    
1561
+    #define SDCARDDETECT -1		// Ramps does not use this port
1562
+    
1563
+      //encoder rotation values
1564
+    #define encrot0 0
1565
+    #define encrot1 2
1566
+    #define encrot2 3
1567
+    #define encrot3 1
1559 1568
 #endif
1560 1569
 #endif //ULTRA_LCD
1561 1570
 
1562 1571
 #endif
1563 1572
 
1573
+/****************************************************************************************
1574
+* MegaTronics v2.0
1575
+*
1576
+****************************************************************************************/
1577
+#if MOTHERBOARD == 701
1578
+ #define KNOWN_BOARD 1
1579
+ 
1580
+ 
1581
+ #ifndef __AVR_ATmega2560__
1582
+ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
1583
+ #endif
1584
+ 
1585
+ #define LARGE_FLASH        true
1586
+ 
1587
+ #define X_STEP_PIN 26
1588
+ #define X_DIR_PIN 27
1589
+ #define X_ENABLE_PIN 25
1590
+ #define X_MIN_PIN 37
1591
+ #define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.
1592
+ 
1593
+ #define Y_STEP_PIN 4 // A6
1594
+ #define Y_DIR_PIN 54 // A0
1595
+ #define Y_ENABLE_PIN 5
1596
+ #define Y_MIN_PIN 41
1597
+ #define Y_MAX_PIN 38 //15
1598
+ 
1599
+ #define Z_STEP_PIN 56 // A2
1600
+ #define Z_DIR_PIN 60 // A6
1601
+ #define Z_ENABLE_PIN 55 // A1
1602
+ #define Z_MIN_PIN 18
1603
+ #define Z_MAX_PIN 19
1604
+ 
1605
+ #define E0_STEP_PIN 35
1606
+ #define E0_DIR_PIN 36
1607
+ #define E0_ENABLE_PIN 34
1608
+ 
1609
+ #define E1_STEP_PIN 29
1610
+ #define E1_DIR_PIN 39
1611
+ #define E1_ENABLE_PIN 28
1612
+ 
1613
+ #define E2_STEP_PIN 23
1614
+ #define E2_DIR_PIN 24
1615
+ #define E2_ENABLE_PIN 22
1616
+ 
1617
+ #define SDPOWER -1
1618
+ #define SDSS 53
1619
+ #define LED_PIN 13
1620
+ 
1621
+ #define FAN_PIN 7
1622
+ #define FAN2_PIN 6
1623
+ #define PS_ON_PIN 12
1624
+ #define KILL_PIN -1
1625
+ 
1626
+ #define HEATER_0_PIN 9 // EXTRUDER 1
1627
+ #define HEATER_1_PIN 8 // EXTRUDER 2
1628
+ #define HEATER_2_PIN -1
1629
+ 
1630
+ #if TEMP_SENSOR_0 == -1
1631
+   #define TEMP_0_PIN 4 // ANALOG NUMBERING
1632
+ #else
1633
+   #define TEMP_0_PIN 13 // ANALOG NUMBERING
1634
+ #endif
1635
+ 
1636
+ 
1637
+ #if TEMP_SENSOR_1 == -1
1638
+   #define TEMP_1_PIN 8 // ANALOG NUMBERING
1639
+ #else
1640
+   #define TEMP_1_PIN 15 // ANALOG NUMBERING
1641
+ #endif
1642
+ 
1643
+ #define TEMP_2_PIN -1 // ANALOG NUMBERING
1644
+ 
1645
+ #define HEATER_BED_PIN 10 // BED
1646
+ 
1647
+ #if TEMP_SENSOR_BED == -1
1648
+   #define TEMP_BED_PIN 8 // ANALOG NUMBERING
1649
+ #else 
1650
+   #define TEMP_BED_PIN 14 // ANALOG NUMBERING
1651
+ #endif
1652
+ 
1653
+ #define BEEPER 64	
1654
+ 
1655
+ 
1656
+ #define LCD_PINS_RS 14
1657
+ #define LCD_PINS_ENABLE 15
1658
+ #define LCD_PINS_D4 30
1659
+ #define LCD_PINS_D5 31
1660
+ #define LCD_PINS_D6 32
1661
+ #define LCD_PINS_D7 33
1662
+ 
1663
+ 
1664
+ //buttons are directly attached using keypad
1665
+ #define BTN_EN1 61
1666
+ #define BTN_EN2 59
1667
+ #define BTN_ENC 43 //the click
1668
+ 
1669
+ #define BLEN_C 2
1670
+ #define BLEN_B 1
1671
+ #define BLEN_A 0
1672
+ 
1673
+ #define SDCARDDETECT -1	// Megatronics does not use this port
1674
+ 
1675
+   //encoder rotation values
1676
+ #define encrot0 0
1677
+ #define encrot1 2
1678
+ #define encrot2 3
1679
+ #define encrot3 1
1680
+
1681
+#endif
1682
+
1683
+
1684
+/****************************************************************************************
1685
+* Minitronics v1.0
1686
+*
1687
+****************************************************************************************/
1688
+#if MOTHERBOARD == 702
1689
+ #define KNOWN_BOARD 1
1690
+ 
1691
+ 
1692
+ #ifndef __AVR_ATmega1281__
1693
+ #error Oops! Make sure you have 'Minitronics ' selected from the 'Tools -> Boards' menu.
1694
+ #endif
1695
+ 
1696
+ #define LARGE_FLASH        true
1697
+ 
1698
+ #define X_STEP_PIN 48
1699
+ #define X_DIR_PIN 47
1700
+ #define X_ENABLE_PIN 49
1701
+ #define X_MIN_PIN 5
1702
+ #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
1703
+ 
1704
+ #define Y_STEP_PIN 39 // A6
1705
+ #define Y_DIR_PIN 40 // A0
1706
+ #define Y_ENABLE_PIN 38
1707
+ #define Y_MIN_PIN 2
1708
+ #define Y_MAX_PIN -1 //15
1709
+ 
1710
+ #define Z_STEP_PIN 42 // A2
1711
+ #define Z_DIR_PIN 43 // A6
1712
+ #define Z_ENABLE_PIN 41 // A1
1713
+ #define Z_MIN_PIN 6
1714
+ #define Z_MAX_PIN -1
1715
+ 
1716
+ #define E0_STEP_PIN 45
1717
+ #define E0_DIR_PIN 44
1718
+ #define E0_ENABLE_PIN 27
1719
+ 
1720
+ #define E1_STEP_PIN 36
1721
+ #define E1_DIR_PIN 35
1722
+ #define E1_ENABLE_PIN 37
1723
+ 
1724
+ #define E2_STEP_PIN -1
1725
+ #define E2_DIR_PIN -1
1726
+ #define E2_ENABLE_PIN -1
1727
+ 
1728
+ #define SDPOWER -1
1729
+ #define SDSS 16
1730
+ #define LED_PIN 46
1731
+ 
1732
+ #define FAN_PIN 9
1733
+ #define FAN2_PIN -1
1734
+ #define PS_ON_PIN -1
1735
+ #define KILL_PIN -1
1736
+ 
1737
+ #define HEATER_0_PIN 7 // EXTRUDER 1
1738
+ #define HEATER_1_PIN 8 // EXTRUDER 2
1739
+ #define HEATER_2_PIN -1
1740
+ 
1741
+
1742
+ #define TEMP_0_PIN 7 // ANALOG NUMBERING
1743
+ #define TEMP_1_PIN 6 // ANALOG NUMBERING
1744
+ #define TEMP_2_PIN -1 // ANALOG NUMBERING
1745
+ 
1746
+ #define HEATER_BED_PIN 3 // BED
1747
+ #define TEMP_BED_PIN 6 // ANALOG NUMBERING
1748
+ 
1749
+ #define BEEPER -1	
1750
+ 
1751
+ 
1752
+ #define LCD_PINS_RS -1
1753
+ #define LCD_PINS_ENABLE -1
1754
+ #define LCD_PINS_D4 -1
1755
+ #define LCD_PINS_D5 -1
1756
+ #define LCD_PINS_D6 -1
1757
+ #define LCD_PINS_D7 -1
1758
+ 
1759
+ 
1760
+ //buttons are directly attached using keypad
1761
+ #define BTN_EN1 -1
1762
+ #define BTN_EN2 -1
1763
+ #define BTN_ENC -1 //the click
1764
+ 
1765
+ #define BLEN_C 2
1766
+ #define BLEN_B 1
1767
+ #define BLEN_A 0
1768
+ 
1769
+ #define SDCARDDETECT -1	// Megatronics does not use this port
1770
+ 
1771
+   //encoder rotation values
1772
+ #define encrot0 0
1773
+ #define encrot1 2
1774
+ #define encrot2 3
1775
+ #define encrot3 1
1776
+
1777
+#endif
1778
+
1779
+
1780
+
1564 1781
 #ifndef KNOWN_BOARD
1565 1782
 #error Unknown MOTHERBOARD value in configuration.h
1566 1783
 #endif

Loading…
Cancel
Save