结论:已将核心 LinuxCNC interpreter 源接入 standalone native 编译链接路径,移除 minimal runtime 中的手写 convert_g 行为,并通过 native probe 验证。
28 lines
771 B
C
28 lines
771 B
C
/********************************************************************
|
|
* Description: linuxcnc.h
|
|
* Common defines used in many emc2 source files.
|
|
*
|
|
*
|
|
* Author: Petter Reinholdtsen
|
|
* License: LGPL Version 2
|
|
* System: Any
|
|
*
|
|
* Copyright (c) 2021 All rights reserved.
|
|
********************************************************************/
|
|
|
|
#ifndef __LINUXCNC_LINUXCNC_H
|
|
#define __LINUXCNC_LINUXCNC_H
|
|
|
|
/* LINELEN is used throughout for buffer sizes, length of file name strings,
|
|
etc. Let's just have one instead of a multitude of defines all the same. */
|
|
#define LINELEN 255
|
|
|
|
/* Used in a number of places for sprintf() buffers. */
|
|
#define BUFFERLEN 80
|
|
|
|
/* Imperial/Metric conversion */
|
|
#define MM_PER_INCH 25.4
|
|
#define INCH_PER_MM (1.0/MM_PER_INCH)
|
|
|
|
#endif /* LINUXCNC_H */
|