-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayoutRegistry.cpp
More file actions
38 lines (34 loc) · 1.51 KB
/
Copy pathLayoutRegistry.cpp
File metadata and controls
38 lines (34 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @file LayoutRegistry.cpp
* @brief Layout registry — single definition of all keyboard layout tables.
*/
#include "LayoutCommon.h"
#include "LayoutUs.h"
#include "LayoutUk.h"
#include "LayoutDe.h"
#include "LayoutFr.h"
#include "LayoutEs.h"
#include "LayoutIt.h"
#include "LayoutPt.h"
#include "LayoutAbnt2.h"
#include "LayoutNordic.h"
#include "LayoutJp.h"
#include "LayoutRegistry.h"
// =============================================================================
// REGISTRY TABLE — Single definition, indexed by LAYOUT_ID_*
// =============================================================================
// Note: On RP2040 with XIP, static const arrays in the individual
// layout_*.h files are already placed in flash by the linker. The
// __in_flash annotation here makes it explicit for the registry table.
const LayoutDescriptor __in_flash("layouts") layout_registry[LAYOUT_COUNT] = {
/* 0 */ { "US", key_map_us, KEY_MAP_SIZE_us },
/* 1 */ { "UK", key_map_uk, KEY_MAP_SIZE_uk },
/* 2 */ { "DE", key_map_de, KEY_MAP_SIZE_de },
/* 3 */ { "FR", key_map_fr, KEY_MAP_SIZE_fr },
/* 4 */ { "ES", key_map_es, KEY_MAP_SIZE_es },
/* 5 */ { "IT", key_map_it, KEY_MAP_SIZE_it },
/* 6 */ { "PT", key_map_pt, KEY_MAP_SIZE_pt },
/* 7 */ { "ABNT2", key_map_abnt2, KEY_MAP_SIZE_abnt2 },
/* 8 */ { "NORDIC", key_map_nordic, KEY_MAP_SIZE_nordic },
/* 9 */ { "JP", key_map_jp, KEY_MAP_SIZE_jp },
};