91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 108KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-08
  • 語言: 其他
  • 標簽: 源代碼??

資源簡介

Grbl 帶有說明文旦的源代碼,經典! 特別推薦! config.h coolant_control.c coolant_control.h COPYING defaults.h doc eeprom.c eeprom.h gcode.c gcode.h limits.c limits.h main.c Makefile motion_control.c motion_control.h nuts_bolts.c nuts_bolts.h pin_map.h planner.c planner.h print.c print.h protocol.c protocol.h README.md report.c report.h script serial.c serial.h settings.c settings.h spindle_control.c spindle_control.h stepper.c stepper.h

資源截圖

代碼片段和文件信息

/*
??coolant_control.c?-?coolant?control?methods
??Part?of?Grbl

??The?MIT?License?(MIT)

??GRBL(tm)?-?embedded?CNC?g-code?interpreter?and?motion-controller
??Copyright?(c)?2012?Sungeun?K.?Jeon

??Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
??of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
??in?the?Software?without?restriction?including?without?limitation?the?rights
??to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
??copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
??furnished?to?do?so?subject?to?the?following?conditions:

??The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
??all?copies?or?substantial?portions?of?the?Software.

??THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
??IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
??FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
??AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
??LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
??OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
??THE?SOFTWARE.
*/

#include?“coolant_control.h“
#include?“settings.h“
#include?“config.h“
#include?“planner.h“

#include?

static?uint8_t?current_coolant_mode;

void?coolant_init()
{
??current_coolant_mode?=?COOLANT_DISABLE;
??#if?ENABLE_M7
????COOLANT_MIST_DDR?|=?(1?<??#endif
??COOLANT_FLOOD_DDR?|=?(1?<??coolant_stop();
}

void?coolant_stop()
{
??#ifdef?ENABLE_M7
????COOLANT_MIST_PORT?&=?~(1?<??#endif
??COOLANT_FLOOD_PORT?&=?~(1?<}


void?coolant_run(uint8_t?mode)
{
??if?(mode?!=?current_coolant_mode)
??{?
????plan_synchronize();?//?Ensure?coolant?turns?on?when?specified?in?program.
????if?(mode?==?COOLANT_FLOOD_ENABLE)?{?
??????COOLANT_FLOOD_PORT?|=?(1?<????#ifdef?ENABLE_M7??
??????}?else?if?(mode?==?COOLANT_MIST_ENABLE)?{
??????????COOLANT_MIST_PORT?|=?(1?<????#endif
????}?else?{
??????coolant_stop();
????}
????current_coolant_mode?=?mode;
??}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-08-14?03:15??grbl-0_8\
?????文件??????????31??2014-08-14?03:15??grbl-0_8\.gitignore
?????文件????????4277??2014-08-14?03:15??grbl-0_8\COPYING
?????文件????????3872??2014-08-14?03:15??grbl-0_8\Makefile
?????文件????????6915??2014-08-14?03:15??grbl-0_8\README.md
?????文件???????12358??2014-08-14?03:15??grbl-0_8\config.h
?????文件????????2233??2014-08-14?03:15??grbl-0_8\coolant_control.c
?????文件????????1513??2014-08-14?03:15??grbl-0_8\coolant_control.h
?????文件????????9367??2014-08-14?03:15??grbl-0_8\defaults.h
?????目錄???????????0??2014-08-14?03:15??grbl-0_8\doc\
?????文件????????2987??2014-08-14?03:15??grbl-0_8\doc\commands.txt
?????文件????????4014??2014-08-14?03:15??grbl-0_8\doc\pinmapping.txt
?????文件?????????404??2014-08-14?03:15??grbl-0_8\doc\resources.txt
?????文件????????1974??2014-08-14?03:15??grbl-0_8\doc\structure.txt
?????文件????????5599??2014-08-14?03:15??grbl-0_8\eeprom.c
?????文件????????1589??2014-08-14?03:15??grbl-0_8\eeprom.h
?????文件???????28912??2014-08-14?03:15??grbl-0_8\gcode.c
?????文件????????5056??2014-08-14?03:15??grbl-0_8\gcode.h
?????文件???????12256??2014-08-14?03:15??grbl-0_8\limits.c
?????文件????????1442??2014-08-14?03:15??grbl-0_8\limits.h
?????文件????????4467??2014-08-14?03:15??grbl-0_8\main.c
?????文件???????14742??2014-08-14?03:15??grbl-0_8\motion_control.c
?????文件????????2522??2014-08-14?03:15??grbl-0_8\motion_control.h
?????文件????????4896??2014-08-14?03:15??grbl-0_8\nuts_bolts.c
?????文件????????5178??2014-08-14?03:15??grbl-0_8\nuts_bolts.h
?????文件????????8045??2014-08-14?03:15??grbl-0_8\pin_map.h
?????文件???????25674??2014-08-14?03:15??grbl-0_8\planner.c
?????文件????????4487??2014-08-14?03:15??grbl-0_8\planner.h
?????文件????????4079??2014-08-14?03:15??grbl-0_8\print.c
?????文件????????1511??2014-08-14?03:15??grbl-0_8\print.h
?????文件???????15716??2014-08-14?03:15??grbl-0_8\protocol.c
............此處省略20個文件信息

評論

共有 條評論