Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/local_control'
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 6, 2016
2 parents 08bb9e1 + 65c6af5 commit 9fce197
Show file tree
Hide file tree
Showing 417 changed files with 298,284 additions and 2,610 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.pyc
doc/html
.vscode
simulator/platform/win32/eez_psu_sim.VC.db
*.opendb
19 changes: 15 additions & 4 deletions build-arduino-library.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import (print_function)

'''
EEZ PSU Firmware
Copyright (C) 2015 Envox d.o.o.
Expand All @@ -22,17 +24,23 @@
directory so any Arduino sketch can see it.
Execute this script if scpi-parser is changed or scpi_user_config.h (from this directory) is changed.
'''
from __future__ import (print_function)

import os
import platform
import sys
import shutil

def rm_then_cp(src, dest):
def rm_then_cp(src, dest, ignoreRootDirs=None):
def copytreeIgnore(d, files):
if ignoreRootDirs is not None:
if d == src:
return ignoreRootDirs
return []

if os.path.exists(dest):
shutil.rmtree(dest)
shutil.copytree(src, dest)

shutil.copytree(src, dest, ignore=copytreeIgnore)

def build_scpi_parser_lib(libscpi_dir, scpi_parser_dir):
'''
Expand Down Expand Up @@ -65,8 +73,11 @@ def build_scpi_parser_lib(libscpi_dir, scpi_parser_dir):
rm_then_cp(os.path.join(libscpi_dir, 'src'), os.path.join(scpi_parser_dir, 'src/impl'))

def build_UIPEthernet_lib(arduino_uip_dir, UIPEthernet_dir):
rm_then_cp(os.path.join(arduino_uip_dir, 'UIPEthernet'), UIPEthernet_dir)
rm_then_cp(os.path.join(arduino_uip_dir, 'UIPEthernet'), UIPEthernet_dir, ['examples'])

def build_Ethernet2_lib(arduino_Ethernet2_dir, Ethernet2_dir):
rm_then_cp(arduino_Ethernet2_dir, Ethernet2_dir, ['.git', '.github', 'examples'])

def copy_lib(src_lib_dir, dst_name):
#
# find arduino libraries directory
Expand Down
10 changes: 10 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
build_arduino_library.build_UIPEthernet_lib(arduino_uip_dir, UIPEthernet_dir)
build_arduino_library.copy_lib(UIPEthernet_dir, 'UIPEthernet')

# Ethernet2
arduino_Ethernet2_dir = os.path.join(os.path.dirname(__file__), '../libraries/Ethernet2')
Ethernet2_dir = os.path.join(os.path.dirname(__file__), 'libraries/Ethernet2')
build_arduino_library.build_Ethernet2_lib(arduino_Ethernet2_dir, Ethernet2_dir)
build_arduino_library.copy_lib(Ethernet2_dir, 'Ethernet2')

# eez_psu_lib
eez_psu_lib_dir = os.path.join(os.path.dirname(__file__), 'libraries/eez_psu_lib')
build_arduino_library.copy_lib(eez_psu_lib_dir, 'eez_psu_lib')

# UTFT
utft_dir = os.path.join(os.path.dirname(__file__), 'libraries/UTFT')
build_arduino_library.copy_lib(utft_dir, 'UTFT')
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified doc/simulator_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9fce197

Please sign in to comment.