diff --git a/src/W800 SDK v1.00.08/app/app_config.h b/src/W800 SDK v1.00.08/app/app_config.h index e9da31a..34f5e8f 100644 --- a/src/W800 SDK v1.00.08/app/app_config.h +++ b/src/W800 SDK v1.00.08/app/app_config.h @@ -1,13 +1,17 @@ #ifndef APPCONFIG_H #define APPCONFIG_H -/* -* This file contains all the configuration parameters linked to the main application. -*/ +#include "wm_gpio.h" -/* -* Define which logs to display : -*/ +/** + * @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) @@ -15,4 +19,44 @@ #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_PA_04 + +/** + * @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_00 + +/** + * @brief debug uart + * + */ +#define DEBUG_UART_TX WM_IO_PB_02 + #endif //APPCONFIG_H \ No newline at end of file