Add missing board detection macros (#448)
* add board detection macros for Sparkfun & RPi Pico / VGA Board
This commit is contained in:
parent
5ad072af5b
commit
e0872a32cc
@ -14,6 +14,9 @@
|
|||||||
#ifndef _BOARDS_PICO_H
|
#ifndef _BOARDS_PICO_H
|
||||||
#define _BOARDS_PICO_H
|
#define _BOARDS_PICO_H
|
||||||
|
|
||||||
|
// For board detection
|
||||||
|
#define RASPBERRYPI_PICO
|
||||||
|
|
||||||
// --- UART ---
|
// --- UART ---
|
||||||
#ifndef PICO_DEFAULT_UART
|
#ifndef PICO_DEFAULT_UART
|
||||||
#define PICO_DEFAULT_UART 0
|
#define PICO_DEFAULT_UART 0
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
#ifndef _BOARDS_SPARKFUN_MICROMOD_H
|
#ifndef _BOARDS_SPARKFUN_MICROMOD_H
|
||||||
#define _BOARDS_SPARKFUN_MICROMOD_H
|
#define _BOARDS_SPARKFUN_MICROMOD_H
|
||||||
|
|
||||||
|
// For board detection
|
||||||
|
#define SPARKFUN_MICROMOD
|
||||||
|
|
||||||
#ifndef PICO_DEFAULT_UART
|
#ifndef PICO_DEFAULT_UART
|
||||||
#define PICO_DEFAULT_UART 0
|
#define PICO_DEFAULT_UART 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
#ifndef _BOARDS_SPARKFUN_PROMICRO_H
|
#ifndef _BOARDS_SPARKFUN_PROMICRO_H
|
||||||
#define _BOARDS_SPARKFUN_PROMICRO_H
|
#define _BOARDS_SPARKFUN_PROMICRO_H
|
||||||
|
|
||||||
|
// For board detection
|
||||||
|
#define SPARKFUN_PROMICRO
|
||||||
|
|
||||||
#ifndef PICO_DEFAULT_UART
|
#ifndef PICO_DEFAULT_UART
|
||||||
#define PICO_DEFAULT_UART 0
|
#define PICO_DEFAULT_UART 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
#ifndef _BOARDS_SPARKFUN_THINGPLUS_H
|
#ifndef _BOARDS_SPARKFUN_THINGPLUS_H
|
||||||
#define _BOARDS_SPARKFUN_THINGPLUS_H
|
#define _BOARDS_SPARKFUN_THINGPLUS_H
|
||||||
|
|
||||||
|
// For board detection
|
||||||
|
#define SPARKFUN_THINGPLUS
|
||||||
|
|
||||||
#ifndef PICO_DEFAULT_UART
|
#ifndef PICO_DEFAULT_UART
|
||||||
#define PICO_DEFAULT_UART 0
|
#define PICO_DEFAULT_UART 0
|
||||||
#endif
|
#endif
|
||||||
@ -69,7 +72,7 @@
|
|||||||
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
|
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The thing plus has a SD Card.
|
// The thing plus has a SD Card.
|
||||||
#define PICO_SD_CLK_PIN 14
|
#define PICO_SD_CLK_PIN 14
|
||||||
#define PICO_SD_CMD_PIN 15
|
#define PICO_SD_CMD_PIN 15
|
||||||
#define PICO_SD_DAT0_PIN 12
|
#define PICO_SD_DAT0_PIN 12
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
#ifndef _BOARDS_VGABOARD_H
|
#ifndef _BOARDS_VGABOARD_H
|
||||||
#define _BOARDS_VGABOARD_H
|
#define _BOARDS_VGABOARD_H
|
||||||
|
|
||||||
|
// For board detection
|
||||||
|
#define RASPBERRYPI_VGABOARD
|
||||||
|
|
||||||
// Audio pins. I2S BCK, LRCK are on the same pins as PWM L/R.
|
// Audio pins. I2S BCK, LRCK are on the same pins as PWM L/R.
|
||||||
// - When outputting I2S, PWM sees BCK and LRCK, which should sound silent as
|
// - When outputting I2S, PWM sees BCK and LRCK, which should sound silent as
|
||||||
// they are constant duty cycle, and above the filter cutoff
|
// they are constant duty cycle, and above the filter cutoff
|
||||||
|
Loading…
Reference in New Issue
Block a user