summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/vsn
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-03-28 15:01:43 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-03-28 15:01:43 +0000
commit2c0e13deafb8315e55114e30f665877619a8da09 (patch)
treea997a6f40b080a1e31890359dde9fc466e726221 /nuttx/configs/vsn
parenta7fc1d6aa320a9a02ff5f3b1d14086783a93e308 (diff)
More changes from Uros
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3431 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/vsn')
-rwxr-xr-xnuttx/configs/vsn/nsh/defconfig10
-rw-r--r--nuttx/configs/vsn/src/rtac.c24
-rw-r--r--nuttx/configs/vsn/src/sif.c19
3 files changed, 53 insertions, 0 deletions
diff --git a/nuttx/configs/vsn/nsh/defconfig b/nuttx/configs/vsn/nsh/defconfig
index 875da63f8d..1d2bbe0c94 100755
--- a/nuttx/configs/vsn/nsh/defconfig
+++ b/nuttx/configs/vsn/nsh/defconfig
@@ -504,6 +504,13 @@ CONFIG_FS_FAT=y
CONFIG_FS_ROMFS=y
#
+# I2C Settings
+#
+CONFIG_I2C_WRITEREAD=y
+CONFIG_I2C_TRANSFER=y
+CONFIG_I2C_SLAVE=n
+
+#
# SPI-based MMC/SD driver
#
# CONFIG_MMCSD_NSLOTS
@@ -858,3 +865,6 @@ CONFIG_HEAP_SIZE=
# Application configuration
CONFIG_APPS_DIR="../apps"
+
+# Provide /dev/ramX and then: mount -t binfs /dev/ram0 /bin
+CONFIG_APPS_BINDIR=y
diff --git a/nuttx/configs/vsn/src/rtac.c b/nuttx/configs/vsn/src/rtac.c
index b953bd8515..68b94a169d 100644
--- a/nuttx/configs/vsn/src/rtac.c
+++ b/nuttx/configs/vsn/src/rtac.c
@@ -80,3 +80,27 @@ int rtac_waitg(int group, int time)
{
// blocking variant of rtac_exec with timeout if specified
}
+
+
+/** Power optimization of base systick timer
+ *
+ * 1. Simple method to skip wake-ups:
+ * - ask timers about the min. period, which is Ns * systick
+ * - set the preload register with floor(Ns) * DEFAULT_PRELOAD
+ * - on wake-up call routines Ns times.
+ *
+ * 2. If intermediate ISR occuried then:
+ * - check how many periods have passed by reading the counter: Np
+ * - set the new counter value as (counter % DEFAULT_PRELOAD)
+ * - call timer routines Np times; the next call is as usual, starting
+ * at 1. point above
+ *
+ * This is okay if ISR's do not read timers, if they read timers then:
+ * - on ISR wake-up the code described under 2. must be called first
+ * (on wake-up from IDLE)
+ *
+ * BUT: the problem is that SYSTICK does not run in Stop mode but RTC
+ * only, so it might be better to replace SYSTICK with RTAC (this
+ * module) and do the job above, permitting ultra low power modes of
+ * 25 uA or further down to 5 uA.
+ */
diff --git a/nuttx/configs/vsn/src/sif.c b/nuttx/configs/vsn/src/sif.c
index 9d5f8af6a3..c1813df83e 100644
--- a/nuttx/configs/vsn/src/sif.c
+++ b/nuttx/configs/vsn/src/sif.c
@@ -273,6 +273,25 @@ int sif_gpios_unlock(vsn_sif_state_t peripheral)
/****************************************************************************
+ * ST LIS331DL
+ ****************************************************************************/
+
+void st_lis331dl_open(void)
+{
+}
+
+
+void st_lis331dl_config(void)
+{
+}
+
+
+void st_lis331dl_getreadings(void)
+{
+}
+
+
+/****************************************************************************
* Analog Outputs
****************************************************************************/