2022-06-18 03:06:10 +00:00
|
|
|
|
|
|
|
#ifndef __MORSE_H__
|
|
|
|
#define __MORSE_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <base.h>
|
|
|
|
|
|
|
|
/* TODO: make this parameterizable */
|
|
|
|
#define DOT 1
|
|
|
|
#define DASH 3
|
|
|
|
#define DIVIDER 1
|
|
|
|
#define INTERCHAR 3
|
|
|
|
#define INTERWORD 4
|
|
|
|
#define SCALE 100
|
|
|
|
|
2022-06-20 18:52:29 +00:00
|
|
|
void send_morse(gpio_t *gpio, char *message);
|
2022-06-18 03:06:10 +00:00
|
|
|
|
|
|
|
#endif
|