diff --git a/Makefile.genericwallet b/Makefile.genericwallet index 545d224..3f5f7f2 100755 --- a/Makefile.genericwallet +++ b/Makefile.genericwallet @@ -38,12 +38,16 @@ else ifeq ($(CHAIN),ubiq) APP_LOAD_PARAMS += --path "44'/108'" DEFINES += CHAINID_UPCASE=\"UBIQ\" CHAINID_COINNAME=\"UBQ\" CHAINID_NAME=\"Ubiq\" CHAINID=$(CHAIN) CHAIN_TYPE_UBIQ APPNAME = Ubiq +else ifeq ($(CHAIN),poa) +APP_LOAD_PARAMS += --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"POA\" CHAINID_COINNAME=\"POA\" CHAINID_NAME=\"Poa\" CHAINID=$(CHAIN) CHAIN_TYPE_POA +APPNAME = Poa else ifeq ($(filter clean,$(MAKECMDGOALS)),) -$(error Unsupported CHAIN - use ethereum, expanse, ubiq) +$(error Unsupported CHAIN - use ethereum, expanse, ubiq, poa) endif endif -APP_LOAD_PARAMS += --appFlags 0x40 --path "44'/1'" --curve secp256k1 $(COMMON_LOAD_PARAMS) +APP_LOAD_PARAMS += --appFlags 0x40 --path "44'/1'" --curve secp256k1 $(COMMON_LOAD_PARAMS) --apdu #prepare hsm generation ifeq ($(TARGET_NAME),TARGET_BLUE) @@ -79,12 +83,12 @@ DEFINES += APPVERSION=\"$(APPVERSION)\" ############## # Compiler # ############## -#GCCPATH := $(BOLOS_ENV)/gcc-arm-none-eabi-5_3-2016q1/bin/ -#CLANGPATH := $(BOLOS_ENV)/clang-arm-fropi/bin/ +GCCPATH := $(BOLOS_ENV)/gcc-arm-none-eabi-5_3-2016q1/bin/ +CLANGPATH := $(BOLOS_ENV)/clang-arm-fropi/bin/ CC := $(CLANGPATH)clang -#CFLAGS += -O0 -CFLAGS += -O3 -Os +CFLAGS += -O0 +#CFLAGS += -O3 -Os AS := $(GCCPATH)arm-none-eabi-gcc diff --git a/README.md b/README.md index 1a1ea0d..8e59751 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,42 @@ +# To Compile + +- Ubuntu 16.04 +sudo apt-get install libusb-1.0-0-dev libudev-dev python-dev gcc-multilib g++-multilib clang ntp +sudo apt-get install --reinstall binutils + +python --version +Python 2.7.10 + +pip install django==1.11 +pip install image +pip install ledgerblue +If Ledger PR hasn't merged, please install this version: +https://github.com/LedgerHQ/blue-loader-python/pull/18/files + +```bash +make -f Makefile.genericwallet BOLOS_ENV=/home/$USER/ledger_ubuntu/ledger/bolos_env BOLOS_SDK=/home/$USER/ledger_ubuntu/ledger/nanos-secure-sdk CHAIN=poa load +``` + + +# Setup BOLOS_ENV: +https://ledger.readthedocs.io/en/latest/userspace/getting_started.html + + - Choose a directory for the BOLOS environment (I’ll use ~/bolos-devenv/) and link the environment variable BOLOS_ENV to this directory. + - Download a prebuilt gcc from https://launchpad.net/gcc-arm-embedded/+milestone/5-2016-q1-update and unpack it into ~/bolos-devenv/. Make sure there is a directory named bin directly inside ~/bolos-devenv/gcc-arm-none-eabi-5_3-2016q1/. + + - Download a prebuilt clang from http://releases.llvm.org/download.html#4.0.0 and unpack it into ~/bolos-devenv/. Rename the directory that was inside the archive you downloaded to clang-arm-fropi, or create a link to the directory with that name. Make sure there is a directory named bin directly inside ~/bolos-devenv/clang-arm-fropi/. + +# Setup NANOS_SECURE_SDK: +https://github.com/LedgerHQ/nanos-secure-sdk/releases + +# To generate icon: +python ./nanos-secure-sdk-nanos-1314/icon.py nanos_app_poa.gif hexbitmaponly + +# To Load app onto Ledger +```bash +python -m ledgerblue.loadApp --path "44'/60'" --appFlags 0x40 --path "44'/1'" --curve secp256k1 --targetId 0x31100002 --fileName bin/app.hex --appName POA.NETWORK --apdu --icon 0100000000ffffff00ffffffffffffffffffff1ff80ff087e187e10ff01ff8ffffffffffffffffffff +``` + # blue-app-eth Ethereum wallet application framework for Ledger Blue and Nano S diff --git a/blue_app_poa.gif b/blue_app_poa.gif new file mode 100644 index 0000000..fdb78be Binary files /dev/null and b/blue_app_poa.gif differ diff --git a/glyphs/gray_badge_poa_network.gif b/glyphs/blue_badge_poa.gif similarity index 100% rename from glyphs/gray_badge_poa_network.gif rename to glyphs/blue_badge_poa.gif diff --git a/glyphs/nanos_badge_poa.gif b/glyphs/nanos_badge_poa.gif new file mode 100644 index 0000000..6fa73cc Binary files /dev/null and b/glyphs/nanos_badge_poa.gif differ diff --git a/nanos_app_poa.gif b/nanos_app_poa.gif new file mode 100644 index 0000000..6fa73cc Binary files /dev/null and b/nanos_app_poa.gif differ diff --git a/src/glyphs.c b/src/glyphs.c new file mode 100644 index 0000000..bac3e6a --- /dev/null +++ b/src/glyphs.c @@ -0,0 +1,421 @@ +#include "glyphs.h" +unsigned int const C_badge_transaction_colors[] + = { + 0x00cccccc, + 0x00d8d8d8, + 0x00e9e9e9, + 0x00f9f9f9, +}; + +unsigned char const C_badge_transaction_bitmap[] = { +0xff, 0xff, 0xff, 0xff, 0xbf, 0x15, 0x40, 0xe5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x6f, 0x00, 0x00, 0x00, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1b, 0x00, 0x00, 0x00, + 0x00, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0xa4, 0xff, 0xaf, 0x01, 0x40, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x2f, 0x00, 0xf9, 0xff, 0xff, 0xff, 0x06, 0x80, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0x00, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x06, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf9, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x06, 0xf4, 0xff, 0xff, 0xff, 0x07, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x01, 0xfd, 0xff, 0xff, 0x1f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x40, 0xff, + 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xd0, 0xff, 0xff, 0x02, 0xfe, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xf8, 0xff, 0x0f, 0xf4, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x01, 0xff, 0x7f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0xd0, 0xff, 0x02, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xf8, 0x1f, + 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x41, 0xff, 0x80, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf0, 0x0b, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0x07, 0x7e, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe7, 0xff, 0xff, 0xbf, + 0xd0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf8, 0xff, 0xff, 0x0f, 0x2c, 0xf4, 0xff, + 0xff, 0xaa, 0xaa, 0xaa, 0xaa, 0x06, 0xfe, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0x0f, 0x00, 0x00, + 0x00, 0x00, 0x80, 0xff, 0xff, 0x2f, 0x14, 0xf8, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf4, + 0xff, 0xff, 0x42, 0xc1, 0xff, 0xff, 0x5f, 0x55, 0x55, 0x55, 0x15, 0xd0, 0xff, 0xff, 0x3f, 0x04, + 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x47, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, + 0xef, 0xff, 0xff, 0x7f, 0xfd, 0xff, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0x7f, 0xfd, 0xff, 0xff, + 0xfb, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xd1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x3f, 0x10, 0xfc, 0xff, 0xff, 0x07, 0x54, 0x55, 0x55, 0x55, 0xf5, 0xff, 0xff, 0x43, 0x81, 0xff, + 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x14, 0xf8, 0xff, 0xff, 0x02, 0x00, + 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0x42, 0x42, 0xff, 0xff, 0xbf, 0x90, 0xaa, 0xaa, 0xaa, 0xaa, + 0xff, 0xff, 0x1f, 0x38, 0xf0, 0xff, 0xff, 0x2f, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, + 0x07, 0xfe, 0xff, 0xff, 0xdb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xbd, 0xd0, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xe0, 0x0f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x02, 0xff, 0x41, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x1f, 0xf4, 0x2f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x80, 0xff, 0x07, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xfd, 0xff, 0x40, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0x2f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xbf, 0x80, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x02, 0xfd, + 0xff, 0xff, 0x01, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xf4, 0xff, 0xff, 0x7f, 0x40, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xd0, 0xff, 0xff, 0xff, 0x1f, 0x90, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x6f, 0x40, 0xff, 0xff, 0xff, 0xff, 0x07, 0x90, 0xff, 0xff, 0xff, 0xff, 0x6f, 0x00, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0x02, 0x90, 0xff, 0xff, 0xff, 0x6f, 0x00, 0xf8, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x01, 0x40, 0xfa, 0xff, 0x1a, 0x00, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, + 0x00, 0x00, 0x00, 0x00, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x00, 0x00, 0x00, + 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5b, 0x01, 0x54, 0xfe, 0xff, 0xff, 0xff, + 0xff, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_badge_transaction = { GLYPH_badge_transaction_WIDTH, GLYPH_badge_transaction_HEIGHT, 2, C_badge_transaction_colors, C_badge_transaction_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_blue_badge_ethereum_colors[] + = { + 0x00cccccc, + 0x00dddddd, + 0x00ededed, + 0x00f9f9f9, +}; + +unsigned char const C_blue_badge_ethereum_bitmap[] = { +0xff, 0xff, 0xff, 0xff, 0xaf, 0x05, 0x00, 0xe5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x5f, 0x00, 0x00, 0x00, 0x40, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1b, 0x00, 0x00, 0x00, + 0x00, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x94, 0xfe, 0x6b, 0x01, 0x40, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x2f, 0x00, 0xf9, 0xff, 0xff, 0xff, 0x06, 0x80, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0x00, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x06, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf8, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x02, 0xf4, 0xff, 0xff, 0xff, 0x07, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x01, 0xfd, 0xff, 0xff, 0x1f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x40, 0xff, + 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xd0, 0xff, 0xff, 0x02, 0xfd, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf8, 0xff, 0x0f, 0xf4, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x01, 0xff, 0x7f, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x3f, 0xd0, 0xff, 0x02, 0xfe, 0xff, 0xff, 0xff, 0x6f, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xf8, 0x1f, + 0xf4, 0xff, 0xff, 0xff, 0xff, 0xd1, 0xff, 0xff, 0xff, 0xff, 0x41, 0xff, 0x80, 0xff, 0xff, 0xff, + 0xff, 0x0b, 0xf8, 0xff, 0xff, 0xff, 0x2f, 0xf0, 0x07, 0xfd, 0xff, 0xff, 0xff, 0x3f, 0x40, 0xff, + 0xff, 0xff, 0xff, 0x07, 0x3d, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x01, 0xe0, 0xff, 0xff, 0xff, 0xbf, + 0xc0, 0x02, 0xff, 0xff, 0xff, 0xff, 0x0b, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x0f, 0x28, 0xf4, 0xff, + 0xff, 0xff, 0x3f, 0x00, 0x40, 0xff, 0xff, 0xff, 0xff, 0x81, 0x41, 0xff, 0xff, 0xff, 0xff, 0x01, + 0x00, 0xe0, 0xff, 0xff, 0xff, 0x1f, 0x14, 0xf8, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfc, 0xff, + 0xff, 0xff, 0x42, 0x80, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x40, 0xff, 0xff, 0xff, 0x2f, 0x00, + 0xfc, 0xff, 0xff, 0xff, 0x02, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, + 0x0f, 0x00, 0x00, 0x00, 0xfd, 0xff, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x02, 0x00, 0x00, + 0xe0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xd0, 0xff, 0xff, 0xff, + 0x3f, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xbf, 0x01, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x02, 0x81, 0xff, + 0xff, 0xff, 0x9f, 0xbf, 0x90, 0xbf, 0xfe, 0xff, 0xff, 0x2f, 0x14, 0xf4, 0xff, 0xff, 0xff, 0xd3, + 0xff, 0xbf, 0xf1, 0xff, 0xff, 0xff, 0x41, 0x42, 0xff, 0xff, 0xff, 0xbf, 0xd0, 0xff, 0x81, 0xff, + 0xff, 0xff, 0x1f, 0x28, 0xf0, 0xff, 0xff, 0xff, 0x1f, 0xe0, 0x02, 0xfe, 0xff, 0xff, 0xff, 0x80, + 0x03, 0xfe, 0xff, 0xff, 0xff, 0x07, 0x00, 0xf4, 0xff, 0xff, 0xff, 0x0b, 0x7c, 0xd0, 0xff, 0xff, + 0xff, 0xbf, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x7f, 0xd0, 0x0f, 0xf8, 0xff, 0xff, 0xff, 0x2f, 0x00, + 0xfe, 0xff, 0xff, 0xff, 0x02, 0xff, 0x41, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf4, 0xff, 0xff, 0xff, + 0x1f, 0xf4, 0x2f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xd0, 0xff, 0xff, 0xff, 0xbf, 0x80, 0xff, 0x07, + 0xfc, 0xff, 0xff, 0xff, 0x6f, 0xff, 0xff, 0xff, 0xff, 0x03, 0xfd, 0xff, 0x40, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0x2f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x7f, 0x80, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x02, 0xfd, + 0xff, 0xff, 0x01, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf4, 0xff, 0xff, 0x7f, 0x40, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xd0, 0xff, 0xff, 0xff, 0x1f, 0x80, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x2f, 0x40, 0xff, 0xff, 0xff, 0xff, 0x07, 0x90, 0xff, 0xff, 0xff, 0xff, 0x6f, 0x00, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0x02, 0x90, 0xff, 0xff, 0xff, 0x6f, 0x00, 0xf8, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x01, 0x40, 0xe9, 0xbf, 0x16, 0x00, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, + 0x00, 0x00, 0x00, 0x00, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, + 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x00, 0x50, 0xfa, 0xff, 0xff, 0xff, + 0xff, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_blue_badge_ethereum = { GLYPH_blue_badge_ethereum_WIDTH, GLYPH_blue_badge_ethereum_HEIGHT, 2, C_blue_badge_ethereum_colors, C_blue_badge_ethereum_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_blue_badge_expanse_colors[] + = { + 0x00cccccc, + 0x00e0e0e0, + 0x00f1f1f1, + 0x00f9f9f9, +}; + +unsigned char const C_blue_badge_expanse_bitmap[] = { +0xff, 0xff, 0xff, 0xff, 0x6f, 0x05, 0x00, 0x95, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x1b, 0x00, 0x00, 0x00, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1b, 0x40, 0xe9, 0xbf, + 0x16, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1b, 0x90, 0xff, 0xff, 0xff, 0x6f, 0x40, 0xfe, + 0xff, 0xff, 0xff, 0xff, 0x2f, 0x90, 0xff, 0xff, 0xff, 0xff, 0x6f, 0x80, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x41, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf4, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x0b, 0xfd, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x42, 0xff, + 0xff, 0x7f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xd0, 0xff, 0xff, 0x82, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf8, 0xff, 0x0b, 0xfd, 0xff, 0xff, 0xff, 0x4b, + 0xfe, 0xff, 0xff, 0xff, 0x07, 0xfe, 0x7f, 0xf4, 0xff, 0xff, 0xff, 0x0b, 0x40, 0xfe, 0xff, 0xff, + 0xff, 0xd1, 0xff, 0x82, 0xff, 0xff, 0xff, 0x0b, 0x50, 0x40, 0xfe, 0xff, 0xff, 0x2f, 0xf8, 0x1f, + 0xfd, 0xff, 0xff, 0x07, 0xd0, 0x7f, 0x00, 0xfe, 0xff, 0xff, 0x47, 0xbf, 0xe0, 0xff, 0xff, 0x07, + 0xd0, 0xff, 0x7f, 0x00, 0xfd, 0xff, 0xbf, 0xe0, 0x47, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0x7f, + 0x00, 0xfd, 0xff, 0x1f, 0x3d, 0xf8, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xbf, 0x00, 0xff, 0xff, + 0xc2, 0xc2, 0xff, 0xff, 0x00, 0xfe, 0xff, 0xff, 0xff, 0x07, 0xf0, 0xff, 0x3f, 0x18, 0xfd, 0xff, + 0x0f, 0x00, 0xbe, 0x01, 0xf5, 0x07, 0x00, 0xff, 0xff, 0x47, 0xd1, 0xff, 0xff, 0x70, 0x00, 0x01, + 0x00, 0x04, 0xe0, 0xf0, 0xff, 0x7f, 0x14, 0xfe, 0xff, 0x0f, 0x7f, 0x00, 0xf9, 0x02, 0xe0, 0x0f, + 0xff, 0xff, 0x4b, 0xe0, 0xff, 0xff, 0xf0, 0x2f, 0xf4, 0xff, 0xd0, 0xff, 0xf0, 0xff, 0xbf, 0x00, + 0xff, 0xff, 0x0f, 0xff, 0xd1, 0xff, 0x2f, 0xfc, 0x0f, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xf0, + 0x1f, 0xfd, 0xff, 0x83, 0xff, 0xf0, 0xff, 0xff, 0x00, 0xff, 0xff, 0x0f, 0xff, 0xe1, 0xff, 0x3f, + 0xf8, 0x0f, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xf0, 0x1f, 0xfd, 0xff, 0xc3, 0xff, 0xf0, 0xff, + 0xff, 0x00, 0xfe, 0xff, 0x0f, 0xff, 0xc2, 0xff, 0x1f, 0xfc, 0x0f, 0xff, 0xff, 0x0b, 0xe1, 0xff, + 0xff, 0xf0, 0x3f, 0xf4, 0xbf, 0xe0, 0xff, 0xf0, 0xff, 0xbf, 0x14, 0xfd, 0xff, 0x0f, 0xff, 0x0b, + 0xa4, 0x41, 0xff, 0x0f, 0xff, 0xff, 0x47, 0xd1, 0xff, 0xff, 0xf0, 0xff, 0x02, 0x00, 0xfd, 0xff, + 0xf0, 0xff, 0x7f, 0x24, 0xfc, 0xff, 0x0f, 0xff, 0xff, 0x05, 0xf9, 0xff, 0x0f, 0xff, 0xff, 0x83, + 0x83, 0xff, 0xff, 0xf0, 0xff, 0xbf, 0xf0, 0xff, 0xff, 0xf0, 0xff, 0x2f, 0x7c, 0xf4, 0xff, 0x0f, + 0xe4, 0xff, 0x0b, 0xff, 0xbf, 0x01, 0xff, 0xff, 0xd1, 0x0b, 0xfe, 0xff, 0x06, 0xe4, 0xbf, 0xf0, + 0xbf, 0x01, 0xf9, 0xff, 0x0b, 0xfe, 0xd1, 0xff, 0xff, 0x06, 0xe4, 0x0b, 0xbf, 0x01, 0xf9, 0xff, + 0x7f, 0xf4, 0x2f, 0xf8, 0xff, 0xff, 0x06, 0xa4, 0x70, 0x00, 0xf9, 0xff, 0xff, 0x82, 0xff, 0x47, + 0xff, 0xff, 0xff, 0x06, 0x00, 0x00, 0xfd, 0xff, 0xff, 0x1f, 0xfd, 0xbf, 0xd0, 0xff, 0xff, 0xff, + 0x07, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xe0, 0xff, 0x2f, 0xf8, 0xff, 0xff, 0xff, 0x4b, 0xfe, 0xff, + 0xff, 0xff, 0x82, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xfd, + 0xff, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf4, 0xff, 0xff, 0x7f, 0xe0, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xd0, 0xff, 0xff, 0xff, 0x1f, 0xf4, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0x41, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0x02, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x06, 0xf8, 0xff, 0xff, 0xff, + 0xff, 0xbf, 0x01, 0xf9, 0xff, 0xff, 0xff, 0x06, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, + 0x94, 0xfe, 0x6b, 0x01, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, 0x00, 0x00, 0x00, + 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x56, 0x00, 0x50, 0xf9, 0xff, 0xff, 0xff, + 0xff, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_blue_badge_expanse = { GLYPH_blue_badge_expanse_WIDTH, GLYPH_blue_badge_expanse_HEIGHT, 2, C_blue_badge_expanse_colors, C_blue_badge_expanse_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_blue_badge_ubiq_colors[] + = { + 0x00cccccc, + 0x00dedede, + 0x00efefef, + 0x00f9f9f9, +}; + +unsigned char const C_blue_badge_ubiq_bitmap[] = { +0xff, 0xff, 0xff, 0xff, 0xaf, 0x05, 0x00, 0xa5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x5b, 0x00, 0x00, 0x00, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1b, 0x40, 0xe9, 0xbf, + 0x16, 0x40, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x90, 0xff, 0xff, 0xff, 0x6f, 0x40, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x2f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6f, 0xd0, 0xff, 0xff, 0xff, 0xff, 0x81, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf4, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x0b, 0xfd, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x42, 0xff, + 0xff, 0x7f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xd0, 0xff, 0xff, 0x82, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf8, 0xff, 0x0f, 0xfe, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0x7f, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xd1, 0xff, 0x82, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf8, 0x1f, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0xdb, 0xff, 0xff, 0xff, 0xff, 0x47, 0xbf, 0xf0, 0xff, 0xff, 0xff, + 0xff, 0x0b, 0xfd, 0xff, 0xff, 0xff, 0xbf, 0xe0, 0x47, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xd0, 0xfa, + 0xff, 0xff, 0xff, 0x1f, 0x3d, 0xf8, 0xff, 0xff, 0xff, 0x0b, 0x34, 0x2d, 0xfe, 0xff, 0xff, 0xff, + 0xc2, 0xc2, 0xff, 0xff, 0xff, 0x1b, 0xf4, 0xd3, 0x42, 0xfe, 0xff, 0xff, 0x3f, 0x28, 0xfd, 0xff, + 0xff, 0x1b, 0xf4, 0x3f, 0x2d, 0x81, 0xff, 0xff, 0xff, 0x87, 0xd1, 0xff, 0xff, 0x3f, 0xf4, 0xff, + 0xd3, 0xa2, 0xd0, 0xff, 0xff, 0x7f, 0x14, 0xfe, 0xff, 0xff, 0xd3, 0xff, 0x3f, 0x2d, 0x7e, 0xf0, + 0xff, 0xff, 0x4b, 0xe0, 0xff, 0xff, 0x3f, 0xfd, 0xff, 0xd1, 0xe2, 0x1f, 0xff, 0xff, 0xbf, 0x00, + 0xff, 0xff, 0xff, 0xd3, 0xff, 0x41, 0x2e, 0xfe, 0xf1, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x3f, + 0xfd, 0x42, 0xfe, 0xe1, 0x1f, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0xd3, 0x1f, 0xfe, 0x06, + 0xfe, 0xf1, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x3f, 0xfd, 0xe1, 0x06, 0xfd, 0x1f, 0xff, 0xff, + 0xff, 0x00, 0xfe, 0xff, 0xff, 0xd3, 0x1f, 0x1e, 0xfd, 0xff, 0xf1, 0xff, 0xff, 0x0b, 0xe1, 0xff, + 0xff, 0x3f, 0xf4, 0xe1, 0xf1, 0xff, 0x1f, 0xff, 0xff, 0xbf, 0x14, 0xfd, 0xff, 0xff, 0x1b, 0x19, + 0x1e, 0xff, 0x7f, 0xf0, 0xff, 0xff, 0x47, 0xd2, 0xff, 0xff, 0xff, 0x07, 0xe1, 0xf1, 0x7f, 0x90, + 0xff, 0xff, 0x7f, 0x28, 0xfc, 0xff, 0xff, 0xff, 0x06, 0x1e, 0x7f, 0x90, 0xff, 0xff, 0xff, 0x83, + 0x83, 0xff, 0xff, 0xff, 0xff, 0xe1, 0x71, 0x90, 0xff, 0xff, 0xff, 0x2f, 0x7c, 0xf4, 0xff, 0xff, + 0xff, 0xbf, 0x1f, 0x80, 0xff, 0xff, 0xff, 0xff, 0xd1, 0x0b, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81, + 0xff, 0xff, 0xff, 0xff, 0x0b, 0xfe, 0xd1, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0xf4, 0x2f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x82, 0xff, 0x47, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xfd, 0xff, 0xe0, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xf0, 0xff, 0x2f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x82, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0b, 0xfd, + 0xff, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2f, 0xf4, 0xff, 0xff, 0x7f, 0xe0, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xd0, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0x42, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, + 0xfd, 0xff, 0xff, 0xff, 0xff, 0x02, 0xfd, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x01, 0xf9, 0xff, 0xff, 0xff, 0x06, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, + 0x94, 0xfe, 0x6b, 0x01, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x01, 0x00, 0x00, 0x00, + 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x00, 0x50, 0xfa, 0xff, 0xff, 0xff, + 0xff, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_blue_badge_ubiq = { GLYPH_blue_badge_ubiq_WIDTH, GLYPH_blue_badge_ubiq_HEIGHT, 2, C_blue_badge_ubiq_colors, C_blue_badge_ubiq_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_icon_back_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_icon_back_bitmap[] = { +0xe0, 0x01, 0xfe, 0xc1, 0xfd, 0x38, 0x7f, 0x06, 0xdf, 0x81, 0xff, 0xc4, 0x7f, 0xf3, 0xff, 0xbc, + 0x1f, 0xe7, 0xe7, 0xf1, 0x3f, 0xf8, 0x07, 0x78, 0x00, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_icon_back = { GLYPH_icon_back_WIDTH, GLYPH_icon_back_HEIGHT, 1, C_icon_back_colors, C_icon_back_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_icon_dashboard_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_icon_dashboard_bitmap[] = { +0xe0, 0x01, 0xfe, 0xc1, 0xff, 0x38, 0x70, 0x06, 0xd8, 0x79, 0x7e, 0x9e, 0x9f, 0xe7, 0xe7, 0xb9, + 0x01, 0xe6, 0xc0, 0xf1, 0x3f, 0xf8, 0x07, 0x78, 0x00, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_icon_dashboard = { GLYPH_icon_dashboard_WIDTH, GLYPH_icon_dashboard_HEIGHT, 1, C_icon_dashboard_colors, C_icon_dashboard_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_icon_toggle_reset_colors[] + = { + 0x00cccccc, + 0x00cdcdcd, + 0x00cecece, + 0x00d0d0d0, + 0x00d2d2d2, + 0x00d6d6d6, + 0x00dddddd, + 0x00dedede, + 0x00e7e7e7, + 0x00ededed, + 0x00f2f2f2, + 0x00f6f6f6, + 0x00f9f9f9, + 0x00fcfcfc, + 0x00fefefe, + 0x00ffffff, +}; + +unsigned char const C_icon_toggle_reset_bitmap[] = { +0xcc, 0xcc, 0x9c, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x74, 0xc9, 0xcc, 0xcc, + 0xcc, 0xac, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xca, 0xcc, + 0xcc, 0x29, 0x30, 0xb8, 0xee, 0x8b, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92, 0xcc, + 0xac, 0x03, 0xd6, 0xff, 0xff, 0xff, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xca, + 0x5c, 0x60, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc5, + 0x09, 0xd3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, + 0x07, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, + 0x04, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, + 0x01, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, + 0x02, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, + 0x04, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, + 0x06, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, + 0x09, 0xd3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, + 0x5c, 0x60, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc5, + 0xac, 0x03, 0xd6, 0xff, 0xff, 0xff, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xca, + 0xcc, 0x29, 0x30, 0xb8, 0xde, 0x8b, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92, 0xcc, + 0xcc, 0xac, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xca, 0xcc, + 0xcc, 0xcc, 0x9c, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x74, 0xc9, 0xcc, 0xcc, + }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_icon_toggle_reset = { GLYPH_icon_toggle_reset_WIDTH, GLYPH_icon_toggle_reset_HEIGHT, 4, C_icon_toggle_reset_colors, C_icon_toggle_reset_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_icon_toggle_set_colors[] + = { + 0x0037cdb4, + 0x003cceb6, + 0x0043cfb8, + 0x004ad1ba, + 0x0055d3be, + 0x0066d7c4, + 0x0081decd, + 0x00a2e7db, + 0x00c5ede6, + 0x00c9eee8, + 0x00dbf2ee, + 0x00dbf6f1, + 0x00f9f9f9, + 0x00f5fcfb, + 0x00fafefd, + 0x00ffffff, +}; + +unsigned char const C_icon_toggle_set_bitmap[] = { +0xcc, 0xcc, 0x9c, 0x46, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x64, 0xc9, 0xcc, 0xcc, + 0xcc, 0xac, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xca, 0xcc, + 0xcc, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xb7, 0xee, 0x7b, 0x03, 0x92, 0xcc, + 0xac, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd6, 0xff, 0xff, 0xff, 0x6d, 0x20, 0xca, + 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0xc5, + 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3d, 0x80, + 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x60, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x40, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0x10, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0x10, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x40, + 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x60, + 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3d, 0x80, + 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0xc5, + 0xac, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd6, 0xff, 0xff, 0xff, 0x6d, 0x20, 0xca, + 0xcc, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xb7, 0xde, 0x7b, 0x03, 0x92, 0xcc, + 0xcc, 0xac, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xca, 0xcc, + 0xcc, 0xcc, 0x8c, 0x46, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x64, 0xc8, 0xcc, 0xcc, + }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_icon_toggle_set = { GLYPH_icon_toggle_set_WIDTH, GLYPH_icon_toggle_set_HEIGHT, 4, C_icon_toggle_set_colors, C_icon_toggle_set_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_icon_warning_colors[] + = { + 0x00cccccc, + 0x00d6d6d6, + 0x00f8f8f8, + 0x00f9f9f9, +}; + +unsigned char const C_icon_warning_bitmap[] = { +0xaf, 0x41, 0xf9, 0x1b, 0x00, 0xe4, 0x06, 0x3c, 0x90, 0x02, 0x3c, 0x40, 0x01, 0x3c, 0x40, 0x00, + 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x01, 0x00, 0x40, 0x02, 0x3c, 0x80, 0x06, 0x3c, 0x90, 0x1b, 0x00, + 0xe4, 0xaf, 0x41, 0xfa, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_icon_warning = { GLYPH_icon_warning_WIDTH, GLYPH_icon_warning_HEIGHT, 2, C_icon_warning_colors, C_icon_warning_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_nanos_badge_ethereum_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_nanos_badge_ethereum_bitmap[] = { +0xe0, 0x01, 0xfe, 0xc1, 0xf3, 0xf8, 0x7c, 0x1e, 0xde, 0x87, 0xff, 0xc0, 0x7f, 0xf8, 0xef, 0xbd, + 0x87, 0xe7, 0xe1, 0xf1, 0x3c, 0xf8, 0x07, 0x78, 0x00, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_nanos_badge_ethereum = { GLYPH_nanos_badge_ethereum_WIDTH, GLYPH_nanos_badge_ethereum_HEIGHT, 1, C_nanos_badge_ethereum_colors, C_nanos_badge_ethereum_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_nanos_badge_expanse_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_nanos_badge_expanse_bitmap[] = { +0xe0, 0x01, 0xfe, 0xc1, 0xe1, 0x18, 0x60, 0xe2, 0xd1, 0x30, 0x3c, 0x21, 0xcf, 0xcc, 0x33, 0xb3, + 0x48, 0x64, 0x80, 0x71, 0x38, 0xf8, 0x07, 0x78, 0x00, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_nanos_badge_expanse = { GLYPH_nanos_badge_expanse_WIDTH, GLYPH_nanos_badge_expanse_HEIGHT, 1, C_nanos_badge_expanse_colors, C_nanos_badge_expanse_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_nanos_badge_poa_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_nanos_badge_poa_bitmap[] = { +0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0x0f, 0xf0, 0x87, 0xe1, + 0x87, 0xe1, 0x0f, 0xf0, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_nanos_badge_poa = { GLYPH_nanos_badge_poa_WIDTH, GLYPH_nanos_badge_poa_HEIGHT, 1, C_nanos_badge_poa_colors, C_nanos_badge_poa_bitmap }; +#endif // OS_IO_SEPROXYHAL +#include "glyphs.h" +unsigned int const C_nanos_badge_ubiq_colors[] + = { + 0x00000000, + 0x00ffffff, +}; + +unsigned char const C_nanos_badge_ubiq_bitmap[] = { +0xe0, 0x01, 0xfe, 0xc1, 0xfb, 0x78, 0x7a, 0x8e, 0xdc, 0x21, 0x7e, 0x88, 0x1f, 0xe1, 0x47, 0xb8, + 0x13, 0xe7, 0xe5, 0xf1, 0x3d, 0xf8, 0x07, 0x78, 0x00, }; + +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +const bagl_icon_details_t C_nanos_badge_ubiq = { GLYPH_nanos_badge_ubiq_WIDTH, GLYPH_nanos_badge_ubiq_HEIGHT, 1, C_nanos_badge_ubiq_colors, C_nanos_badge_ubiq_bitmap }; +#endif // OS_IO_SEPROXYHAL diff --git a/src/glyphs.h b/src/glyphs.h new file mode 100644 index 0000000..5c56042 --- /dev/null +++ b/src/glyphs.h @@ -0,0 +1,195 @@ +#ifndef GLYPH_badge_transaction_BPP +#define GLYPH_badge_transaction_WIDTH 50 +#define GLYPH_badge_transaction_HEIGHT 50 +#define GLYPH_badge_transaction_BPP 2 +extern +unsigned int const C_badge_transaction_colors[] +; +extern +unsigned char const C_badge_transaction_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_badge_transaction; +#endif // GLYPH_badge_transaction_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_blue_badge_ethereum_BPP +#define GLYPH_blue_badge_ethereum_WIDTH 50 +#define GLYPH_blue_badge_ethereum_HEIGHT 50 +#define GLYPH_blue_badge_ethereum_BPP 2 +extern +unsigned int const C_blue_badge_ethereum_colors[] +; +extern +unsigned char const C_blue_badge_ethereum_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_blue_badge_ethereum; +#endif // GLYPH_blue_badge_ethereum_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_blue_badge_expanse_BPP +#define GLYPH_blue_badge_expanse_WIDTH 50 +#define GLYPH_blue_badge_expanse_HEIGHT 50 +#define GLYPH_blue_badge_expanse_BPP 2 +extern +unsigned int const C_blue_badge_expanse_colors[] +; +extern +unsigned char const C_blue_badge_expanse_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_blue_badge_expanse; +#endif // GLYPH_blue_badge_expanse_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_blue_badge_ubiq_BPP +#define GLYPH_blue_badge_ubiq_WIDTH 50 +#define GLYPH_blue_badge_ubiq_HEIGHT 50 +#define GLYPH_blue_badge_ubiq_BPP 2 +extern +unsigned int const C_blue_badge_ubiq_colors[] +; +extern +unsigned char const C_blue_badge_ubiq_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_blue_badge_ubiq; +#endif // GLYPH_blue_badge_ubiq_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_icon_back_BPP +#define GLYPH_icon_back_WIDTH 14 +#define GLYPH_icon_back_HEIGHT 14 +#define GLYPH_icon_back_BPP 1 +extern +unsigned int const C_icon_back_colors[] +; +extern +unsigned char const C_icon_back_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_icon_back; +#endif // GLYPH_icon_back_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_icon_dashboard_BPP +#define GLYPH_icon_dashboard_WIDTH 14 +#define GLYPH_icon_dashboard_HEIGHT 14 +#define GLYPH_icon_dashboard_BPP 1 +extern +unsigned int const C_icon_dashboard_colors[] +; +extern +unsigned char const C_icon_dashboard_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_icon_dashboard; +#endif // GLYPH_icon_dashboard_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_icon_toggle_reset_BPP +#define GLYPH_icon_toggle_reset_WIDTH 32 +#define GLYPH_icon_toggle_reset_HEIGHT 18 +#define GLYPH_icon_toggle_reset_BPP 4 +extern +unsigned int const C_icon_toggle_reset_colors[] +; +extern +unsigned char const C_icon_toggle_reset_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_icon_toggle_reset; +#endif // GLYPH_icon_toggle_reset_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_icon_toggle_set_BPP +#define GLYPH_icon_toggle_set_WIDTH 32 +#define GLYPH_icon_toggle_set_HEIGHT 18 +#define GLYPH_icon_toggle_set_BPP 4 +extern +unsigned int const C_icon_toggle_set_colors[] +; +extern +unsigned char const C_icon_toggle_set_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_icon_toggle_set; +#endif // GLYPH_icon_toggle_set_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_icon_warning_BPP +#define GLYPH_icon_warning_WIDTH 12 +#define GLYPH_icon_warning_HEIGHT 12 +#define GLYPH_icon_warning_BPP 2 +extern +unsigned int const C_icon_warning_colors[] +; +extern +unsigned char const C_icon_warning_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_icon_warning; +#endif // GLYPH_icon_warning_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_nanos_badge_ethereum_BPP +#define GLYPH_nanos_badge_ethereum_WIDTH 14 +#define GLYPH_nanos_badge_ethereum_HEIGHT 14 +#define GLYPH_nanos_badge_ethereum_BPP 1 +extern +unsigned int const C_nanos_badge_ethereum_colors[] +; +extern +unsigned char const C_nanos_badge_ethereum_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_nanos_badge_ethereum; +#endif // GLYPH_nanos_badge_ethereum_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_nanos_badge_expanse_BPP +#define GLYPH_nanos_badge_expanse_WIDTH 14 +#define GLYPH_nanos_badge_expanse_HEIGHT 14 +#define GLYPH_nanos_badge_expanse_BPP 1 +extern +unsigned int const C_nanos_badge_expanse_colors[] +; +extern +unsigned char const C_nanos_badge_expanse_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_nanos_badge_expanse; +#endif // GLYPH_nanos_badge_expanse_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_nanos_badge_poa_BPP +#define GLYPH_nanos_badge_poa_WIDTH 16 +#define GLYPH_nanos_badge_poa_HEIGHT 16 +#define GLYPH_nanos_badge_poa_BPP 1 +extern +unsigned int const C_nanos_badge_poa_colors[] +; +extern +unsigned char const C_nanos_badge_poa_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_nanos_badge_poa; +#endif // GLYPH_nanos_badge_poa_BPP +#endif // OS_IO_SEPROXYHAL +#ifndef GLYPH_nanos_badge_ubiq_BPP +#define GLYPH_nanos_badge_ubiq_WIDTH 14 +#define GLYPH_nanos_badge_ubiq_HEIGHT 14 +#define GLYPH_nanos_badge_ubiq_BPP 1 +extern +unsigned int const C_nanos_badge_ubiq_colors[] +; +extern +unsigned char const C_nanos_badge_ubiq_bitmap[]; +#ifdef OS_IO_SEPROXYHAL +#include "os_io_seproxyhal.h" +extern +const bagl_icon_details_t C_nanos_badge_ubiq; +#endif // GLYPH_nanos_badge_ubiq_BPP +#endif // OS_IO_SEPROXYHAL diff --git a/src_genericwallet/tokens.c b/src_genericwallet/tokens.c index 48933ed..15e5a45 100644 --- a/src_genericwallet/tokens.c +++ b/src_genericwallet/tokens.c @@ -1038,4 +1038,9 @@ const tokenDefinition_t const TOKENS[NUM_TOKENS] = { const tokenDefinition_t const TOKENS[NUM_TOKENS] = {}; +#elif defined(CHAIN_TYPE_POA) + +const tokenDefinition_t const TOKENS[NUM_TOKENS] = {}; + + #endif diff --git a/src_genericwallet/tokens.h b/src_genericwallet/tokens.h index 9803ab5..696f9e2 100644 --- a/src_genericwallet/tokens.h +++ b/src_genericwallet/tokens.h @@ -29,6 +29,8 @@ typedef struct tokenDefinition_t { #define NUM_TOKENS 2 #elif defined(CHAIN_TYPE_EXPANSE) #define NUM_TOKENS 0 +#elif defined(CHAIN_TYPE_POA) +#define NUM_TOKENS 0 #endif extern tokenDefinition_t const TOKENS[NUM_TOKENS];