mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.

Dependents:   HelloWorld_IKA01A1

Fork of X_NUCLEO_IKA01A1 by ST Expansion SW Team

Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.

Committer:
Davidroid
Date:
Thu Jul 13 15:46:02 2017 +0000
Revision:
23:807f66b435d6
Parent:
22:ff8d071bf79e
Adapting to ARM mbed coding style.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hemddabral 2:19d1dcef0c0e 1 /**
hemddabral 2:19d1dcef0c0e 2 ******************************************************************************
hemddabral 2:19d1dcef0c0e 3 * @file x_nucleo_ika01a1_config.h
hemddabral 2:19d1dcef0c0e 4 * @author AST / Software Platforms and Cloud
hemddabral 2:19d1dcef0c0e 5 * @version V1.0
hemddabral 2:19d1dcef0c0e 6 * @date October 1st, 2015
hemddabral 2:19d1dcef0c0e 7 * @brief Configuration header file for the X_NUCLEO_IKA01A1 expansion board.
hemddabral 2:19d1dcef0c0e 8 ******************************************************************************
hemddabral 2:19d1dcef0c0e 9 * @attention
hemddabral 2:19d1dcef0c0e 10 *
hemddabral 2:19d1dcef0c0e 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
hemddabral 2:19d1dcef0c0e 12 *
hemddabral 2:19d1dcef0c0e 13 * Redistribution and use in source and binary forms, with or without modification,
hemddabral 2:19d1dcef0c0e 14 * are permitted provided that the following conditions are met:
hemddabral 2:19d1dcef0c0e 15 * 1. Redistributions of source code must retain the above copyright notice,
hemddabral 2:19d1dcef0c0e 16 * this list of conditions and the following disclaimer.
hemddabral 2:19d1dcef0c0e 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
hemddabral 2:19d1dcef0c0e 18 * this list of conditions and the following disclaimer in the documentation
hemddabral 2:19d1dcef0c0e 19 * and/or other materials provided with the distribution.
hemddabral 2:19d1dcef0c0e 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
hemddabral 2:19d1dcef0c0e 21 * may be used to endorse or promote products derived from this software
hemddabral 2:19d1dcef0c0e 22 * without specific prior written permission.
hemddabral 2:19d1dcef0c0e 23 *
hemddabral 2:19d1dcef0c0e 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
hemddabral 2:19d1dcef0c0e 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
hemddabral 2:19d1dcef0c0e 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
hemddabral 2:19d1dcef0c0e 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
hemddabral 2:19d1dcef0c0e 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
hemddabral 2:19d1dcef0c0e 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
hemddabral 2:19d1dcef0c0e 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
hemddabral 2:19d1dcef0c0e 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
hemddabral 2:19d1dcef0c0e 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
hemddabral 2:19d1dcef0c0e 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
hemddabral 2:19d1dcef0c0e 34 *
hemddabral 2:19d1dcef0c0e 35 ******************************************************************************
hemddabral 17:cbdee5f7a2aa 36 */
hemddabral 17:cbdee5f7a2aa 37
hemddabral 17:cbdee5f7a2aa 38
hemddabral 2:19d1dcef0c0e 39 /* Generated with STM32CubeTOO -----------------------------------------------*/
hemddabral 2:19d1dcef0c0e 40
hemddabral 2:19d1dcef0c0e 41
hemddabral 2:19d1dcef0c0e 42 /* Define to prevent recursive inclusion -------------------------------------*/
hemddabral 2:19d1dcef0c0e 43
hemddabral 2:19d1dcef0c0e 44 #ifndef __X_NUCLEO_IKA01A1_CONFIG_H
hemddabral 2:19d1dcef0c0e 45 #define __X_NUCLEO_IKA01A1_CONFIG_H
hemddabral 2:19d1dcef0c0e 46
hemddabral 2:19d1dcef0c0e 47
hemddabral 2:19d1dcef0c0e 48 /* Definitions ---------------------------------------------------------------*/
hemddabral 2:19d1dcef0c0e 49
hemddabral 2:19d1dcef0c0e 50 /* ACTION --------------------------------------------------------------------*
hemddabral 2:19d1dcef0c0e 51 * Specify here a configuration for I/O and interrupts' pins. *
hemddabral 2:19d1dcef0c0e 52 * *
hemddabral 2:19d1dcef0c0e 53 * Example: *
hemddabral 2:19d1dcef0c0e 54 * // I2C. *
hemddabral 2:19d1dcef0c0e 55 * #define EXPANSION_BOARD_PIN_I2C_SCL (D15) *
hemddabral 2:19d1dcef0c0e 56 * #define EXPANSION_BOARD_PIN_I2C_SDA (D14) *
hemddabral 2:19d1dcef0c0e 57 * *
hemddabral 2:19d1dcef0c0e 58 * // SPI. *
hemddabral 2:19d1dcef0c0e 59 * #define EXPANSION_BOARD_PIN_SPI_MOSI (D11) *
hemddabral 2:19d1dcef0c0e 60 * #define EXPANSION_BOARD_PIN_SPI_MISO (D12) *
hemddabral 2:19d1dcef0c0e 61 * #define EXPANSION_BOARD_PIN_SPI_SCLK (D13) *
hemddabral 2:19d1dcef0c0e 62 * *
hemddabral 2:19d1dcef0c0e 63 * // Interrupts. *
hemddabral 2:19d1dcef0c0e 64 * #define EXPANSION_BOARD_PIN_INT_1 (A2) *
hemddabral 2:19d1dcef0c0e 65 *----------------------------------------------------------------------------*/
hemddabral 20:169bdc228a7b 66
Davidroid 22:ff8d071bf79e 67 /* instrumentation amplifier configuration */
Davidroid 22:ff8d071bf79e 68 #define X_NUCLEO_IKA01A1_PIN_INSTRUMENTATION_AMP (A1)
Davidroid 22:ff8d071bf79e 69
Davidroid 22:ff8d071bf79e 70 /* Current sensing configuration */
Davidroid 22:ff8d071bf79e 71 #define X_NUCLEO_IKA01A1_PIN_CURRENT_SENSING (A2)
hemddabral 20:169bdc228a7b 72
hemddabral 17:cbdee5f7a2aa 73 /* Photo sensor configuration output pin. */
Davidroid 22:ff8d071bf79e 74 #define X_NUCLEO_IKA01A1_PIN_PHOTO_SENSOR (A3)
hemddabral 2:19d1dcef0c0e 75
hemddabral 17:cbdee5f7a2aa 76 /* Windows */
hemddabral 17:cbdee5f7a2aa 77 #define X_NUCLEO_IKA01A1_PIN_WINDOWS_COMP_SIGNAL_1 (D2)
hemddabral 17:cbdee5f7a2aa 78 #define X_NUCLEO_IKA01A1_PIN_WINDOWS_COMP_SIGNAL_2 (D4)
hemddabral 2:19d1dcef0c0e 79
hemddabral 17:cbdee5f7a2aa 80 /* LED Driver Configuration PWM out pin. */
Davidroid 22:ff8d071bf79e 81 #define X_NUCLEO_IKA01A1_PIN_PWM_LED_DRIVER_OUTPUT (D3)
hemddabral 2:19d1dcef0c0e 82
hemddabral 2:19d1dcef0c0e 83 #endif /* __X_NUCLEO_IKA01A1_CONFIG_H */