contains options for adapting to LyraT boards, in which case the thing should be compiled using ESP's audio development system (esp-adf) instead of the default esp-idf. (also, the "sdkconfig" file will have to be rebuilt). As they stand the sources load a pre-compiled patch which is munged as a C string in the file "testpatch.c". Optionally Pd can be reconfigured to load patches over wifi.
37 lines
887 B
C
37 lines
887 B
C
/* #define PD_USE_BLUETOOTH */
|
|
/* #define PD_USE_WIFI */
|
|
#define PD_USE_CONSOLE
|
|
|
|
|
|
/* 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
|