Compare commits
No commits in common. "f653fe0914d712be03adc7f1c938fad7decd3794" and "dc1a63fbb07be718e4dc53d0359ab7b4f7551dd1" have entirely different histories.
f653fe0914
...
dc1a63fbb0
2 changed files with 1 additions and 4 deletions
|
@ -55,7 +55,6 @@ static constexpr int CC = MAXPWM / 2;
|
||||||
static pthread_t rc;
|
static pthread_t rc;
|
||||||
|
|
||||||
void * WriteHandler (void * data) {
|
void * WriteHandler (void * data) {
|
||||||
usleep(10'000);
|
|
||||||
printf ("Start thread\n");
|
printf ("Start thread\n");
|
||||||
PwmClass * pA = (PwmClass *) data;
|
PwmClass * pA = (PwmClass *) data;
|
||||||
Sample buf [BufLen];
|
Sample buf [BufLen];
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <mutex>
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
void print_morse_table (const TABLE<unsigned char, 64> & tab) {
|
void print_morse_table (const TABLE<unsigned char, 64> & tab) {
|
||||||
int n = 0;
|
int n = 0;
|
||||||
printf("static const unsigned char compressed_table [] = {");
|
printf("static const unsigned char compressed_table [] = {");
|
||||||
for (auto & e: tab) {
|
for (auto & e: tab) {
|
||||||
if ((n % 16) == 0) printf("\n ");
|
if ((n % 16) == 0) printf("\n");
|
||||||
printf("0x%02x,", e);
|
printf("0x%02x,", e);
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue