0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00

fix bugs and remove extern from header

This commit is contained in:
2025-04-14 16:22:30 +02:00
parent ae317a3fe4
commit a3c9db98db
7 changed files with 23 additions and 23 deletions

View File

@@ -1,7 +1,3 @@
#include "common.h"
#include "rds.h"
#include "modulator.h"
#include "lib.h"
#include "ascii_cmd.h"
typedef struct {

View File

@@ -1,7 +1,9 @@
#include "modulator.h"
#include "common.h"
#include "rds.h"
#include "modulator.h"
#include "lib.h"
#define CMD_BUFFER_SIZE 255
#define CTL_BUFFER_SIZE (CMD_BUFFER_SIZE * 2)
#define READ_TIMEOUT_MS 200
extern void process_ascii_cmd(RDSModulator* mod, char *str, char *cmd_output);
void process_ascii_cmd(RDSModulator* mod, char *str, char *cmd_output);

View File

@@ -1,8 +1,4 @@
#include "common.h"
#include "ascii_cmd.h"
#include "control_pipe.h"
#include "rds.h"
#include "modulator.h"
static int fd;
static struct pollfd poller;

View File

@@ -1,7 +1,11 @@
#include <fcntl.h>
#include <poll.h>
#include <sys/select.h>
#include "common.h"
#include "ascii_cmd.h"
#include "rds.h"
#include "modulator.h"
extern int open_control_pipe(char *filename);
extern void close_control_pipe();
extern void poll_control_pipe(RDSModulator* mod);
int open_control_pipe(char *filename);
void close_control_pipe();
void poll_control_pipe(RDSModulator* mod);

View File

@@ -1,6 +1,3 @@
#include "common.h"
#include "rds.h"
#include <time.h>
#include "lib.h"
extern int nanosleep(const struct timespec *req, struct timespec *rem);

View File

@@ -1,12 +1,16 @@
extern void msleep(unsigned long ms);
#include "common.h"
#include "rds.h"
#include <time.h>
extern int _strnlen(const char *s, int maxlen);
void msleep(unsigned long ms);
extern uint16_t crc16_ccitt(char *data, uint16_t len);
int _strnlen(const char *s, int maxlen);
uint16_t crc16_ccitt(char *data, uint16_t len);
uint16_t get_block_grom_group(RDSGroup *group, uint8_t block);
extern void add_checkwords(RDSGroup *group, uint8_t *bits);
extern uint8_t add_rds_af_oda(RDSAFsODA *af_list, float freq);
extern uint8_t add_rds_af(RDSAFs *af_list, float freq);
extern char *convert_to_rdscharset(char *str);
void add_checkwords(RDSGroup *group, uint8_t *bits);
uint8_t add_rds_af_oda(RDSAFsODA *af_list, float freq);
uint8_t add_rds_af(RDSAFs *af_list, float freq);
char *convert_to_rdscharset(char *str);

View File

@@ -1,5 +1,6 @@
#pragma once
#include "common.h"
#include "lib.h"
#include "rds.h"
#include "waveforms.h"