#include #include #include "utils.h" void print_morse_table (const TABLE & tab) { int n = 0; printf("static const unsigned char compressed_table [] = {"); for (auto & e: tab) { if ((n % 16) == 0) printf("\n "); printf("0x%02x,", e); n++; } printf("\n};\n"); } void print_sinus_table (const TABLE & tab) { int n = 0; printf("static const uint16_t sin_tab [] = {"); for (auto & e: tab) { if ((n % 16) == 0) printf("\n"); printf("%5du,", e); n++; } printf("\n};\n"); }