Skip to content

Commit

Permalink
Added remaining definitions for BlackBox X32
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Nov 30, 2022
1 parent 74c1099 commit 0d99ceb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
18 changes: 17 additions & 1 deletion driver.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
{
"name": "MKS DLC32 2.0",
"symbol": "BOARD_MKS_DLC32_V2P0",
"URL": "",
"URL": "https://github.com/makerbase-mks/MKS-DLC32",
"caps": {
"axes": 3,
"digital_in": 0,
Expand All @@ -193,6 +193,22 @@
"sdcard": 0
}
},
{
"name": "BlackBox X32",
"symbol": "BOARD_BLACKBOX_X32",
"URL": "https://docs.openbuilds.com/doku.php?id=docs:blackbox-x32:start",
"caps": {
"axes": 4,
"digital_in": 0,
"digital_out": 0,
"safety_door": 1,
"serial_ports": 1,
"eeprom": 0,
"fram": 0,
"i2c": 0,
"sdcard": 1
}
},
{
"name": "CNC BoosterPack",
"symbol": "BOARD_CNC_BOOSTERPACK",
Expand Down
5 changes: 3 additions & 2 deletions main/BlackBoxX32_map.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
BlackBoxX32.h - GrblHAL - An embedded CNC Controller with rs274/ngc (g-code) support
BlackBoxX32_map.h - grblHAL - An embedded CNC Controller with rs274/ngc (g-code) support
Driver code for ESP32
Part of grblHAL
Copyright (c) 2021-2022 Terje Io
Copyright (c) 2022 Peter van der Walt
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -29,6 +29,7 @@
#endif

#define BOARD_NAME "BlackBox X32"
#define BOARD_URL "https://docs.openbuilds.com/doku.php?id=docs:blackbox-x32:start"
#define HAS_IOPORTS

// timer definitions
Expand Down
1 change: 1 addition & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# NOTE: Only one board may be enabled!
# If none is enabled pin mappings from generic_map.h will be used.

OPTION(BOARD_BLACKBOX_X32 "Compile for BlackBox X32" OFF)
OPTION(BOARD_BDRING_V3P5 "Compile for v3.5 3-axis board" OFF)
OPTION(BOARD_BDRING_V4 "Compile for bdring v4 3-axis board" OFF)
OPTION(BOARD_BDRING_I2S6A "Compile for bdring 6-axis I2S board - untested!" OFF)
Expand Down
2 changes: 2 additions & 0 deletions main/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ typedef struct {
#include "mks_dlc32_2_0_map.h"
#elif defined(BOARD_MKS_TINYBEE_V1)
#include "mks_tinybee_1_0_map.h"
#elif defined(BOARD_BLACKBOX_X32)
#include "BlackBoxX32_map.h"
#elif defined(BOARD_MY_MACHINE)
#include "my_machine_map.h"
#else // default board - NOTE: NOT FINAL VERSION!
Expand Down

0 comments on commit 0d99ceb

Please sign in to comment.