mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-02-19 19:51:16 +01:00
optimize for Windows( Case insensitive)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include "fpioa.h"
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
#include "./kendryte-standalone-sdk/lib/drivers/include/spi.h"
|
||||
#include "../kendryte-standalone-sdk/lib/drivers/include/spi.h"
|
||||
#include "SPI_hal.h"
|
||||
#include "sysctl.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Sipeed_OV2640.h"
|
||||
#include "Sipeed_ST7789.h"
|
||||
#include <SD.h>
|
||||
#include <KPU.h>
|
||||
#include <Maix_KPU.h>
|
||||
|
||||
#define KMODEL_SIZE (4220 * 1024)
|
||||
#define STATISTICS_NUM 5
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <Sipeed_OV2640.h>
|
||||
#include <Sipeed_ST7789.h>
|
||||
#include "MBNet_1000.h"
|
||||
|
||||
#include "Maix_KPU.h"
|
||||
|
||||
SPIClass spi_(SPI0); // MUST be SPI0 for Maix series on board LCD
|
||||
Sipeed_ST7789 lcd(320, 240, spi_);
|
||||
@@ -1,4 +1,4 @@
|
||||
name=KPU
|
||||
name=Maix_KPU
|
||||
version=1.0.0
|
||||
author= Neucrack Sipeed
|
||||
maintainer=Sipeed <support@sipeed.com>
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
#include "KPU.h"
|
||||
#include "Maix_KPU.h"
|
||||
#include "sysctl.h"
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
extern "C" {
|
||||
#include "kpu.h"
|
||||
}
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
|
||||
|
||||
typedef enum{
|
||||
KPU_ERROR_BUSY = -3,
|
||||
35
libraries/SPI/keywords.txt
Normal file
35
libraries/SPI/keywords.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
#######################################
|
||||
# Syntax Coloring Map SPI
|
||||
#######################################
|
||||
|
||||
#######################################
|
||||
# Datatypes (KEYWORD1)
|
||||
#######################################
|
||||
|
||||
SPI KEYWORD1
|
||||
|
||||
#######################################
|
||||
# Methods and Functions (KEYWORD2)
|
||||
#######################################
|
||||
begin KEYWORD2
|
||||
end KEYWORD2
|
||||
transfer KEYWORD2
|
||||
transferBytes KEYWORD2
|
||||
setBitOrder KEYWORD2
|
||||
setDataMode KEYWORD2
|
||||
setFrequency KEYWORD2
|
||||
beginTransaction KEYWORD2
|
||||
endTransaction KEYWORD2
|
||||
bus KEYWORD2
|
||||
|
||||
|
||||
#######################################
|
||||
# Constants (LITERAL1)
|
||||
#######################################
|
||||
SPI_MODE0 LITERAL1
|
||||
SPI_MODE1 LITERAL1
|
||||
SPI_MODE2 LITERAL1
|
||||
SPI_MODE3 LITERAL1
|
||||
SPI_MSBFIRST LITERAL1
|
||||
SPI0 LITERAL1
|
||||
SPI1 LITERAL1
|
||||
9
libraries/SPI/library.properties
Normal file
9
libraries/SPI/library.properties
Normal file
@@ -0,0 +1,9 @@
|
||||
name=SPI
|
||||
version=1.0
|
||||
author=Neucrack
|
||||
maintainer=Neucrack<Neucrack@Sipeed.com>
|
||||
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus.
|
||||
paragraph=SPI is a synchronous serial data protocol used by microcontrollers for communicating with one or more peripheral devices quickly over short distances. It uses three lines common to all devices (MISO, MOSI and SCK) and one specific for each device.
|
||||
category=Communication
|
||||
url=http://arduino.cc/en/Reference/SPI
|
||||
architectures=k210
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __SPI_H
|
||||
#define __SPI_H
|
||||
#ifndef __SPI__fafefef_H
|
||||
#define __SPI__fafefef_H
|
||||
|
||||
#include "stdint.h"
|
||||
|
||||
@@ -27,7 +27,7 @@ compiler.debug.flags=-DCONFIG_LOG_ENABLE -DCONFIG_LOG_LEVEL=LOG_INFO -DDEBUG=1 -
|
||||
|
||||
compiler.c.flags=-c {compiler.debug.flags} {compiler.both.flags} {compiler.preproc.flags} -std=gnu11 -Wno-pointer-to-int-cast -Wno-old-style-declaration -g -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=unused-const-variable
|
||||
|
||||
compiler.cpp.flags=-c {compiler.debug.flags} {compiler.both.flags} {compiler.preproc.flags} -std=gnu++17 -g -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=unused-const-variable
|
||||
compiler.cpp.flags=-c {compiler.debug.flags} {compiler.both.flags} -I{runtime.platform.path}/libraries/SPI/src {compiler.preproc.flags} -std=gnu++17 -g -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=unused-const-variable
|
||||
|
||||
compiler.ld.flags=-mcmodel=medany -mabi=lp64f -march=rv64imafc -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fno-zero-initialized-in-bss -Os -ggdb -nostartfiles -static -Wl,--gc-sections -Wl,-static -Wl,--whole-archive -Wl,--no-whole-archive -Wl,-EL -Wl,--no-relax -T {build.ldscript}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user