arduino-audio-tools
Loading...
Searching...
No Matches
src
AudioTools
PlatformConfig
rp2040hower.h
1
#pragma once
2
#include "Arduino.h"
3
#define RP2040_HOWER
4
#define RP2040
5
#define USE_SD_NO_NS
6
#define USE_I2S
7
#define USE_PWM
8
#define USE_ANALOG_ARDUINO
9
#define USE_TYPETRAITS
10
#define USE_TIMER
11
#define USE_INT24_FROM_INT
12
13
#define PIN_ANALOG_START 26
14
#define PIN_PWM_START 6
15
#define PIN_I2S_BCK 26
16
#define PIN_I2S_WS PIN_I2S_BCK+1
17
#define PIN_I2S_DATA_IN 28
18
#define PIN_I2S_DATA_OUT 28
19
#define PIN_I2S_MCK -1
20
// Default Setting: The mute pin can be switched actovated by setting it to a gpio (e.g 4). Or you could drive the LED by assigning LED_BUILTIN
21
#define PIN_I2S_MUTE -1
22
#define SOFT_MUTE_VALUE 0
23
#define PIN_CS PIN_SPI0_SS
24
#define USE_SERVER_ACCEPT true
25
26
// fix missing __sync_synchronize symbol
27
//#define FIX_SYNC_SYNCHRONIZE
28
#define IRAM_ATTR
29
30
#ifndef ANALOG_BUFFER_SIZE
31
#define ANALOG_BUFFER_SIZE 256
32
#endif
33
34
#ifndef ANALOG_BUFFERS
35
#define ANALOG_BUFFERS 100
36
#endif
37
38
//#define USE_CONCURRENCY
39
#define USE_SD_SUPPORTS_SPI
40
41
// default pins for VS1053 shield
42
#define VS1053_CS 17
43
#define VS1053_DCS 9
44
#define VS1053_DREQ 10
45
#define VS1053_CS_SD -1
46
#define VS1053_RESET 11
47
#define VS1053_DEFINED
48
49
// The Pico W has WIFI support: but platformio is messing up, so we support NO_WIFI
50
#if (LWIP_IPV4==1 || LWIP_IPV6==1) &&!defined(NO_WIFI)
51
# include <WiFi.h>
52
# define USE_WIFI
53
# define USE_WIFI_CLIENT_SECURE
54
# define USE_URL_ARDUINO
55
# define USE_AUDIO_SERVER
56
using
WiFiServerSecure = BearSSL::WiFiServerSecure;
57
#endif
58
59
// psram support
60
#ifdef RP2350_PSRAM_CS
61
#define USE_PSRAM
62
#define ps_malloc(size) pmalloc(size)
63
#define ps_calloc(num, size) pcalloc(num, size)
64
#define ps_realloc(ptr, size) realloc(ptr, size)
65
#endif
Generated by
1.9.8