Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_WM_Updater D7A_1x_demo_ActiveRFIDReader D7A_1x_demo_big_file D7A_1x_demo_CodeUpgradeProtocol ... more

Committer:
Jeej
Date:
Tue Apr 02 08:54:46 2019 +0000
Revision:
57:d6b0320051e8
Parent:
30:df7f9183410c
Updated WizziDebug

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 20:8e6a7f4e06a1 10 #define MODEM_PIN_RX (D10)
Jeej 20:8e6a7f4e06a1 11 #define MODEM_PIN_TX (D2)
Jeej 20:8e6a7f4e06a1 12 #define MODEM_PIN_IRQ_IN (D13)
Jeej 20:8e6a7f4e06a1 13 #define MODEM_PIN_IRQ_OUT (D9)
Jeej 0:e9dd36a15d07 14 #define MODEM_PIN_RESET (A3)
Jeej 1:0ec0bae00588 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 20:8e6a7f4e06a1 27 #define MODEM_PIN_RX (D5)
Jeej 20:8e6a7f4e06a1 28 #define MODEM_PIN_TX (D4)
Jeej 20:8e6a7f4e06a1 29 #define MODEM_PIN_IRQ_IN (D11)
Jeej 20:8e6a7f4e06a1 30 #define MODEM_PIN_IRQ_OUT (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 30:df7f9183410c 40
Jeej 30:df7f9183410c 41 #elif defined(TARGET_STM32L476RG)
Jeej 30:df7f9183410c 42
Jeej 30:df7f9183410c 43 // -----------------------------------------------
Jeej 30:df7f9183410c 44 // Hardware configuration for Display demo only
Jeej 30:df7f9183410c 45 // -----------------------------------------------
Jeej 30:df7f9183410c 46 #define MODEM_PIN_RX (PC_10)
Jeej 30:df7f9183410c 47 #define MODEM_PIN_TX (PC_11)
Jeej 30:df7f9183410c 48 #define MODEM_PIN_IRQ_IN (PC_12)
Jeej 30:df7f9183410c 49 #define MODEM_PIN_IRQ_OUT (D9)
Jeej 30:df7f9183410c 50 #define MODEM_PIN_RESET (A3)
Jeej 30:df7f9183410c 51 //#define DEBUG_LED (NC)
Jeej 30:df7f9183410c 52 #define DEBUG_BUTTON (USER_BUTTON)
Jeej 30:df7f9183410c 53 #define SENSOR_I2C_SDA (D14)
Jeej 30:df7f9183410c 54 #define SENSOR_I2C_SCL (D15)
Jeej 30:df7f9183410c 55
Jeej 30:df7f9183410c 56 #define __HW_VERSION__ 0x47600000
Jeej 0:e9dd36a15d07 57
Jeej 0:e9dd36a15d07 58 #else
Jeej 0:e9dd36a15d07 59 #error "Please choose or add the right platform."
Jeej 0:e9dd36a15d07 60 #endif