aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals
diff options
context:
space:
mode:
authorlironh2020-03-21 09:52:53 +0200
committerlironh2020-03-22 21:08:30 +0200
commit8934a7566a038a74464d3d8df9d04fd875e5b1d7 (patch)
treee131c263938081e6c89f39f141f3f20f6da8f851 /src/peripherals
parentMerge pull request #19 from gfeun/main-execute-loop-optimization (diff)
downloadavr8js-8934a7566a038a74464d3d8df9d04fd875e5b1d7.tar.gz
avr8js-8934a7566a038a74464d3d8df9d04fd875e5b1d7.tar.bz2
avr8js-8934a7566a038a74464d3d8df9d04fd875e5b1d7.zip
refactor: added peripherals and cpu feature folders
Diffstat (limited to '')
-rw-r--r--src/peripherals/gpio.spec.ts (renamed from src/gpio.spec.ts)2
-rw-r--r--src/peripherals/gpio.ts (renamed from src/gpio.ts)4
-rw-r--r--src/peripherals/timer.spec.ts (renamed from src/timer.spec.ts)2
-rw-r--r--src/peripherals/timer.ts (renamed from src/timer.ts)4
-rw-r--r--src/peripherals/twi.spec.ts (renamed from src/twi.spec.ts)6
-rw-r--r--src/peripherals/twi.ts (renamed from src/twi.ts)6
-rw-r--r--src/peripherals/usart.spec.ts (renamed from src/usart.spec.ts)2
-rw-r--r--src/peripherals/usart.ts (renamed from src/usart.ts)6
8 files changed, 16 insertions, 16 deletions
diff --git a/src/gpio.spec.ts b/src/peripherals/gpio.spec.ts
index 2fa866d..5a282e6 100644
--- a/src/gpio.spec.ts
+++ b/src/peripherals/gpio.spec.ts
@@ -1,4 +1,4 @@
-import { CPU } from './cpu';
+import { CPU } from '../cpu/cpu';
import { AVRIOPort, portBConfig, PinState } from './gpio';
describe('GPIO', () => {
diff --git a/src/gpio.ts b/src/peripherals/gpio.ts
index d0df06d..a667967 100644
--- a/src/gpio.ts
+++ b/src/peripherals/gpio.ts
@@ -5,8 +5,8 @@
*
* Copyright (C) 2019, 2020, Uri Shaked
*/
-import { CPU } from './cpu';
-import { u8 } from './types';
+import { CPU } from '../cpu/cpu';
+import { u8 } from '../types';
export interface AVRPortConfig {
// Register addresses
diff --git a/src/timer.spec.ts b/src/peripherals/timer.spec.ts
index 4d631a7..adcef04 100644
--- a/src/timer.spec.ts
+++ b/src/peripherals/timer.spec.ts
@@ -1,4 +1,4 @@
-import { CPU } from './cpu';
+import { CPU } from '../cpu/cpu';
import { AVRTimer, timer0Config, timer2Config } from './timer';
describe('timer', () => {
diff --git a/src/timer.ts b/src/peripherals/timer.ts
index 4a120e7..7e563c2 100644
--- a/src/timer.ts
+++ b/src/peripherals/timer.ts
@@ -6,8 +6,8 @@
* Copyright (C) 2019, Uri Shaked
*/
-import { CPU } from './cpu';
-import { avrInterrupt } from './interrupt';
+import { CPU } from '../cpu/cpu';
+import { avrInterrupt } from '../cpu/interrupt';
const timer01Dividers = {
0: 0,
diff --git a/src/twi.spec.ts b/src/peripherals/twi.spec.ts
index 369f22a..542cf2a 100644
--- a/src/twi.spec.ts
+++ b/src/peripherals/twi.spec.ts
@@ -1,7 +1,7 @@
-import { CPU } from './cpu';
+import { CPU } from '../cpu/cpu';
import { AVRTWI, twiConfig } from './twi';
-import { assemble } from './utils/assembler';
-import { avrInstruction } from './instruction';
+import { assemble } from '../utils/assembler';
+import { avrInstruction } from '../cpu/instruction';
const FREQ_16MHZ = 16e6;
diff --git a/src/twi.ts b/src/peripherals/twi.ts
index fd0645b..ec0a206 100644
--- a/src/twi.ts
+++ b/src/peripherals/twi.ts
@@ -1,6 +1,6 @@
-import { CPU } from './cpu';
-import { avrInterrupt } from './interrupt';
-import { u8 } from './types';
+import { CPU } from '../cpu/cpu';
+import { avrInterrupt } from '../cpu/interrupt';
+import { u8 } from '../types';
export interface TWIEventHandler {
start(repeated: boolean): void;
diff --git a/src/usart.spec.ts b/src/peripherals/usart.spec.ts
index 222017c..d9843dc 100644
--- a/src/usart.spec.ts
+++ b/src/peripherals/usart.spec.ts
@@ -1,4 +1,4 @@
-import { CPU } from './cpu';
+import { CPU } from '../cpu/cpu';
import { AVRUSART, usart0Config } from './usart';
const FREQ_16MHZ = 16e6;
diff --git a/src/usart.ts b/src/peripherals/usart.ts
index 6838736..b93c0ea 100644
--- a/src/usart.ts
+++ b/src/peripherals/usart.ts
@@ -1,6 +1,6 @@
-import { CPU } from './cpu';
-import { avrInterrupt } from './interrupt';
-import { u8 } from './types';
+import { CPU } from '../cpu/cpu';
+import { avrInterrupt } from '../cpu/interrupt';
+import { u8 } from '../types';
export interface USARTConfig {
rxCompleteInterrupt: u8;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.