Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restructure (#2)
* Change file structure, add linter, requirements and gitignore

* added basic config for logging
  • Loading branch information
xedbg committed Nov 21, 2016
1 parent 8c2a287 commit 26e9bf6
Show file tree
Hide file tree
Showing 12 changed files with 1,299 additions and 854 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.vscode
__pycache__
Empty file added device/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions device/device.py
@@ -0,0 +1,16 @@


class Device(object): # pylint: disable=too-few-public-methods
"""
Contains device specific information needed for programming
"""
def __init__(self, device_name):
if device_name == "tiny817":
self.flash_start = 0x8000
self.flash_size = 8 * 1024
self.flash_pagesize = 64
self.nvmctrl_address = 0x1000
self.sigrow_address = 0x1100
self.syscfg_address = 0x0F00
else:
raise Exception("Unknown device")

0 comments on commit 26e9bf6

Please sign in to comment.