Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_1x_demo_sensors_v3 D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_send_file_data D7A_1x_demo_receive_file_data ... more

Committer:
Jeej
Date:
Wed May 17 16:02:05 2017 +0000
Revision:
0:e9dd36a15d07
Child:
1:0ec0bae00588
Helper library to use modem_ref driver.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeej 0:e9dd36a15d07 1 // -----------------------------------------------
Jeej 0:e9dd36a15d07 2 // TARGET Options
Jeej 0:e9dd36a15d07 3 // -----------------------------------------------
Jeej 0:e9dd36a15d07 4
Jeej 0:e9dd36a15d07 5 #if defined(TARGET_STM32L152RE)
Jeej 0:e9dd36a15d07 6
Jeej 0:e9dd36a15d07 7 // -----------------------------------------------
Jeej 0:e9dd36a15d07 8 // Hardware configuration for sh2001 / sh2030
Jeej 0:e9dd36a15d07 9 // -----------------------------------------------
Jeej 0:e9dd36a15d07 10 #define MODEM_PIN_TX (D10)
Jeej 0:e9dd36a15d07 11 #define MODEM_PIN_RX (D2)
Jeej 0:e9dd36a15d07 12 #define MODEM_PIN_IRQ_OUT (D13)
Jeej 0:e9dd36a15d07 13 #define MODEM_PIN_IRQ_IN (D9)
Jeej 0:e9dd36a15d07 14 #define MODEM_PIN_RESET (A3)
Jeej 0:e9dd36a15d07 15 #define DEBUG_LED (NC)
Jeej 0:e9dd36a15d07 16 #define DEBUG_BUTTON (USER_BUTTON)
Jeej 0:e9dd36a15d07 17 #define SENSOR_I2C_SDA (D14)
Jeej 0:e9dd36a15d07 18 #define SENSOR_I2C_SCL (D15)
Jeej 0:e9dd36a15d07 19
Jeej 0:e9dd36a15d07 20 #define __HW_VERSION__ 0x15200000
Jeej 0:e9dd36a15d07 21
Jeej 0:e9dd36a15d07 22 #elif defined(TARGET_STM32L432KC)
Jeej 0:e9dd36a15d07 23
Jeej 0:e9dd36a15d07 24 // -----------------------------------------------
Jeej 0:e9dd36a15d07 25 // Hardware configuration for sh2050
Jeej 0:e9dd36a15d07 26 // -----------------------------------------------
Jeej 0:e9dd36a15d07 27 #define MODEM_PIN_TX (D5)
Jeej 0:e9dd36a15d07 28 #define MODEM_PIN_RX (D4)
Jeej 0:e9dd36a15d07 29 #define MODEM_PIN_IRQ_OUT (D11)
Jeej 0:e9dd36a15d07 30 #define MODEM_PIN_IRQ_IN (D10)
Jeej 0:e9dd36a15d07 31 #define MODEM_PIN_RESET (D12)
Jeej 0:e9dd36a15d07 32 #define DEBUG_LED (D13) // LED1
Jeej 0:e9dd36a15d07 33 #define DEBUG_BUTTON (D9)
Jeej 0:e9dd36a15d07 34 #define SENSOR_I2C_SDA (D0)
Jeej 0:e9dd36a15d07 35 #define SENSOR_I2C_SCL (D1)
Jeej 0:e9dd36a15d07 36 #define SENSOR_LIGHT_EN (A1)
Jeej 0:e9dd36a15d07 37 #define SENSOR_LIGHT_MEAS (A4)
Jeej 0:e9dd36a15d07 38
Jeej 0:e9dd36a15d07 39 #define __HW_VERSION__ 0x43200000
Jeej 0:e9dd36a15d07 40
Jeej 0:e9dd36a15d07 41 #else
Jeej 0:e9dd36a15d07 42 #error "Please choose or add the right platform."
Jeej 0:e9dd36a15d07 43 #endif