ISSDK  1.8
IoT Sensing Software Development Kit
issdk_hal.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 * All rights reserved.
4 *
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8 
9 /*! \file issdk_hal.h
10  \brief Wrapper for Hardware Abstraction Layer (HAL)
11 
12  This file simply provides one level of indirection for the developer
13  to select the particular Hardware Abstraction Layer they would like to use.
14 */
15 
16 #ifndef __ISSDK_HAL_H__
17 #define __ISSDK_HAL_H__
18 
19 #include "frdm_k22f.h" //Include appropriate MCU board header file
20 #include "frdm_fxs_mult2b_shield.h" //Include appropriate sensor shield board header file
21 
22 // Pin mapping and driver information for default I2C brought to shield
23 // By default, we use I2C_S1 defined in the FRDM_xxxx.h file.
24 // other options: I2C_S2.
25 // S1 is on A5:4. S2 is on D15:14.
26 #define I2C_S_SCL_PIN I2C_S1_SCL_PIN
27 #define I2C_S_SDA_PIN I2C_S1_SDA_PIN
28 //#define I2C_S_DRIVER_NONBLOCKING I2C_S1_DRIVER_NONBLOCKING
29 //#define I2C_S_DRIVER_BLOCKING I2C_S1_DRIVER_BLOCKING
30 #define I2C_S_DRIVER I2C_S1_DRIVER
31 #define I2C_S_SIGNAL_EVENT I2C_S1_SIGNAL_EVENT
32 #define I2C_S_DEVICE_INDEX I2C_S1_DEVICE_INDEX
33 
34 #endif // __ISSDK_HAL_H__
The frdm_k22f.h file defines GPIO pins for FRDM-K22F board.