Home | History | Annotate | Download | only in tools

Lines Matching full:stores

176 static char *storestostr(uint16_t stores)
178 switch (stores) {
585 uint16_t type, stores[4] = { 0x0001, 0x0002, 0x0004, 0x0008 };
592 array[0] = stores[i] & 0xff;
593 array[1] = stores[i] >> 8;
601 printf("%s (0x%04x) = %s (%d)\n", storestostr(stores[i]),
602 stores[i], memorytostr(type), type);
609 { "stores", 1, 0, 's' },
615 static int opt_pskey(int argc, char *argv[], uint16_t *stores, int *reset, int *help)
622 if (!stores)
625 *stores = 0x0000;
627 *stores = 0x0001;
629 *stores = 0x0002;
631 *stores = 0x0004;
633 *stores = 0x0008;
635 *stores = 0x0001;
637 *stores = 0x0002;
639 *stores = 0x0004;
641 *stores = 0x0008;
643 *stores = strtol(optarg, NULL, 16);
645 *stores = atoi(optarg);
663 #define OPT_PSKEY(min, max, stores, reset, help) \
664 opt_pskey(argc, argv, (stores), (reset), (help)); \
671 uint16_t pskey, length, value, stores = CSR_STORES_DEFAULT;
677 OPT_PSKEY(1, 1, &stores, &reset, NULL);
695 array[2] = stores & 0xff;
696 array[3] = stores >> 8;
711 array[4] = stores & 0xff;
712 array[5] = stores >> 8;
746 uint16_t pskey, length, value, stores = CSR_STORES_PSRAM;
752 OPT_PSKEY(2, 81, &stores, &reset, NULL);
770 array[2] = stores & 0xff;
771 array[3] = stores >> 8;
786 array[4] = stores & 0xff;
787 array[5] = stores >> 8;
852 uint16_t pskey, stores = CSR_STORES_PSRAM;
855 OPT_PSKEY(1, 1, &stores, &reset, NULL);
873 array[2] = stores & 0xff;
874 array[3] = stores >> 8;
889 uint16_t pskey = 0x0000, length, stores = CSR_STORES_DEFAULT;
892 OPT_PSKEY(0, 0, &stores, &reset, NULL);
898 array[2] = stores & 0xff;
899 array[3] = stores >> 8;
912 array[2] = stores & 0xff;
913 array[3] = stores >> 8;
934 uint16_t pskey = 0x0000, length, stores = CSR_STORES_DEFAULT;
938 OPT_PSKEY(0, 0, &stores, &reset, NULL);
944 array[2] = stores & 0xff;
945 array[3] = stores >> 8;
958 array[2] = stores & 0xff;
959 array[3] = stores >> 8;
974 array[4] = stores & 0xff;
975 array[5] = stores >> 8;
1003 uint16_t pskey, length, size, stores = CSR_STORES_PSRAM;
1007 OPT_PSKEY(1, 1, &stores, &reset, NULL);
1031 array[4] = stores & 0xff;
1032 array[5] = stores >> 8;