This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zooz ZEN34 Remote scene control | |
description: | | |
Use the Zooz ZEN34 remote to trigger Scenes and control devices based on varying scenes. | |
This Blueprint is currently configured for the zwaveJS platform. | |
domain: automation | |
input: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/send.c b/cmd/send.c | |
new file mode 100644 | |
index 0000000000..e533e5a65a | |
--- /dev/null | |
+++ b/cmd/send.c | |
@@ -0,0 +1,349 @@ | |
+#include <common.h> | |
+#include <command.h> | |
+#include <console.h> | |
+#include <cpu_func.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import serial | |
import sys | |
from xmodem import XMODEM | |
# Setup: | |
# pip install pyserial | |
# pip install xmodem | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import sys | |
bytes_received = 0 | |
with open("dump.bin", "wb") as f: | |
with serial.Serial('/dev/ttyUSB0', 500000, timeout=4) as ser: | |
ser.write(b'\nsf probe\n') | |
print(ser.read(4000).decode()) | |
ser.write(b'sf dump\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/sf.c b/cmd/sf.c | |
index d18f6a888c..b62e333c60 100644 | |
--- a/cmd/sf.c | |
+++ b/cmd/sf.c | |
@@ -318,6 +318,45 @@ static int do_spi_flash_read_write(int argc, char *const argv[]) | |
return ret == 0 ? 0 : 1; | |
} | |
+static void putc2(char ch) { | |
+ int loop = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/sf.c b/cmd/sf.c | |
index d18f6a888c..ed04f3f011 100644 | |
--- a/cmd/sf.c | |
+++ b/cmd/sf.c | |
@@ -318,6 +318,35 @@ static int do_spi_flash_read_write(int argc, char *const argv[]) | |
return ret == 0 ? 0 : 1; | |
} | |
+static int do_spi_flash_dump(int argc, char *const argv[]) { | |
+ int ret = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import sys | |
bytes_received = 0 | |
with open("dump.bin", "wb") as f: | |
with serial.Serial('/dev/ttyUSB0', 500000, timeout=1) as ser: | |
ser.write(b'sf probe\n') | |
print(ser.read(1000)) | |
ser.write(b'sf dump\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/sf.c b/cmd/sf.c | |
index d18f6a888c..ed04f3f011 100644 | |
--- a/cmd/sf.c | |
+++ b/cmd/sf.c | |
@@ -318,6 +318,35 @@ static int do_spi_flash_read_write(int argc, char *const argv[]) | |
return ret == 0 ? 0 : 1; | |
} | |
+static int do_spi_flash_dump(int argc, char *const argv[]) { | |
+ int ret = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/sf.c b/cmd/sf.c | |
index d18f6a888c..aee54c4c28 100644 | |
--- a/cmd/sf.c | |
+++ b/cmd/sf.c | |
@@ -318,6 +318,28 @@ static int do_spi_flash_read_write(int argc, char *const argv[]) | |
return ret == 0 ? 0 : 1; | |
} | |
+static int do_spi_flash_dump(int argc, char *const argv[]) { | |
+ int ret = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/board/bmw/bmw/Kconfig b/board/bmw/bmw/Kconfig | |
new file mode 100644 | |
index 0000000000..b83c553d52 | |
--- /dev/null | |
+++ b/board/bmw/bmw/Kconfig | |
@@ -0,0 +1,18 @@ | |
+if TARGET_BMW | |
+ | |
+config SYS_BOARD | |
+ default "bmw" |
NewerOlder