Reused CPU peripheral for GPRs in AVR8 driver
This commit is contained in:
@@ -128,6 +128,12 @@ namespace Targets
|
||||
return descriptor->get();
|
||||
}
|
||||
|
||||
TargetPeripheralDescriptor& TargetDescriptor::getPeripheralDescriptor(const std::string& key) {
|
||||
return const_cast<TargetPeripheralDescriptor&>(
|
||||
const_cast<const TargetDescriptor*>(this)->getPeripheralDescriptor(key)
|
||||
);
|
||||
}
|
||||
|
||||
std::optional<
|
||||
std::reference_wrapper<const TargetPadDescriptor>
|
||||
> TargetDescriptor::tryGetPadDescriptor(const std::string& key) const {
|
||||
|
||||
Reference in New Issue
Block a user