18 Commits (28fec61f928268136deb18257e963d6cc9167ccf)

Author SHA1 Message Date
Scott Lahteine d4ce839351 Cleanup following Pins Debug update 8 years ago
Scott Lahteine c9e35004e7 pinsDebug with more features, uses less RAM
I've just uploaded a major change to pinsDebug.
The big change was creating an array in FLASH that contained every
active pin definition. That reduced the RAM memory usage considerably
but increased the FLASH usage.
Creating the array requires going through the pin list twice. Rather
than having two copies of it in the code I moved the list out to another
file (pinsDebug_list.h) and then just did two #includes.
From the user’s view they’ll see the following changes:
1. Now reports all the names assigned to a pin
2. The port is now reported in addition to the pin number.
3. When PWM0A & PWM1C share a pin, both PWMs are reported
4. More PWM/Timer info is reported
One new item that may cause some concern is the usage of the LINE
predefined preprocessor macro. It may not be available if the Arduino
IDE goes to a different compiler.

Includes support for 1284 & 1286 families.

Memory usage changes when enabling PINS_DEBUGGING:
ATmega2560
FLASH
.           without   52576
.           with new  64592
.           with old  62826
.           new-out   12016
.           old-out   10250
.           new-old   1766
.
RAM
.           without   2807
.           with new  2875
.           with old  3545
.           new-out   68
.           old-out   738
.           new-old   -670

==================================================================

minor changes - mostly formatting

1) added newline to end of teensyduino file

2) changed flag name from TEENSYDUINO to TEENSYDUINO_IDE.  Got warnings
about redefining TEENSYDUINO

3) removed some trailing spaces

reduce PROGMEM size & update pin list

Reduced PROGMEM usage by
1) converting often used macro to a function
2) moved as much as possible into the function

This required creating two arrays of address pointers for the PWM
registers.

==================================================================

update with new M3, M4, M5 pin names

==================================================================

report I/O status for unused/unknown pins
8 years ago
Scott Lahteine 25a6bfa7ed Add and apply WITHIN macro 8 years ago
Scott Lahteine cd882b88db #if defined => #ifdef / PIN_EXISTS 8 years ago
Bob-the-Kuhn ae706233a8 pinsDebug for 644/1284 & USB646/1286 families
added conditional compilation for PWMs 1C & 3C

add Teensyduino compatibility

==========================================

changes per review - minor formatting changes

1) remove non-printable character at the end of line 687

2) split a really long comment into two lines

3) got rid of some trailing spaces

============================================

Made pinsDebug_Teensyduino.h the same between this PR and PR 5668 which
is for a re-written pinsDebug.h file.

The changes were:
1) added copyright @ GNU license header
2) a blank line crept in.
8 years ago
Scott Lahteine fccc97de6d Save PROGMEM with string changes
Unlike RAM-based strings, PROGMEM strings aren’t consolidated by the
compiler.
8 years ago
esenapaj c3a105186d Follow-up the PR #5133 (M355 Case light)
・Add CASE_LIGHT_PIN into pinsDebug.h
8 years ago
Bob-the-Kuhn c20b4098be 2 bug fixes & some minor changes
see detailed  description in PR #5118
8 years ago
Scott Lahteine 85e307dcd8 No FAN0_PIN 8 years ago
Scott Lahteine ff3a8ca0d1 Use NUM_DIGITAL_PINS instead of custom DIO_COUNT 8 years ago
Scott Lahteine b4444e91ae Reduce code and build size of PWM_details 8 years ago
Scott Lahteine dbe414ef03 Squash redundant code in PWM_status 8 years ago
Scott Lahteine af26d22741 Clean up some spacing and semantics 8 years ago
Bob-the-Kuhn 81397d7a9a EXTRUDER_x_AUTO_FAN name change to Ex_AUTO_FAN
I stumbled across a name change that'll be used a lot so I'm updateing
the name list.
8 years ago
Bob-the-Kuhn c7f1f0dae6 Add endstop monitor & make pins report pretty 8 years ago
Scott Lahteine b6aa894893 Rename auto fan pins and add auto fan flags 8 years ago
esenapaj 00456b0cb3 Fix compilation errors 8 years ago
Scott Lahteine e21bab5243 PINS_DEBUGGING and M43 Read Pins 8 years ago