Listed the pin mapping here, subject to changes
This commit is contained in:
parent
2c854e2535
commit
526845e4f2
@ -1,13 +1,17 @@
|
|||||||
#ifndef APPCONFIG_H
|
#ifndef APPCONFIG_H
|
||||||
#define APPCONFIG_H
|
#define APPCONFIG_H
|
||||||
|
|
||||||
/*
|
#include "wm_gpio.h"
|
||||||
* This file contains all the configuration parameters linked to the main application.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 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_ERROR (1)
|
||||||
#define LOG_ENABLE_WARNING (1)
|
#define LOG_ENABLE_WARNING (1)
|
||||||
@ -15,4 +19,44 @@
|
|||||||
#define LOG_ENABLE_TRACE (1)
|
#define LOG_ENABLE_TRACE (1)
|
||||||
#define LOG_ENABLE_DEBUG (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
|
#endif //APPCONFIG_H
|
Loading…
Reference in New Issue
Block a user