|
@@ -22,6 +22,10 @@
|
22
|
22
|
|
23
|
23
|
bool endstop_monitor_flag = false;
|
24
|
24
|
|
|
25
|
+#if !defined(TIMER1B) // working with Teensyduino extension so need to re-define some things
|
|
26
|
+ #include "pinsDebug_Teensyduino.h"
|
|
27
|
+#endif
|
|
28
|
+
|
25
|
29
|
#define NAME_FORMAT "%-28s" // one place to specify the format of all the sources of names
|
26
|
30
|
// "-" left justify, "28" minimum width of name, pad with blanks
|
27
|
31
|
|
|
@@ -683,7 +687,9 @@ static bool pwm_status(uint8_t pin) {
|
683
|
687
|
#if defined(TCCR1A) && defined(COM1A1)
|
684
|
688
|
PWM_CASE(1,A);
|
685
|
689
|
PWM_CASE(1,B);
|
686
|
|
- PWM_CASE(1,C);
|
|
690
|
+ #if defined(COM1C1) && defined(TIMER1C)
|
|
691
|
+ PWM_CASE(1,C);
|
|
692
|
+ #endif
|
687
|
693
|
#endif
|
688
|
694
|
|
689
|
695
|
#if defined(TCCR2A) && defined(COM2A1)
|
|
@@ -694,7 +700,9 @@ static bool pwm_status(uint8_t pin) {
|
694
|
700
|
#if defined(TCCR3A) && defined(COM3A1)
|
695
|
701
|
PWM_CASE(3,A);
|
696
|
702
|
PWM_CASE(3,B);
|
697
|
|
- PWM_CASE(3,C);
|
|
703
|
+ #if defined(COM3C1)
|
|
704
|
+ PWM_CASE(3,C);
|
|
705
|
+ #endif
|
698
|
706
|
#endif
|
699
|
707
|
|
700
|
708
|
#ifdef TCCR4A
|
|
@@ -778,13 +786,15 @@ static void pwm_details(uint8_t pin) {
|
778
|
786
|
else if (TIMSK1 & (_BV(TOIE1) | _BV(ICIE1))) err_prob_interrupt();
|
779
|
787
|
else can_be_used();
|
780
|
788
|
break;
|
781
|
|
- case TIMER1C:
|
782
|
|
- TIMER_PREFIX(1,C,4);
|
783
|
|
- if (WGM_TEST2) err_is_counter();
|
784
|
|
- else if (TEST(TIMSK1, OCIE1C)) err_is_interrupt();
|
785
|
|
- else if (TIMSK1 & (_BV(TOIE1) | _BV(ICIE1))) err_prob_interrupt();
|
786
|
|
- else can_be_used();
|
787
|
|
- break;
|
|
789
|
+ #if defined(COM1C1) && defined(TIMER1C)
|
|
790
|
+ case TIMER1C:
|
|
791
|
+ TIMER_PREFIX(1,C,4);
|
|
792
|
+ if (WGM_TEST2) err_is_counter();
|
|
793
|
+ else if (TEST(TIMSK1, OCIE1C)) err_is_interrupt();
|
|
794
|
+ else if (TIMSK1 & (_BV(TOIE1) | _BV(ICIE1))) err_prob_interrupt();
|
|
795
|
+ else can_be_used();
|
|
796
|
+ break;
|
|
797
|
+ #endif
|
788
|
798
|
#endif
|
789
|
799
|
|
790
|
800
|
#if defined(TCCR2A) && defined(COM2A1)
|
|
@@ -819,13 +829,15 @@ static void pwm_details(uint8_t pin) {
|
819
|
829
|
else if (TIMSK3 & (_BV(TOIE3) | _BV(ICIE3))) err_prob_interrupt();
|
820
|
830
|
else can_be_used();
|
821
|
831
|
break;
|
|
832
|
+ #if defined(COM3C1)
|
822
|
833
|
case TIMER3C:
|
823
|
|
- TIMER_PREFIX(3,C,3);
|
824
|
|
- if (WGM_TEST2) err_is_counter();
|
825
|
|
- else if (TEST(TIMSK3, OCIE3C)) err_is_interrupt();
|
826
|
|
- else if (TIMSK3 & (_BV(TOIE3) | _BV(ICIE3))) err_prob_interrupt();
|
827
|
|
- else can_be_used();
|
828
|
|
- break;
|
|
834
|
+ TIMER_PREFIX(3,C,3);
|
|
835
|
+ if (WGM_TEST2) err_is_counter();
|
|
836
|
+ else if (TEST(TIMSK3, OCIE3C)) err_is_interrupt();
|
|
837
|
+ else if (TIMSK3 & (_BV(TOIE3) | _BV(ICIE3))) err_prob_interrupt();
|
|
838
|
+ else can_be_used();
|
|
839
|
+ break;
|
|
840
|
+ #endif
|
829
|
841
|
#endif
|
830
|
842
|
|
831
|
843
|
#ifdef TCCR4A
|
|
@@ -942,4 +954,3 @@ inline void report_pin_state_extended(int8_t pin, bool ignore) {
|
942
|
954
|
pwm_details(pin);
|
943
|
955
|
SERIAL_EOL;
|
944
|
956
|
}
|
945
|
|
-
|