Repository navigation
Implement SiliconTwin.Abstractions: AvrMcu, batch GPIO, pin events, ADC pull, PWM info - #31
Draft
begeistert wants to merge 1 commit into
Draft
begeistert wants to merge 1 commit into
begeistert wants to merge 1 commit into
Conversation
…nts, ADC pull, PWM info) AvrBuilder.BuildMcu returns an AvrMcu over everything the builder mounted: IMcu (cycle-budget Run, Reset, Load), one IPinBank per port with batch SetInputs/ReleaseInputs and cycle-stamped PinChanged events, IPwmSource from the timer state, IAdcInput with a pull callback, and byte-level UART, SPI and I2C ports. The pieces underneath are public on their own: AvrIoPort.SetInputs, ReleaseInputs, ApplyInputs, OutputEnableMask, OutputLevels, PullUpMask, PinChanged; AvrAdc.ReadChannelVolts; AvrTimer.TryGetPwm; AvrClock.Changed. Exposed over the C ABI and Python. The core is now trimmable and AOT compatible, with a Native AOT smoke test in CI.
Deploying avr8sharp-docs with
|
| Latest commit: |
3b6d26e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2d2b69be.avr8sharp-docs.pages.dev |
| Branch Preview URL: | https://feat-silicontwin-abstraction.avr8sharp-docs.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #30. Implements the shared embedder contract SiliconTwin.Abstractions (silicon-twin/abstractions#1).
Draft until
SiliconTwin.Abstractions0.1.0 is on nuget.org. CI cannot restore until then. It was built and tested locally against the packed package.AvrBuilder.BuildMcu(name)returns anAvrMcu(IMcu,IGpio,IPwmSource,IAdcInput,IPeripheralMap) over everything the builder mounted, with no glue.SetInputs/ReleaseInputs/ApplyInputsOutputEnableMask/OutputLevels/PullUpMaskPinChangedwith the cycle and aWatchMask, costing one null check when unusedReadChannelVolts.IsTrimmable/IsAotCompatible, and CI publishes and runs a Native AOT smoke test.No emulation behaviour changes; the additions are accessors and events.
Local results:
Avr8Sharp.Tests: 689 (657 on Emulator fidelity: reset, interrupts, Intel HEX, Mega and ATtiny85 configs #30)TestKit.Samples: 73