Add Microcontrollers

This commit is contained in:
Dan Clark
2025-02-07 09:20:43 +00:00
parent a08f86eb74
commit f2e501454e
19 changed files with 213 additions and 10 deletions
@@ -0,0 +1,9 @@
namespace Toolkit.Foundation;
public record MicrocontrollerModuleDescriptor<TModule> :
IMicrocontrollerModuleDescriptor<TModule> where TModule : IMicrocontrollerModule, new()
{
public Type Type => typeof(TModule);
public Func<TModule>? Factory => new(() => new TModule());
}