YALI
Yet Another LCD Interface
|
STM32 - LibOpenCM3 configuration file for YALI module. More...
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include "stm32_delay.h"
Go to the source code of this file.
Macros | |
#define | STM32_LIBOPENCM3 1 |
#define | SHIFTREG_PORT GPIOA |
#define | SHIFTREG_AHB RCC_GPIOA |
#define | SHIFTREG_CLK_PIN GPIO0 |
#define | SHIFTREG_DATA_PIN GPIO1 |
#define | SHIFTREG_LATCH_PIN GPIO2 |
#define | UCHAR unsigned char |
#define | CHAR char |
#define | VOID void |
#define | MAX_STR_LEN 16 |
#define | DELAY_LONG() delayMiliSec(10) |
#define | DELAY_SHORT() delayMicroSec(50) |
STM32 - LibOpenCM3 configuration file for YALI module.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define CHAR char |
Mapping for char.
#define DELAY_LONG | ( | ) | delayMiliSec(10) |
Function mapping for long delay.
#define DELAY_SHORT | ( | ) | delayMicroSec(50) |
Function mapping for short delay.
#define MAX_STR_LEN 16 |
Maximum string length allowed by the YALI library.
#define SHIFTREG_AHB RCC_GPIOA |
Peripheral clock associated with SHIFTREG_PORT.
#define SHIFTREG_CLK_PIN GPIO0 |
Clock output which connected to the CLK terminal of the YALI module.
#define SHIFTREG_DATA_PIN GPIO1 |
Data output which connected to the DAT terminal of the YALL module.
#define SHIFTREG_LATCH_PIN GPIO2 |
Latch control pin which is connected to the LAT terminal of the YALI module.
#define SHIFTREG_PORT GPIOA |
Port used to drive the YALI module.
#define STM32_LIBOPENCM3 1 |
Flag to indicate the STM32 LibOpenCM3 project.
#define UCHAR unsigned char |
Mapping for Unsigned char.
#define VOID void |
Mapping for void.