mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.
Revision 7:c66b5473f3a1, committed 2016-04-06
- Comitter:
- hemddabral
- Date:
- Wed Apr 06 07:46:37 2016 +0000
- Parent:
- 6:5dd31859cea3
- Child:
- 8:0d9e4ee027e4
- Commit message:
- removed compile time warnings;
Changed in this revision
--- a/Components/tsu104/tsu104_class.cpp Thu Mar 17 10:34:54 2016 +0000
+++ b/Components/tsu104/tsu104_class.cpp Wed Apr 06 07:46:37 2016 +0000
@@ -56,32 +56,38 @@
/* Methods -------------------------------------------------------------------*/
-static Status_t GetVoltage(unsigned int *ptrVoltage);
-static Status_t GetCurrent(unsigned int *ptrCurrent);
+//static Status_t GetVoltage(unsigned int *ptrVoltage);
+//static Status_t GetCurrent(unsigned int *ptrCurrent);
/* TSU104's private functions. */
Status_t TSU104::TSU104_Init(void *init) {
-
+ return COMPONENT_OK;
}
Status_t TSU104::TSU104_ReadID(void *init) {
-
+ return COMPONENT_OK;
}
Status_t TSU104::TSU104_ConfigIT(void *init) {
-
+ return COMPONENT_OK;
+
}
+/*
static unsigned int TSU104_WindComp_Get_D2(void) {
+ return COMPONENT_OK;
}
static unsigned int TSU104_WindComp_Get_D4(void) {
+ return COMPONENT_OK;
}
static unsigned int TSU104_PhotoSensor_GetVoltage(PinName pin) {
+ return COMPONENT_OK;
}
+*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
--- a/Components/tsv734/tsv734_class.cpp Thu Mar 17 10:34:54 2016 +0000
+++ b/Components/tsv734/tsv734_class.cpp Wed Apr 06 07:46:37 2016 +0000
@@ -1,77 +1,80 @@
-/**
- ******************************************************************************
- * @file TSV734.c
- * @author Central Labs
- * @version 1.0.0
- * @date 11-February-2016
- * @brief Portable architecture for TSV734
- ******************************************************************************
- * @attention
- *
- * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * 3. Neither the name of STMicroelectronics nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************
- */
-
-
-/* Generated with STM32CubeTOO -----------------------------------------------*/
-
-
-/* Revision ------------------------------------------------------------------*/
-/*
- Repository: http://svn.x-nucleodev.codex.cro.st.com/svnroot/X-NucleoDev
- Branch/Trunk/Tag: trunk
- Based on: X-CUBE-IKA01A1/trunk/Drivers/BSP/Components/tsv734/tsv734.c
- Revision: 410
-*/
-
-
-/* Includes ------------------------------------------------------------------*/
-
-#include "tsv734_class.h"
-#include "tsv734.h"
-
-
-/* Methods -------------------------------------------------------------------*/
-
-/* TSV734's private functions. */
-
-
-Status_t TSV734::TSV734_Init(void *init) {
-
-}
-
-Status_t TSV734::TSV734_ReadID(void *init) {
-
-}
-
-Status_t TSV734::TSV734_ConfigIT(void *init) {
-
-}
-
-Status_t TSV734::TSV734_SetDutyCycle(float dutyCycle) {
-}
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+/**
+ ******************************************************************************
+ * @file TSV734.c
+ * @author Central Labs
+ * @version 1.0.0
+ * @date 11-February-2016
+ * @brief Portable architecture for TSV734
+ ******************************************************************************
+ * @attention
+ *
+ * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * 3. Neither the name of STMicroelectronics nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ ******************************************************************************
+ */
+
+
+/* Generated with STM32CubeTOO -----------------------------------------------*/
+
+/* Revision ------------------------------------------------------------------*/
+/*
+ Repository: http://svn.x-nucleodev.codex.cro.st.com/svnroot/X-NucleoDev
+ Branch/Trunk/Tag: trunk
+ Based on: X-CUBE-IKA01A1/trunk/Drivers/BSP/Components/tsv734/tsv734.c
+ Revision: 410
+*/
+
+
+/* Includes ------------------------------------------------------------------*/
+
+#include "tsv734_class.h"
+#include "tsv734.h"
+
+
+/* Methods -------------------------------------------------------------------*/
+
+/* TSV734's private functions. */
+
+
+Status_t TSV734::TSV734_Init(void *init) {
+ return COMPONENT_OK;
+}
+
+Status_t TSV734::TSV734_ReadID(void *init) {
+ return COMPONENT_OK;
+}
+
+Status_t TSV734::TSV734_ConfigIT(void *init) {
+ return COMPONENT_OK;
+
+}
+
+Status_t TSV734::TSV734_SetDutyCycle(float dutyCycle) {
+ return COMPONENT_OK;
+
+}
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+
--- a/Components/tsv734/tsv734_class.h Thu Mar 17 10:34:54 2016 +0000 +++ b/Components/tsv734/tsv734_class.h Wed Apr 06 07:46:37 2016 +0000 @@ -144,6 +144,7 @@ PwmOut ledOut(pwmPinName); period = period_us; ledOut.period_ms(period); + return 0; } virtual int SetDutyCycle(float dc)

X-NUCLEO-IKA01A1 Multifunctional board based on operational amplifiers.