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:
@@ -1,7 +1,3 @@
|
|||||||
#include "common.h"
|
|
||||||
#include "rds.h"
|
|
||||||
#include "modulator.h"
|
|
||||||
#include "lib.h"
|
|
||||||
#include "ascii_cmd.h"
|
#include "ascii_cmd.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#include "modulator.h"
|
#include "common.h"
|
||||||
#include "rds.h"
|
#include "rds.h"
|
||||||
|
#include "modulator.h"
|
||||||
|
#include "lib.h"
|
||||||
#define CMD_BUFFER_SIZE 255
|
#define CMD_BUFFER_SIZE 255
|
||||||
#define CTL_BUFFER_SIZE (CMD_BUFFER_SIZE * 2)
|
#define CTL_BUFFER_SIZE (CMD_BUFFER_SIZE * 2)
|
||||||
#define READ_TIMEOUT_MS 200
|
#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);
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
#include "common.h"
|
|
||||||
#include "ascii_cmd.h"
|
|
||||||
#include "control_pipe.h"
|
#include "control_pipe.h"
|
||||||
#include "rds.h"
|
|
||||||
#include "modulator.h"
|
|
||||||
|
|
||||||
static int fd;
|
static int fd;
|
||||||
static struct pollfd poller;
|
static struct pollfd poller;
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/select.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);
|
int open_control_pipe(char *filename);
|
||||||
extern void close_control_pipe();
|
void close_control_pipe();
|
||||||
extern void poll_control_pipe(RDSModulator* mod);
|
void poll_control_pipe(RDSModulator* mod);
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
#include "common.h"
|
|
||||||
#include "rds.h"
|
|
||||||
#include <time.h>
|
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
|
|
||||||
extern int nanosleep(const struct timespec *req, struct timespec *rem);
|
extern int nanosleep(const struct timespec *req, struct timespec *rem);
|
||||||
|
|||||||
18
src/lib.h
18
src/lib.h
@@ -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);
|
uint16_t get_block_grom_group(RDSGroup *group, uint8_t block);
|
||||||
|
|
||||||
extern void add_checkwords(RDSGroup *group, uint8_t *bits);
|
void add_checkwords(RDSGroup *group, uint8_t *bits);
|
||||||
extern uint8_t add_rds_af_oda(RDSAFsODA *af_list, float freq);
|
uint8_t add_rds_af_oda(RDSAFsODA *af_list, float freq);
|
||||||
extern uint8_t add_rds_af(RDSAFs *af_list, float freq);
|
uint8_t add_rds_af(RDSAFs *af_list, float freq);
|
||||||
extern char *convert_to_rdscharset(char *str);
|
char *convert_to_rdscharset(char *str);
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "lib.h"
|
||||||
#include "rds.h"
|
#include "rds.h"
|
||||||
#include "waveforms.h"
|
#include "waveforms.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user