Bosh sahifa > Yangiliklar > Kontent

FT_Platform.h

May 06, 2019

#ifndef _FT_PLATFORM_H_

#define _FT_PLATFORM_H_


# ARGUINO_PLATFORM-ni belgilash

// # MSVC_PLATFORMni belgilang

# FT_ATMEGA_328P ni belgilash


/ * FT801 o'ziga xos xususiyatlarini faollashtirish uchun ushbu so'lni unutmang, bu so'lni faqat FT801-ni qo'llab-quvvatlaydigan demo ilovalar bilan ta'minlang. * /

// # FT_801_ENABLE belgilang


// # SAMAPP_DISPLAY_QVGA ni belgilang

SAMEPP_DISPLAY_WQVGA-ni tanlang


# ORIENTATION_PORTREIT manzilini belgilash

// # ORIENTATION_LANDSCAPEni belgilang


#ifdef ARDUINO_PLATFORM

# FT_ARDUINO_ATMEGA328P_I2Cni belgilash

#ifdef ARDUINO_PRO_328

#define FT800_INT (3)

FT800_PD_N (4)

FT_SDCARD_CS (5)

FT_ARDUINO_PRO_SPI_CS (10)

# ARGUINO_PLATFORM_SPIni belgilash

# ARGUINO_PLATFORM_COCMD_BURST belgilash

#endif


#ifdef FT_ATMEGA_328P

RTC_PRESENT-ni tanlang

#Define FT800_CS (9)

#define FT_SDCARD_CS (8) // qaysi pin sdcard ulangan?

#define FT800_INT (3)

FT800_PD_N (4)

# FT_ARDUINO_PRO_SPI_CS FT800_CSni belgilash

# ARGUINO_PLATFORM_SPIni belgilash

# ARGUINO_PLATFORM_COCMD_BURST belgilash

#endif


#endif

#ifdef ARDUINO_PLATFORM

#include

#include

#include

#include

#include

#endif


#ifdef MSVC_PLATFORM

#include

#include

#include

#include

#include


#include "ftd2xx.h"

#inch "LibMPSSE_spi.h"

#endif

#inch "FT_DataTypes.h"

#inch "FT_Gpu_Hal.h"

#inch "FT_Gpu.h"

#inch "FT_CoPro_Cmds.h"




#ifdef MSVC_PLATFORM

# BUFFER_OPTIMIZATIONni belgilash

MSVC_PLATFORM_SPI-ni tanlang

#endif


#ifdef ARDUINO_PLATFORM

#endif


#endif / * _ FT_PLATFORM_H _ * /

/ * Bundan tashqari biror narsa * /