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

hwcfg.h

Committer:
Jeej
Date:
20 months ago
Revision:
20:8e6a7f4e06a1
Parent:
1:0ec0bae00588
Child:
30:df7f9183410c

File content as of revision 20:8e6a7f4e06a1:

// -----------------------------------------------
// TARGET Options
// -----------------------------------------------

#if defined(TARGET_STM32L152RE)

    // -----------------------------------------------
    // Hardware configuration for sh2001 / sh2030
    // -----------------------------------------------
    #define MODEM_PIN_RX            (D10)
    #define MODEM_PIN_TX            (D2)
    #define MODEM_PIN_IRQ_IN        (D13)
    #define MODEM_PIN_IRQ_OUT       (D9)
    #define MODEM_PIN_RESET         (A3)
    //#define DEBUG_LED               (NC)
    #define DEBUG_BUTTON            (USER_BUTTON)
    #define SENSOR_I2C_SDA          (D14)
    #define SENSOR_I2C_SCL          (D15)
    
    #define __HW_VERSION__          0x15200000
 
#elif defined(TARGET_STM32L432KC)

    // -----------------------------------------------
    // Hardware configuration for sh2050
    // -----------------------------------------------
    #define MODEM_PIN_RX            (D5)
    #define MODEM_PIN_TX            (D4)
    #define MODEM_PIN_IRQ_IN        (D11)
    #define MODEM_PIN_IRQ_OUT       (D10)
    #define MODEM_PIN_RESET         (D12)
    #define DEBUG_LED               (D13) // LED1
    #define DEBUG_BUTTON            (D9)
    #define SENSOR_I2C_SDA          (D0)
    #define SENSOR_I2C_SCL          (D1)
    #define SENSOR_LIGHT_EN         (A1)
    #define SENSOR_LIGHT_MEAS       (A4)
    
    #define __HW_VERSION__          0x43200000
 
#else
    #error "Please choose or add the right platform."
#endif