Skip to content
New issue

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

atmega32: Add ATmega32 and ATmega324p support. Implement simpler-api branch #138

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Clean up a bit
  • Loading branch information
jamesrwaugh committed Feb 17, 2023
commit 522eb062af10503b14a45e3a02a388feff23f7e7
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"build:demo": "vite build demo",
"prepare": "husky install && npm run build",
"start": "vite demo",
"start2": "vite clidemo",
"lint": "eslint src/**/*.ts demo/**/*.ts",
"test": "npm run lint && jest",
"test:watch": "jest --watch",
Expand Down
6 changes: 3 additions & 3 deletions src/peripherals/adc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CPU } from '../cpu/cpu';
import { asmProgram, TestProgramRunner } from '../utils/test-utils';
import { AVRADC, ADCMuxInputType } from './adc';
import { atmega328AdcConfig } from './adc_atmega328p';
import { adcConfig } from './adc_atmega328p';

const R16 = 16;
const R17 = 17;
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('ADC', () => {
break
`);
const cpu = new CPU(program);
const adc = new AVRADC(cpu, atmega328AdcConfig);
const adc = new AVRADC(cpu, adcConfig);
const runner = new TestProgramRunner(cpu);

const adcReadSpy = jest.spyOn(adc, 'onADCRead');
Expand Down Expand Up @@ -110,7 +110,7 @@ describe('ADC', () => {
break
`);
const cpu = new CPU(program);
const adc = new AVRADC(cpu, atmega328AdcConfig);
const adc = new AVRADC(cpu, adcConfig);
const runner = new TestProgramRunner(cpu, () => {
/* do nothing on break */
});
Expand Down