mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-03-23 18:36:57 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c74b948b53 | ||
|
|
93fbb08ad6 | ||
|
|
3debc75348 | ||
|
|
c07ca972f3 | ||
|
|
8a3ae10f1c | ||
|
|
b53e72fe8e | ||
|
|
d6e171190c |
@@ -33,7 +33,7 @@ m1.menu.burn_tool_firmware.dan = Default
|
|||||||
m1.menu.burn_tool_firmware.dan.build.burn_tool_firmware = dan
|
m1.menu.burn_tool_firmware.dan.build.burn_tool_firmware = dan
|
||||||
|
|
||||||
## Point to the file for ./variants/<variant>/pins_arduino.h
|
## Point to the file for ./variants/<variant>/pins_arduino.h
|
||||||
m1.build.variant=standard
|
m1.build.variant=sipeed_maix_one
|
||||||
|
|
||||||
## "The 'core' file directory for this board, in ./cores
|
## "The 'core' file directory for this board, in ./cores
|
||||||
m1.build.core=arduino
|
m1.build.core=arduino
|
||||||
@@ -71,9 +71,11 @@ go.menu.clksrc.600.build.f_cpu = 600000000L
|
|||||||
|
|
||||||
## Burn baud rate
|
## Burn baud rate
|
||||||
go.menu.burn_baudrate.2000000 = 2 Mbps
|
go.menu.burn_baudrate.2000000 = 2 Mbps
|
||||||
|
go.menu.burn_baudrate.4500000 = 4.5 Mbps (Must open-ec!)
|
||||||
go.menu.burn_baudrate.1500000 = 1.5 Mbps
|
go.menu.burn_baudrate.1500000 = 1.5 Mbps
|
||||||
go.menu.burn_baudrate.1000000 = 1 Mbps
|
go.menu.burn_baudrate.1000000 = 1 Mbps
|
||||||
go.menu.burn_baudrate.2000000.build.burn_baudrate = 2000000
|
go.menu.burn_baudrate.2000000.build.burn_baudrate = 2000000
|
||||||
|
go.menu.burn_baudrate.4500000.build.burn_baudrate = 4500000
|
||||||
go.menu.burn_baudrate.1500000.build.burn_baudrate = 1500000
|
go.menu.burn_baudrate.1500000.build.burn_baudrate = 1500000
|
||||||
go.menu.burn_baudrate.1000000.build.burn_baudrate = 1000000
|
go.menu.burn_baudrate.1000000.build.burn_baudrate = 1000000
|
||||||
|
|
||||||
@@ -84,7 +86,7 @@ go.menu.burn_tool_firmware.goE.build.burn_tool_firmware = goE
|
|||||||
go.menu.burn_tool_firmware.goD.build.burn_tool_firmware = goD
|
go.menu.burn_tool_firmware.goD.build.burn_tool_firmware = goD
|
||||||
|
|
||||||
## Core settings
|
## Core settings
|
||||||
go.build.variant= standard
|
go.build.variant= sipeed_maix_go
|
||||||
go.build.core = arduino
|
go.build.core = arduino
|
||||||
|
|
||||||
## This sets a define for use in the compiled code.
|
## This sets a define for use in the compiled code.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
#include "SPI.h"
|
#include "../../../libraries/SPI/src/SPI.h"
|
||||||
|
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|||||||
6
package.json
Normal file
6
package.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "framework-maixduino",
|
||||||
|
"description": "Arduino Wiring-based Framework (K210 Core)",
|
||||||
|
"version": "0.3.8",
|
||||||
|
"url": "https://github.com/sipeed/Maixduino"
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name = Maixduino
|
name = Maixduino
|
||||||
version = 0.2.3
|
version = 0.3.8
|
||||||
|
|
||||||
# arch
|
# arch
|
||||||
arch = k210
|
arch = k210
|
||||||
@@ -21,7 +21,7 @@ compiler.lib_hal_inc.path={runtime.platform.path}/cores/arduino/hal/include
|
|||||||
compiler.cores.path={runtime.platform.path}/cores/arduino/
|
compiler.cores.path={runtime.platform.path}/cores/arduino/
|
||||||
compiler.preproc.flags=-I{build.system.path}/include -I{compiler.cores.path} -I{compiler.lib_hal_inc.path} -I{compiler.sdk.path}/bsp/include -I{compiler.sdk.path}/drivers/include -I{compiler.sdk.path}/utils/include -I{compiler.sdk.path}/freertos/conf -I{compiler.sdk.path}/freertos/include -I{compiler.sdk.path}/freertos/portable -I{compiler.clib.path}
|
compiler.preproc.flags=-I{build.system.path}/include -I{compiler.cores.path} -I{compiler.lib_hal_inc.path} -I{compiler.sdk.path}/bsp/include -I{compiler.sdk.path}/drivers/include -I{compiler.sdk.path}/utils/include -I{compiler.sdk.path}/freertos/conf -I{compiler.sdk.path}/freertos/include -I{compiler.sdk.path}/freertos/portable -I{compiler.clib.path}
|
||||||
|
|
||||||
compiler.both.flags=-mcmodel=medany -mabi=lp64f -march=rv64imafc -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fno-zero-initialized-in-bss -Os -ggdb -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Werror=frame-larger-than=65536 -Wno-unused-parameter -Wno-sign-compare -Wno-error=missing-braces -Wno-error=return-type -Wno-error=pointer-sign -Wno-missing-braces -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-int-to-pointer-cast -Wno-error=comment -Wno-error=logical-not-parentheses -Wno-error=duplicate-decl-specifier -Wno-error=parentheses -Wno-error=narrowing -lpthread
|
compiler.both.flags=-mcmodel=medany -mabi=lp64f -march=rv64imafc -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fno-zero-initialized-in-bss -Os -ggdb -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Werror=frame-larger-than=65536 -Wno-unused-parameter -Wno-sign-compare -Wno-error=missing-braces -Wno-error=return-type -Wno-error=pointer-sign -Wno-missing-braces -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-int-to-pointer-cast -Wno-error=comment -Wno-error=logical-not-parentheses -Wno-error=duplicate-decl-specifier -Wno-error=parentheses -Wno-error=narrowing -Wno-error=unused-value
|
||||||
|
|
||||||
compiler.debug.flags=-DCONFIG_LOG_ENABLE -DCONFIG_LOG_LEVEL=LOG_INFO -DDEBUG=1 -D__riscv64
|
compiler.debug.flags=-DCONFIG_LOG_ENABLE -DCONFIG_LOG_LEVEL=LOG_INFO -DDEBUG=1 -D__riscv64
|
||||||
|
|
||||||
@@ -94,6 +94,7 @@ recipe.output.save_file={build.project_name}.{build.variant}.bin
|
|||||||
tools.kflash.path={runtime.tools.kflash.path}/
|
tools.kflash.path={runtime.tools.kflash.path}/
|
||||||
tools.kflash.cmd=python3 {runtime.tools.kflash.path}/kflash.py
|
tools.kflash.cmd=python3 {runtime.tools.kflash.path}/kflash.py
|
||||||
tools.kflash.cmd.windows={runtime.tools.kflash.path}/kflash_py
|
tools.kflash.cmd.windows={runtime.tools.kflash.path}/kflash_py
|
||||||
|
tools.kflash.cmd.macosx=/usr/local/bin/python3 {runtime.tools.kflash.path}/kflash.py
|
||||||
tools.kflash.program.pattern={cmd} -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
tools.kflash.program.pattern={cmd} -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
||||||
tools.kflash.program.pattern.windows="{cmd}" -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
tools.kflash.program.pattern.windows="{cmd}" -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
// API compatibility
|
|
||||||
#ifdef BOARD_SIPEED_MAIX_ONE_DOCK
|
|
||||||
|
|
||||||
#include "sipeedm1.h"
|
|
||||||
#else
|
|
||||||
|
|
||||||
#ifdef BOARD_SIPEED_MAIX_GO
|
|
||||||
#include "sipeed_go.h"
|
|
||||||
#endif //BOARD_SIPEED_MAIX_GO
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user