mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 01:41:25 +01:00
-------------------------------------------------------------------------------
* c3c2a59 change catv montor to run 10 times slower when no module is detected.
* 9700e9d Add delay for gpio.
-------------------------------------------------------------------------------
commit c3c2a591ad74ae0bdc255e8255045879502b2522
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-03-07 15:58:57 +0100
change catv montor to run 10 times slower when no module is detected.
Base directory -> /
src/catv_monitor.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 9700e9d11a146344b80e17dcd093474a15f8262a
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-03-07 15:47:06 +0100
Add delay for gpio.
This delay is how long to wait in microseconds after a gpio value is set.
Used to work around HW issue with setting bits where the hardware uses a
read modify write on a pin with a large capacitor.
Base directory -> /
src/gpio.c | 8 ++++----
src/gpio.h | 2 +-
src/gpio_led.c | 15 ++++++++++++---
src/gpio_shift_register.c | 16 ++++++++--------
src/gpio_test.c | 2 +-
5 files changed, 26 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=peripheral_manager
|
|
PKG_VERSION:=1.0.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_VERSION:=c3c2a591ad74ae0bdc255e8255045879502b2522
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=http://public.inteno.se/peripheral_manager
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
# support parallel build
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
#re create configure scripts if not present.
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
# run install target when cross compiling. basically, make install DESTDIR=$(PKG_INSTALL_DIR)
|
|
# this way we don't need to pick out the resulting files from the build dir.
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/peripheral_manager
|
|
CATEGORY:=Utilities
|
|
TITLE:=Application deamon for handling of peripheral
|
|
URL:=
|
|
DEPENDS:=+libuci +libubus +libblobmsg-json +PACKAGE_bcmkernel:bcmkernel
|
|
endef
|
|
|
|
define Package/peripheral_manager/description
|
|
Application handling peripheral
|
|
endef
|
|
|
|
TARGET_CPPFLAGS := \
|
|
-I$(STAGING_DIR)/usr/include/bcm963xx/shared/opensource/include/bcm963xx \
|
|
-I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx \
|
|
$(TARGET_CPPFLAGS)
|
|
|
|
define Package/peripheral_manager/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/etc/
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/peripheral_manager $(1)/sbin/
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpio_test $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,peripheral_manager))
|