资源简介
grbl 代码 0.9j
代码片段和文件信息
/*
coolant_control.c - coolant control methods
Part of Grbl
Copyright (c) 2012-2015 Sungeun K. Jeon
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl. If not see .
*/
#include “grbl.h“
void coolant_init()
{
COOLANT_FLOOD_DDR |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_DDR |= (1 << COOLANT_MIST_BIT);
#endif
coolant_stop();
}
void coolant_stop()
{
COOLANT_FLOOD_PORT &= ~(1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_PORT &= ~(1 << COOLANT_MIST_BIT);
#endif
}
void coolant_set_state(uint8_t mode)
{
if (mode == COOLANT_FLOOD_ENABLE) {
COOLANT_FLOOD_PORT |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
} else if (mode == COOLANT_MIST_ENABLE) {
COOLANT_MIST_PORT |= (1 << COOLANT_MIST_BIT);
#endif
} else {
coolant_stop();
}
}
void coolant_run(uint8_t mode)
{
if (sys.state == STATE_CHECK_MODE) { return; }
protocol_buffer_synchronize(); // Ensure coolant turns on when specified in program.
coolant_set_state(mode);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-27 23:33 print-project\
目录 0 2015-07-27 21:50 print-project\grbl-master\
文件 42 2015-07-17 22:19 print-project\grbl-master\.gitignore
文件 3662 2015-07-27 21:49 print-project\grbl-master\3d-print.pnproj
文件 197 2015-07-27 21:49 print-project\grbl-master\3d-print.pnps
文件 35285 2015-07-17 22:19 print-project\grbl-master\COPYING
文件 3496 2015-07-17 22:19 print-project\grbl-master\Makefile
文件 5839 2015-07-17 22:19 print-project\grbl-master\README.md
目录 0 2015-07-27 21:50 print-project\grbl-master\build\
文件 929 2015-07-27 21:50 print-project\grbl-master\build\coolant_control.d
文件 1336 2015-07-27 21:50 print-project\grbl-master\build\coolant_control.o
文件 31 2015-07-27 21:50 print-project\grbl-master\build\eeprom.d
文件 1900 2015-07-27 21:50 print-project\grbl-master\build\eeprom.o
文件 909 2015-07-27 21:50 print-project\grbl-master\build\gcode.d
文件 19064 2015-07-27 21:50 print-project\grbl-master\build\gcode.o
文件 911 2015-07-27 21:50 print-project\grbl-master\build\limits.d
文件 5432 2015-07-27 21:50 print-project\grbl-master\build\limits.o
文件 907 2015-07-27 21:50 print-project\grbl-master\build\main.d
文件 43038 2015-07-27 21:50 print-project\grbl-master\build\main.elf
文件 1720 2015-07-27 21:50 print-project\grbl-master\build\main.o
文件 927 2015-07-27 21:50 print-project\grbl-master\build\motion_control.d
文件 6868 2015-07-27 21:50 print-project\grbl-master\build\motion_control.o
文件 919 2015-07-27 21:50 print-project\grbl-master\build\nuts_bolts.d
文件 2480 2015-07-27 21:50 print-project\grbl-master\build\nuts_bolts.o
文件 913 2015-07-27 21:50 print-project\grbl-master\build\planner.d
文件 8780 2015-07-27 21:50 print-project\grbl-master\build\planner.o
文件 909 2015-07-27 21:50 print-project\grbl-master\build\print.d
文件 4264 2015-07-27 21:50 print-project\grbl-master\build\print.o
文件 909 2015-07-27 21:50 print-project\grbl-master\build\probe.d
文件 1656 2015-07-27 21:50 print-project\grbl-master\build\probe.o
文件 915 2015-07-27 21:50 print-project\grbl-master\build\protocol.d
............此处省略75个文件信息
- 上一篇:Att2008考勤数据修改器
- 下一篇:y8l7mn.xls
相关资源
- 双二阶广义积分器SOGI软件锁相(基于
- TMF8801驱动参考代码
- 代码项目“生成”微博、知乎、
- ARM9指令cache的verilog代码
- STM32+TMC5160代码电路图.rar
- 压缩感知常见测量矩阵一维仿真信号
- pppd2.4.7源代码以及拨号脚本
- Apache Subversion1.10.3服务端SVN
- ARM7TDMI-S在嵌入式系统中的Bootloader代码
- 酒店预订管理系统源代码
- Xyratex欲部分收购Ario的RAID代码
- Marvell 88W8686 WiFi模块的ADHOC热点创建代
- 机会路由源代码+仿真工具(SCORP)
- 批量替换证件照片的底色(含源代码
- cocos2d-x飞机大战项目
- 编译原理实验:词法分析,语法分析
- 分享一个远程控制软件源代码
- BLE-CC254x-1.3.2 蓝牙官方源代码
- createKeep
- 使用delphi+intraweb进行微信开发1~4代码
- 基于Freemarker模板的代码生成器后台代
- Ubuntu下操作Excel,qt代码
- 代码之美高清中文版,强烈推荐!
- opencl编程指南随书代码
- 初学Visual Basic 2010代码
- VS2010、VS2012、VS2013代码自动注释插件
- eclipse、idea代码模板
- eclipse统计代码工具
- 代码统计工具
- SourceCount代码统计
评论
共有 条评论