Sync edgetx to Gitea
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// WARNING: DO NOT EDIT THIS FILE
|
||||
// This file has been generated from the target's JSON hardware description
|
||||
//
|
||||
|
||||
const char* const _key_labels[] = {
|
||||
{% for k in key_index %}
|
||||
{% set key = keys | selectattr("key","==",k) | first %}
|
||||
{% if key %}
|
||||
"{{ key.label }}",
|
||||
{% else %}
|
||||
nullptr,
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
};
|
||||
|
||||
constexpr uint32_t _defined_keys = 0
|
||||
{% for key in keys %}
|
||||
| (1 << {{ key.key }})
|
||||
{% endfor %}
|
||||
;
|
||||
|
||||
constexpr uint8_t _n_keys = {{ keys | length }};
|
||||
constexpr uint8_t _n_trims = {{ trims | length }};
|
||||
|
||||
static_assert(DIM(_key_labels) == MAX_KEYS, "wrong size _key_labels[]");
|
||||
|
||||
static_assert(_n_keys <= MAX_KEYS, "too many keys defined");
|
||||
static_assert(_n_trims <= MAX_TRIMS, "too many trims defined");
|
||||
Reference in New Issue
Block a user