aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorUri Shaked2021-09-10 21:16:34 +0300
committerUri Shaked2021-09-10 21:16:34 +0300
commit96a6dba4371a2e319a47335b2bf366b695b6c17a (patch)
tree1664c852cc86826a9fd6795a6512c6d8fa92a686 /demo
parentfeat(adc): ADC peripheral #13 (diff)
downloadavr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.gz
avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.bz2
avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.zip
refactor: remove the ICPU interface
Removing the interface simplifies the code
Diffstat (limited to 'demo')
-rw-r--r--demo/src/cpu-performance.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/src/cpu-performance.ts b/demo/src/cpu-performance.ts
index f61d038..a4afc73 100644
--- a/demo/src/cpu-performance.ts
+++ b/demo/src/cpu-performance.ts
@@ -1,4 +1,4 @@
-import { ICPU } from 'avr8js';
+import { CPU } from 'avr8js';
export class CPUPerformance {
private prevTime = 0;
@@ -6,7 +6,7 @@ export class CPUPerformance {
private samples = new Float32Array(64);
private sampleIndex = 0;
- constructor(private cpu: ICPU, private MHZ: number) {}
+ constructor(private cpu: CPU, private MHZ: number) {}
reset() {
this.prevTime = 0;