kopia lustrzana https://github.com/evil-mad/EggBot
Added A3 debug I/O output when servo is moving.
rodzic
c10b1baa5d
commit
ad75f20dc7
EBB_firmware/app.X
dist/EBBv13_with_bootloader/production
nbproject/private
Plik diff jest za duży
Load Diff
Plik diff jest za duży
Load Diff
|
@ -4,9 +4,9 @@
|
|||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/UBW.c</file>
|
||||
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/ebb.h</file>
|
||||
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/ebb.c</file>
|
||||
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/UBW.c</file>
|
||||
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/ebb.h</file>
|
||||
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/ebb.c</file>
|
||||
</group>
|
||||
</open-files>
|
||||
</project-private>
|
||||
|
|
|
@ -324,6 +324,10 @@ void low_ISR(void)
|
|||
// we add (or subtract) gRC2Rate[] to try and get there.
|
||||
if (gRC2Target[gRC2Ptr] != gRC2Value[gRC2Ptr])
|
||||
{
|
||||
#if defined(GPIO_DEBUG)
|
||||
TRISAbits.TRISA3 = 0;
|
||||
LATAbits.LATA3 = 1;
|
||||
#endif
|
||||
// If the rate is zero, then we always move instantly
|
||||
// to the target.
|
||||
if (gRC2Rate[gRC2Ptr] == 0)
|
||||
|
@ -378,6 +382,10 @@ void low_ISR(void)
|
|||
|
||||
// Re-enable interrupts
|
||||
INTCONbits.GIEH = 1;
|
||||
|
||||
#if defined(GPIO_DEBUG)
|
||||
LATAbits.LATA3 = 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define DEBUG_VALUE_PRINT
|
||||
|
||||
// Define this to turn on some GPIO pin timing debug for stepper commands
|
||||
//#define GPIO_DEBUG
|
||||
#define GPIO_DEBUG
|
||||
|
||||
// These are used for Enable<X>IO to control the enable lines for the driver
|
||||
#define ENABLE_MOTOR 0
|
||||
|
|
Ładowanie…
Reference in New Issue