Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_Localisation D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_CodeUpgradeProtocol D7A_1x_demo_LoRaWAN ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hwcfg.h Source File

hwcfg.h

00001 // -----------------------------------------------
00002 // TARGET Options
00003 // -----------------------------------------------
00004 
00005 #if defined(TARGET_STM32L152RE)
00006 
00007     // -----------------------------------------------
00008     // Hardware configuration for sh2001 / sh2030
00009     // -----------------------------------------------
00010     #define MODEM_PIN_RX            (D10)
00011     #define MODEM_PIN_TX            (D2)
00012     #define MODEM_PIN_IRQ_IN        (D13)
00013     #define MODEM_PIN_IRQ_OUT       (D9)
00014     #define MODEM_PIN_RESET         (A3)
00015     //#define DEBUG_LED               (NC)
00016     #define DEBUG_BUTTON            (USER_BUTTON)
00017     #define SENSOR_I2C_SDA          (D14)
00018     #define SENSOR_I2C_SCL          (D15)
00019     
00020     #define __HW_VERSION__          0x15200000
00021  
00022 #elif defined(TARGET_STM32L432KC)
00023 
00024     // -----------------------------------------------
00025     // Hardware configuration for sh2050
00026     // -----------------------------------------------
00027     #define MODEM_PIN_RX            (D5)
00028     #define MODEM_PIN_TX            (D4)
00029     #define MODEM_PIN_IRQ_IN        (D11)
00030     #define MODEM_PIN_IRQ_OUT       (D10)
00031     #define MODEM_PIN_RESET         (D12)
00032     #define DEBUG_LED               (D13) // LED1
00033     #define DEBUG_BUTTON            (D9)
00034     #define SENSOR_I2C_SDA          (D0)
00035     #define SENSOR_I2C_SCL          (D1)
00036     #define SENSOR_LIGHT_EN         (A1)
00037     #define SENSOR_LIGHT_MEAS       (A4)
00038     
00039     #define __HW_VERSION__          0x43200000
00040     
00041  #elif defined(TARGET_STM32L476RG)
00042 
00043     // -----------------------------------------------
00044     // Hardware configuration for Display demo only
00045     // -----------------------------------------------
00046     #define MODEM_PIN_RX            (PC_10)
00047     #define MODEM_PIN_TX            (PC_11)
00048     #define MODEM_PIN_IRQ_IN        (PC_12)
00049     #define MODEM_PIN_IRQ_OUT       (D9)
00050     #define MODEM_PIN_RESET         (A3)
00051     //#define DEBUG_LED               (NC)
00052     #define DEBUG_BUTTON            (USER_BUTTON)
00053     #define SENSOR_I2C_SDA          (D14)
00054     #define SENSOR_I2C_SCL          (D15)
00055     
00056     #define __HW_VERSION__          0x47600000
00057  
00058 #else
00059     #error "Please choose or add the right platform."
00060 #endif