summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
Diffstat (limited to 'rcc')
-rw-r--r--rcc/rcc_enums.h.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/rcc/rcc_enums.h.j2 b/rcc/rcc_enums.h.j2
index 1b0abd0..97e85b9 100644
--- a/rcc/rcc_enums.h.j2
+++ b/rcc/rcc_enums.h.j2
@@ -12,7 +12,7 @@ namespace rcc {
template <typename T>
void enable(const T& rcc, {{ bus }}_dev dev) {
- rcc->{{ bus }}ENR |= dev;
+ rcc->{{ bus.split('_')[0] }}ENR{{ bus.split('_')[1] if '_' in bus else '' }} |= dev;
}
{% endfor %}