Skip to content

Disable debug console by default and enable it with a new module #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Debug/debugconsole/setup.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
###| CMake Kiibohd Controller Debug Module |###
#
# Written by Jacob Alexander in 2011-2015 for the Kiibohd Controller
#
# Released into the Public Domain
#
###


###
# Required Submodules
#

AddModule ( Debug cli )
AddModule ( Debug led )
AddModule ( Debug print )

add_definitions(-DDEBUG)


###
# Compiler Family Compatibility
#
set ( ModuleCompatibility
arm
avr
)

4 changes: 4 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ int main()
CLKPR = 0x00;
#endif

#if defined(DEBUG)
// Enable CLI
CLI_init();
#endif

// Setup Modules
Output_setup();
Expand All @@ -56,8 +58,10 @@ int main()
// Main Detection Loop
while ( 1 )
{
#if defined(DEBUG)
// Process CLI
CLI_process();
#endif

// Acquire Key Indices
// Loop continuously until scan_loop returns 0
Expand Down