diff --git a/data/xap/xap_0.1.0.hjson b/data/xap/xap_0.1.0.hjson index 366f2cbf318..749b9ccc414 100755 --- a/data/xap/xap_0.1.0.hjson +++ b/data/xap/xap_0.1.0.hjson @@ -38,6 +38,10 @@ } type_docs: { + bool: + ''' + Data type that contains values 0 and 1. Implementaed as an alias of `u8`. + ''' u64: ''' An unsigned 64-bit integral, commonly seen as `uint64_t` from _stdint.h_. diff --git a/lib/python/qmk/xap/jinja2_filters.py b/lib/python/qmk/xap/jinja2_filters.py index c5b2aba55fd..043d20f8c3a 100644 --- a/lib/python/qmk/xap/jinja2_filters.py +++ b/lib/python/qmk/xap/jinja2_filters.py @@ -27,6 +27,8 @@ def _xap_type_to_c_before(xt: str): return 'uint32_t' elif xt == 'u64': return 'uint64_t' + elif xt == 'bool': + return 'uint8_t' elif xt == 'string': return 'const char*' elif xt == 'token':