#ifndef APPCONFIG_H #define APPCONFIG_H #include "wm_gpio.h" /** * @brief This file contains all the configuration parameters linked to the main application. * */ /** * @brief Define which kind of logs to display : * */ #define LOG_ENABLE_ERROR (1) #define LOG_ENABLE_WARNING (1) #define LOG_ENABLE_INFO (1) #define LOG_ENABLE_TRACE (1) #define LOG_ENABLE_DEBUG (1) /** * @brief Define the hardware pin mapping for all the components : * i2c * lcd display * touch panel * debug uart */ /** * @brief i2c * */ #define I2C_SCL WM_IO_PA_01 #define I2C_SDA WM_IO_PB_19 /** * @brief lcd display * */ #define LCD_ROTATION 0 #define LCD_CLOCK_CLOCK WM_IO_PB_06 #define LCD_DATA_LINE WM_IO_PB_07 #define LCD_CHIP_SELECT WM_IO_PB_10 #define LCD_DATA_COMMAND WM_IO_PB_08 #define LCD_RESET WM_IO_PB_09 #define LCD_PWM_BACKLIGHT WM_IO_PA_07 #define LCD_PWM_CHANNEL 4 /** * @brief lcd touch panel * */ #define LCD_TOUCH_PANEL_IRQ WM_IO_PB_01 /** * @brief debug uart * */ // DEBUG_UART_TX WM_IO_PB_02 /** * @brief battery voltage divider enable pin * */ #define BATTERY_VOLTAGE_DIVIDER_ENABLE WM_IO_PB_05 /** * @brief battery voltage adc input pin : WM_IO_PA_04 = channel 1 * */ #define BATTERY_VOLTAGE_ADC_CHANNEL (1) /** * @brief vibration motor control pin * */ #define VIBRATION_MOTOR_ENABLE WM_IO_PB_03 #endif //APPCONFIG_H