-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
39 lines (33 loc) · 1.28 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Copyright (c) 2022 Adrian Siekierka
*
* ExtFriend is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* ExtFriend is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with ExtFriend. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include "boards/pico.h"
// #define MEMPHIS_DEBUG
#define MEMPHIS_DEBUG_UART_TX_PIN 8
#define MEMPHIS_DEBUG_UART_RX_PIN 9
#define MEMPHIS_LED_PIN PICO_DEFAULT_LED_PIN
#define MEMPHIS_WS_UART_TX_PIN 0
#define MEMPHIS_WS_UART_RX_PIN 1
#define MEMPHIS_WS_HDPN_DETECT_PIN 2
#define MEMPHIS_WS_HDPN_DATA_PIN 3
#define MEMPHIS_WS_HDPN_CLK_PIN 4
#define MEMPHIS_WS_HDPN_FCLK_PIN 5
#define MEMPHIS_WS_HEADPHONE_BUFFER_FRAMES 24
#define MEMPHIS_WS_HEADPHONE_BUFFER_ENTRIES 16
#define MEMPHIS_WS_HEADPHONE_BUFFER_SAMPLES (MEMPHIS_WS_HEADPHONE_BUFFER_FRAMES * 2)
#endif /* __CONFIG_H__ */