We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to refactor the existing ATmega328p implementation to utilize the implementation mentioned in pull request 138: Add ATmega32
Definition of done:
src/chips/ATmega328p.ts
CreateAVR
npm test
npm start
My ultimate goal is to add the ATtiny841 and believe this is a solid step towards adding any new chip, ATtiny841, ATmega32, and so on.
Here is a GIST for ADC testing. Created this section to convey one possible approach. Open to other ideas.
import { ATmega328p } from '../chips/ATmega328p'; import { createAVR } from '../create-avr'; . . . SNIP . . . const avr = createAVR(ATmega328p, { program: program }); const cpu = avr.cpu; const adc = avr.adc; const runner = new TestProgramRunner(cpu);
Notice:
createAVR
ATmega328p
program
cpu
adc
Chip
The text was updated successfully, but these errors were encountered:
closing, duplicate work, feel free to delete this issue
Sorry, something went wrong.
No branches or pull requests
I would like to refactor the existing ATmega328p implementation to utilize the implementation mentioned in pull request 138: Add ATmega32
Definition of done:
src/chips/ATmega328p.ts
CreateAVR
function as provided in the ATMega32 effortnpm test
reports all tests passednpm start
demo shows a blinking ledMy ultimate goal is to add the ATtiny841 and believe this is a solid step towards adding any new chip, ATtiny841, ATmega32, and so on.
Here is a GIST for ADC testing. Created this section to convey one possible approach. Open to other ideas.
Notice:
createAVR
is being utilizedATmega328p
configuration is provided as input argumentprogram
remains unchanged from existingcpu
andadc
are instantiated bycreateAVR
using theATmega328p
configurationChip
configurations could be utilized and tested as neededThe text was updated successfully, but these errors were encountered: