42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/* ----------------------------------------------------------------------------
|
|
* main() : functions and data that may be useful externally
|
|
* ----------------------------------------------------------------------------
|
|
* Copyright (c) 2012 Ben Blazak <benblazak.dev@gmail.com>
|
|
* Released under The MIT License (MIT) (see "license.md")
|
|
* Project located at <https://github.com/benblazak/ergodox-firmware>
|
|
* ------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef MAIN_h
|
|
#define MAIN_h
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "./lib/key-functions/public.h"
|
|
#include "./keyboard/matrix.h"
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
extern bool (*main_kb_is_pressed)[KB_ROWS][KB_COLUMNS];
|
|
extern bool (*main_kb_was_pressed)[KB_ROWS][KB_COLUMNS];
|
|
|
|
extern uint8_t main_layers_current;
|
|
extern uint8_t main_layers_press[KB_ROWS][KB_COLUMNS];
|
|
extern uint8_t main_layers_release[KB_ROWS][KB_COLUMNS];
|
|
|
|
extern uint8_t main_loop_row;
|
|
extern uint8_t main_loop_col;
|
|
|
|
extern uint8_t main_arg_layer;
|
|
extern uint8_t main_arg_row;
|
|
extern uint8_t main_arg_col;
|
|
extern bool main_arg_is_pressed;
|
|
extern bool main_arg_was_pressed;
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
void main_exec_key(void);
|
|
|
|
#endif
|
|
|