YALI
Yet Another LCD Interface
Macros
stm32-libopencm3-conf.h File Reference

STM32 - LibOpenCM3 configuration file for YALI module. More...

#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include "stm32_delay.h"
Include dependency graph for stm32-libopencm3-conf.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)
 

Detailed Description

STM32 - LibOpenCM3 configuration file for YALI module.

Author
Dilshan R Jayakody (jayak.nosp@m.ody2.nosp@m.000lk.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
Version
1.0
Date
2023-03-24

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.

Macro Definition Documentation

◆ CHAR

#define CHAR   char

Mapping for char.

◆ DELAY_LONG

#define DELAY_LONG ( )    delayMiliSec(10)

Function mapping for long delay.

◆ DELAY_SHORT

#define DELAY_SHORT ( )    delayMicroSec(50)

Function mapping for short delay.

◆ MAX_STR_LEN

#define MAX_STR_LEN   16

Maximum string length allowed by the YALI library.

◆ SHIFTREG_AHB

#define SHIFTREG_AHB   RCC_GPIOA

Peripheral clock associated with SHIFTREG_PORT.

◆ SHIFTREG_CLK_PIN

#define SHIFTREG_CLK_PIN   GPIO0

Clock output which connected to the CLK terminal of the YALI module.

◆ SHIFTREG_DATA_PIN

#define SHIFTREG_DATA_PIN   GPIO1

Data output which connected to the DAT terminal of the YALL module.

◆ SHIFTREG_LATCH_PIN

#define SHIFTREG_LATCH_PIN   GPIO2

Latch control pin which is connected to the LAT terminal of the YALI module.

◆ SHIFTREG_PORT

#define SHIFTREG_PORT   GPIOA

Port used to drive the YALI module.

◆ STM32_LIBOPENCM3

#define STM32_LIBOPENCM3   1

Flag to indicate the STM32 LibOpenCM3 project.

◆ UCHAR

#define UCHAR   unsigned char

Mapping for Unsigned char.

◆ VOID

#define VOID   void

Mapping for void.