espd/main/espd.h
Miller Puckette 3c604699ba attempts to get running on lyrat boards. Loads OK but inputs and outputs
silence.  Still questionable but audible output from generic ESP32 boards
with MAX98357A DAC/AMP and INMP 441 MEMS mic.
2024-09-18 11:15:58 +02:00

37 lines
1.1 KiB
C

/* #define PD_USE_BLUETOOTH */ /* messages to Pd over bluetooth */
/* #define PD_USE_WIFI */ /* messages to/from Pd over wifi TCP */
#define PD_USE_CONSOLE /* messages to Pd over "console" (USB serial) */
/* #define PD_LYRAT */ /* using LyraT or LyraT mini board */
/* task priorities */
#define PRIORITY_WIFI 2
#if defined(CONFIG_LOCALE_FILE)
#include CONFIG_LOCALE_FILE
#else
#include "locale.h"
#endif
#include <sys/types.h>
void pd_sendmsg(char *buf, int bufsize);
void pd_fromhost(char *data, size_t size);
#ifdef PD_USE_BLUETOOTH
void pd_bt_poll( void);
void bt_init( void);
void pd_bt_writeback(unsigned char *s, int length);
#endif
#define INCHANS 2
#define OUTCHANS 2
#ifdef PD_USE_WIFI
void wifi_init(void); /* wifi.c - manage 802.11 connection */
void net_init( void); /* init */
void net_hello( void); /* send initial TCP packet when connected */
void net_alive( void); /* send keep-alive packet if needed */
void net_sendudp(void *msg, int len, int port); /* send whatev */
void net_sendtcp(void *msg, int len);
extern char wifi_ipaddr[];
#endif