|
110 | 110 | #define USART0_REMAP |
111 | 111 | #define USART2_PARTIAL_REMAP |
112 | 112 |
|
113 | | -/** |
114 | | - * Panel LEDs |
115 | | - */ |
116 | | - |
| 113 | +// Panel LEDs |
117 | 114 | #ifdef __cplusplus |
118 | | -namespace hal { |
119 | | -namespace panelled { |
120 | | -static constexpr uint32_t ACTIVITY = 0; |
121 | | -static constexpr uint32_t ARTNET = 0; |
122 | | -static constexpr uint32_t DDP = 0; |
123 | | -static constexpr uint32_t SACN = 0; |
124 | | -static constexpr uint32_t LTC_IN = 0; |
125 | | -static constexpr uint32_t LTC_OUT = 0; |
126 | | -static constexpr uint32_t MIDI_IN = 0; |
127 | | -static constexpr uint32_t MIDI_OUT = 0; |
128 | | -static constexpr uint32_t OSC_IN = 0; |
129 | | -static constexpr uint32_t OSC_OUT = 0; |
130 | | -static constexpr uint32_t TCNET = 0; |
| 115 | +namespace hal::panelled { |
| 116 | +inline constexpr uint32_t kActivity = 0; |
| 117 | +inline constexpr uint32_t kArtnet = 0; |
| 118 | +inline constexpr uint32_t kDdp = 0; |
| 119 | +inline constexpr uint32_t kSacn = 0; |
| 120 | +inline constexpr uint32_t kLtcIn = 0; |
| 121 | +inline constexpr uint32_t kLtcOut = 0; |
| 122 | +inline constexpr uint32_t kMidiIn = 0; |
| 123 | +inline constexpr uint32_t kMidiOut = 0; |
| 124 | +inline constexpr uint32_t kOscIn = 0; |
| 125 | +inline constexpr uint32_t kOscOut = 0; |
| 126 | +inline constexpr uint32_t kTcnet = 0; |
131 | 127 | // DMX |
132 | | -static constexpr uint32_t PORT_A_TX = (1U << 0); |
133 | | -static constexpr uint32_t PORT_A_RX = (1U << 8); |
| 128 | +inline constexpr uint32_t kPortATx = (1U << 0); |
| 129 | +inline constexpr uint32_t kPortARx = (1U << 8); |
134 | 130 | #define CONFIG_PANELLED_RDM_PORT |
135 | | -static constexpr uint32_t PORT_A_RDM = (1U << 16); |
136 | | -} // namespace panelled |
137 | | -} // namespace hal |
| 131 | +inline constexpr uint32_t kPortARdm = (1U << 16); |
| 132 | +} // namespace hal::panelled |
138 | 133 | #endif |
139 | 134 |
|
140 | 135 | #define PANELLED_595_COUNT 2 |
|
0 commit comments