mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 09:10:48 +01:00
[ion] Boot on the bench if keys A1 and I5 are pressed after reset
Change-Id: I292a3c1061c20ee5834e27dcc93ea2da65f6cabe
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "bench.h"
|
||||
#include <ion.h>
|
||||
#include "command_list.h"
|
||||
|
||||
|
||||
14
ion/src/device/bench/bench.h
Normal file
14
ion/src/device/bench/bench.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef ION_DEVICE_BENCH_BENCH_H
|
||||
#define ION_DEVICE_BENCH_BENCH_H
|
||||
|
||||
namespace Ion {
|
||||
namespace Device {
|
||||
namespace Bench {
|
||||
|
||||
void run();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -5,6 +5,7 @@ extern "C" {
|
||||
#include <string.h>
|
||||
#include <ion.h>
|
||||
#include "../device.h"
|
||||
#include "../bench/bench.h"
|
||||
|
||||
typedef void (*cxx_constructor)();
|
||||
|
||||
@@ -60,6 +61,11 @@ void start() {
|
||||
|
||||
Ion::Device::init();
|
||||
|
||||
if (Ion::Keyboard::keyDown(Ion::Keyboard::Key::A1) &&
|
||||
Ion::Keyboard::keyDown(Ion::Keyboard::Key::I5)) {
|
||||
Ion::Device::Bench::run();
|
||||
}
|
||||
|
||||
ion_app();
|
||||
|
||||
abort();
|
||||
|
||||
Reference in New Issue
Block a user