Firmware2/Marlin
Bob-the-Kuhn 76da81c1de minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board)
Because of the Re-ARM card's pinout there is only one SPI connected to
the RepRap Discount Full Graphic LCD display.  The LCD responds to ANY
SCK transitions no matter if it's enable is inactive.  The result is
garbage (usually bars) on the LCD display whenever there is SD card
activity.

This code minimizes this by only accessing the SD card when changing
directory levels if :
SDCARD_SORT_ALPHA is enabled
SDSORT_USES_RAM is true
SDSORT_CACHE_NAMES is true

The code changes result in file names being pulled from the ALPHA SORT
memory array rather than the SD card.

The code also gives the file count and file index functions their own
variables.  When they shared a common variable the index function
sometimes resulted in the file count being short by 1.

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

cardreader.cpp & pins_RAMPS_RE_ARM.h changes

Added another condition to cardreader.cpp to enable getting file names
only from RAM.

pins_RAMPS_RE_ARM.h :
Added comments about the SD card accesses and the LCD display
Combined all versions into this one.
2017-08-31 18:23:44 -05:00
..
example_configurations Marlin bugfix-2.0.x Version/README 2017-08-31 17:56:08 -05:00
frameworks/CMSIS/LPC1768 Moved CMSIS and other LPC1768 dependencies 2017-08-31 18:23:44 -05:00
src/HAL HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
blinkm.cpp Patch #else / #endif comments 2017-05-09 12:37:23 -05:00
blinkm.h
boards.h HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
buzzer.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
cardreader.cpp minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board) 2017-08-31 18:23:44 -05:00
cardreader.h minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board) 2017-08-31 18:23:44 -05:00
circularqueue.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Conditionals_LCD.h Fix identation by tab 2017-08-18 11:34:55 +02:00
Conditionals_post.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Conditionals.h
Configuration_adv.h Marlin bugfix-2.0.x Version/README 2017-08-31 17:56:08 -05:00
configuration_store.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
configuration_store.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Configuration.h Marlin bugfix-2.0.x Version/README 2017-08-31 17:56:08 -05:00
dac_dac084s085.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
dac_dac084s085.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
dac_mcp4728.cpp Fix get/setDrvPct declarations 2017-06-09 20:21:28 -07:00
dac_mcp4728.h Fix get/setDrvPct declarations 2017-06-09 20:21:28 -07:00
digipot_mcp4018.cpp Fix: set digipot mcp4018 Vrefmax to 1.666V 2017-06-24 12:35:34 -05:00
digipot_mcp4451.cpp Apply maths macros and type changes ahead of HAL 2017-06-19 22:57:42 -05:00
dogm_bitmaps.h
dogm_font_data_6x9_marlin.h
dogm_font_data_HD44780_C.h
dogm_font_data_HD44780_J.h
dogm_font_data_HD44780_W.h
dogm_font_data_ISO10646_1_PL.h Polish font 2017-04-21 21:42:41 -05:00
dogm_font_data_ISO10646_1_tr.h
dogm_font_data_ISO10646_1.h
dogm_font_data_ISO10646_5_Cyrillic.h
dogm_font_data_ISO10646_CN.h
dogm_font_data_ISO10646_CZ.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
dogm_font_data_ISO10646_Greek.h
dogm_font_data_ISO10646_Kana.h
dogm_font_data_Marlin_symbols.h
duration_t.h
endstops.cpp Prevent damage if DELTA_HEIGHT is incorrect 2017-08-11 16:09:14 -05:00
endstops.h
enum.h CNC workspace planes and 'P' argument for G2/G3 2017-06-23 14:53:03 -05:00
G26_Mesh_Validation_Tool.cpp Fix for G26 spam output 2017-08-15 17:04:53 -06:00
gcode.cpp Fix compile issue with G38 2017-07-06 14:21:27 -05:00
gcode.h Volatile keyword not needed for parser.seen 2017-07-10 15:38:54 -05:00
hex_print_routines.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
hex_print_routines.h New GCode Parser - Implementation 2017-05-23 14:15:10 -05:00
I2CPositionEncoder.cpp Followup for I2C_POSITION_ENCODERS 2017-06-27 20:46:40 -05:00
I2CPositionEncoder.h Followup for I2C_POSITION_ENCODERS 2017-06-27 20:46:40 -05:00
language_an.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_bg.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_ca.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_cn.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_cz_utf8.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
language_cz.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
language_da.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_de.h Update language_de.h 2017-08-04 09:35:21 +02:00
language_el-gr.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_el.h Use "PSU" label to fit on screen 2017-08-16 02:51:00 -05:00
language_en.h Merge pull request #7519 from thinkyhead/bf1_cleanups_aug_16 2017-08-16 15:58:15 -05:00
language_es.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_eu.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_fi.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_fr.h French translation 2017-06-22 12:49:23 -05:00
language_gl.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_hr.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_it.h Fix Italian string length 2017-08-10 15:41:35 -05:00
language_kana_utf8.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
language_kana.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_nl.h Use "PSU" label to fit on screen 2017-08-16 02:51:00 -05:00
language_pl-DOGM.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_pl-HD44780.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_pl.h Slovak UTF-8 translation 2017-08-23 19:14:35 -05:00
language_pt_utf8.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
language_pt-br_utf8.h UTF-8 mapper for Czech 2017-07-04 15:51:23 -05:00
language_pt-br.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_pt.h Add more options to the Bed Leveling menu 2017-05-28 14:04:28 -05:00
language_ru.h Update Russian Translation 2017-08-02 21:19:15 +02:00
language_sk_utf8.h Slovak UTF-8 translation 2017-08-23 19:14:35 -05:00
language_test.h MSG_VOLUMETRIC => MSG_FILAMENT 2017-04-17 16:39:36 -05:00
language_tr.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_uk.h Case light as a toggle menu item 2017-05-28 14:32:07 -05:00
language_zh_CN.h Rename options with swap_ prefix 2017-07-27 04:14:29 -05:00
language_zh_TW.h Rename options with swap_ prefix 2017-07-27 04:14:29 -05:00
language.h CNC workspace planes for G5 2017-08-31 14:29:29 -05:00
least_squares_fit.cpp Apply coding standards to recent merges 2017-07-13 00:46:16 -05:00
least_squares_fit.h Apply coding standards to recent merges 2017-07-13 00:46:16 -05:00
M100_Free_Mem_Chk.cpp Apply const, spacing, etc. 2017-06-27 05:23:49 -05:00
macros.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Makefile Add Max7219 LED Matrix Debug Support (#7563) 2017-08-25 17:03:07 -05:00
Marlin_main.cpp HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
Marlin.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Marlin.ino
MarlinConfig.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
Max7219_Debug_LEDs.cpp MAX7219 followup (#7564) 2017-08-31 11:44:43 -05:00
Max7219_Debug_LEDs.h MAX7219 followup (#7564) 2017-08-31 11:44:43 -05:00
mesh_bed_leveling.cpp Patch #else / #endif comments 2017-05-09 12:37:23 -05:00
mesh_bed_leveling.h Formatting and spelling 2017-06-18 23:01:12 -05:00
nozzle.cpp Apply maths macros and type changes ahead of HAL 2017-06-19 22:57:42 -05:00
nozzle.h Apply maths macros and type changes ahead of HAL 2017-06-19 22:57:42 -05:00
pca9632.cpp Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
pca9632.h PCA9632 PWM color LED support 2017-06-12 01:09:24 -05:00
pins_3DRAG.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_5DPRINT.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_ALLIGATOR_R2.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_ANET_10.h Add Skynet/ANET A10 support 2017-06-24 19:07:03 -05:00
pins_AZTEEG_X1.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_AZTEEG_X3_PRO.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_AZTEEG_X3.h Cleanup of spacing and formatting 2017-06-04 11:31:43 -05:00
pins_BAM_DICE_DUE.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_BQ_ZUM_MEGA_3D.h Add support for BQ heated bed kit with Hephestos 2 2017-07-07 03:10:38 -05:00
pins_BRAINWAVE_PRO.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_BRAINWAVE.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_CHEAPTRONIC.h Assign -1 to LCD_PINS_D4-7 if not defined 2017-07-06 22:47:51 -05:00
pins_CHEAPTRONICv2.h Easier override of FILWIDTH_PIN 2017-06-02 12:05:46 -05:00
pins_CNCONTROLS_11.h
pins_CNCONTROLS_12.h
pins_DUE3DOM_MINI.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_DUE3DOM.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_ELEFU_3.h
pins_FELIX2.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN3_MONOLITHIC.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN3_PLUS.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN6_DELUXE.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN6.h Minor patches to pins files 2017-08-23 18:32:59 -05:00
pins_GEN7_12.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN7_13.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN7_14.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_GEN7_CUSTOM.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_GT2560_REV_A_PLUS.h Minor patches to pins files 2017-08-23 18:32:59 -05:00
pins_GT2560_REV_A.h Add Anet 1.0 to Platformio.ini 2017-08-16 15:59:20 -05:00
pins_K8200.h
pins_K8400.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_LEAPFROG.h
pins_MEGACONTROLLER.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_MEGATRONICS_2.h added shift register pins for reprapworld keypad v1.1 2017-06-09 14:17:47 +02:00
pins_MEGATRONICS_3.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_MEGATRONICS.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_MELZI_CREALITY.h Fixes required for Creality CR-10 2017-08-27 20:39:16 -05:00
pins_MELZI_MAKR3D.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_MELZI.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_MIGHTYBOARD_REVE.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_MINIRAMBO.h Add support for Průša MK2 Multiplexer 2017-06-27 04:55:30 -05:00
pins_MINITRONICS.h Assign -1 to LCD_PINS_D4-7 if not defined 2017-07-06 22:47:51 -05:00
pins_MKS_13.h MKS 1.3+: Add pin mapping for PS_ON 2017-07-21 18:50:05 -05:00
pins_MKS_BASE.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_OMCA_A.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_OMCA.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_PRINTRBOARD_REVF.h Clean up excess whitespace 2017-07-06 21:24:30 -05:00
pins_PRINTRBOARD.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_RADDS.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RAMBO.h Add support for Průša MK2 Multiplexer 2017-06-27 04:55:30 -05:00
pins_RAMPS_13.h
pins_RAMPS_DUO.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RAMPS_FD_V2.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RAMPS_FD.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RAMPS_OLD.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_RAMPS_RE_ARM.h minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board) 2017-08-31 18:23:44 -05:00
pins_RAMPS_SMART.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RAMPS.h HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
pins_RAMPS4DUE.h HAL for DUE architecture 2017-08-31 18:15:07 -05:00
pins_RIGIDBOARD_V2.h Need to define this for Rigidboard V2 2017-04-30 19:04:27 -05:00
pins_RIGIDBOARD.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_RUMBA.h Pins-related cleanup, formatting 2017-05-21 07:18:03 -05:00
pins_SAINSMART_2IN1.h Patch pins files hotends/e-steppers sanity check 2017-04-07 10:46:33 -05:00
pins_SANGUINOLOLU_11.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_SANGUINOLOLU_12.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_SAV_MKI.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_SCOOVO_X9H.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_SETHI.h Formatting adjustments 2017-06-15 15:25:24 -05:00
pins_STB_11.h Tweak Sanguinololu-related pins files 2017-08-23 18:32:59 -05:00
pins_TEENSY2.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_TEENSY35_36.h HAL for 32-bit Teensy (3.5, 3.6) architecture 2017-08-31 18:15:07 -05:00
pins_TEENSYLU.h Remove extraneous USBCON defines for AT90USB boards 2017-07-23 16:41:48 -07:00
pins_ULTIMAIN_2.h Edit digipot currents via LCD, save to EEPROM 2017-06-25 01:02:36 -05:00
pins_ULTIMAKER_OLD.h SPINDLE/LASER pins changes 2017-05-17 04:23:06 -05:00
pins_ULTIMAKER.h Unify AVR90USB: Pins cleanup 2017-06-09 18:48:12 -05:00
pins_ZRIB_V20.h Support for ZRIB v2.0 Control Board 2017-06-02 12:05:46 -05:00
pins.h HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
pinsDebug_list.h HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
pinsDebug.h HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
planner_bezier.cpp Apply maths macros and type changes ahead of HAL 2017-06-19 22:57:42 -05:00
planner_bezier.h
planner.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
planner.h BARICUDA valve pressure consistently uint8_t 2017-07-20 02:21:40 -05:00
point_t.h
printcounter.cpp Patch some serial macros 2017-06-09 17:17:23 -05:00
printcounter.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
private_spi.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
SanityCheck.h HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
Sd2Card.cpp Base HAL SPI Changes 2017-08-31 18:21:38 -05:00
Sd2Card.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
SdBaseFile.cpp Patch goto labels for consistency 2017-08-14 22:51:47 -05:00
SdBaseFile.h Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
SdFatConfig.h
SdFatStructs.h Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
SdFatUtil.cpp
SdFatUtil.h
SdFile.cpp
SdFile.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
SdInfo.h Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
SdVolume.cpp Patch goto labels for consistency 2017-08-14 22:51:47 -05:00
SdVolume.h Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
serial.cpp Add proportional font adjustment ratio 2017-05-10 17:19:03 -04:00
serial.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
softspi.h Fix hexadecimal number formatting 2017-08-14 22:50:44 -05:00
speed_lookuptable.h
stepper_dac.cpp convert DAC percent to uint8_t 2017-06-19 17:46:41 -05:00
stepper_dac.h convert DAC percent to uint8_t 2017-06-19 17:46:41 -05:00
stepper_indirection.cpp Use float to init TMC2133 steps-per-mm 2017-08-05 03:48:52 -05:00
stepper_indirection.h Add support for Průša MK2 Multiplexer 2017-06-27 04:55:30 -05:00
stepper.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
stepper.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
stopwatch.cpp General comment cleanup 2017-04-08 18:58:33 -05:00
stopwatch.h Patch #else / #endif comments 2017-05-09 12:37:23 -05:00
temperature.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
temperature.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
thermistornames.h
thermistortable_1.h
thermistortable_2.h
thermistortable_3.h
thermistortable_4.h
thermistortable_5.h
thermistortable_6.h
thermistortable_7.h
thermistortable_8.h
thermistortable_9.h
thermistortable_10.h
thermistortable_11.h
thermistortable_12.h
thermistortable_13.h
thermistortable_20.h Tweaks to temperature code 2017-06-15 15:25:23 -05:00
thermistortable_51.h
thermistortable_52.h
thermistortable_55.h
thermistortable_60.h
thermistortable_66.h
thermistortable_70.h
thermistortable_71.h
thermistortable_75.h
thermistortable_110.h
thermistortable_147.h
thermistortable_998.h
thermistortable_999.h
thermistortable_1010.h
thermistortable_1047.h
thermistortables.h Misc. Clean Up (#6822) 2017-05-21 22:09:51 -05:00
twibus.cpp Patch some serial macros 2017-06-09 17:17:23 -05:00
twibus.h Clean up some trailing spaces 2017-07-01 22:32:20 -05:00
types.h
ubl_G29.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
ubl_motion.cpp Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
ubl.cpp Followup to #7045 2017-06-16 14:18:19 -05:00
ubl.h Clean up whitespace, trailing space, bad tab conversion, etc. 2017-08-03 11:20:03 -05:00
ultralcd_impl_DOGM.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
ultralcd_impl_HD44780.h Implement HAL and apply macros across code-base 2017-08-31 18:14:31 -05:00
ultralcd_st7920_u8glib_rrd.h Base HAL SPI Changes 2017-08-31 18:21:38 -05:00
ultralcd.cpp minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board) 2017-08-31 18:23:44 -05:00
ultralcd.h Add PROBE_MANUALLY support to G33 2017-07-04 18:06:54 -05:00
utf_mapper.h Slovak UTF-8 translation 2017-08-23 19:14:35 -05:00
utility.cpp convert DAC percent to uint8_t 2017-06-19 17:46:41 -05:00
utility.h Updates for G33-LCD interface 2017-07-07 05:00:59 -05:00
vector_3.cpp Apply maths macros and type changes ahead of HAL 2017-06-19 22:57:42 -05:00
vector_3.h Reference op with variable name 2017-05-28 11:33:22 -05:00
Version.h Marlin bugfix-2.0.x Version/README 2017-08-31 17:56:08 -05:00