Added menuconfig option to switch between prototype and eventual production hardware
This commit is contained in:
parent
819fb3154c
commit
987f778a25
7
software/main/Kconfig.projbuild
Normal file
7
software/main/Kconfig.projbuild
Normal file
|
@ -0,0 +1,7 @@
|
|||
menu "Car Stereo Configuration"
|
||||
config CAR_STEREO_PROTOTYPE
|
||||
bool "Prototype"
|
||||
default false
|
||||
help
|
||||
Compile the code for the car stereo prototype instead of the final design
|
||||
endmenu
|
|
@ -3,14 +3,19 @@
|
|||
#include "hal/gpio_types.h"
|
||||
|
||||
// FOR PROTOTYPE
|
||||
/* #define I2S_PIN_BCK GPIO_NUM_26 */
|
||||
/* #define I2S_PIN_WS GPIO_NUM_25 */
|
||||
/* #define I2S_PIN_DATA GPIO_NUM_33 */
|
||||
/* #define TWAI_PIN_CTX GPIO_NUM_5 */
|
||||
/* #define TWAI_PIN_CRX GPIO_NUM_19 */
|
||||
#ifdef CONFIG_CAR_STEREO_PROTOTYPE
|
||||
#pragma message ( "Building for the prototype" )
|
||||
#define I2S_PIN_BCK GPIO_NUM_26
|
||||
#define I2S_PIN_WS GPIO_NUM_25
|
||||
#define I2S_PIN_DATA GPIO_NUM_33
|
||||
#define TWAI_PIN_CTX GPIO_NUM_5
|
||||
#define TWAI_PIN_CRX GPIO_NUM_19
|
||||
#else
|
||||
#pragma message ( "Building for the production" )
|
||||
#define I2S_PIN_BCK GPIO_NUM_5
|
||||
#define I2S_PIN_WS GPIO_NUM_16
|
||||
#define I2S_PIN_DATA GPIO_NUM_17
|
||||
#define TWAI_PIN_CTX GPIO_NUM_32
|
||||
#define TWAI_PIN_CRX GPIO_NUM_35
|
||||
#endif
|
||||
|
||||
#define I2S_PIN_BCK GPIO_NUM_5
|
||||
#define I2S_PIN_WS GPIO_NUM_16
|
||||
#define I2S_PIN_DATA GPIO_NUM_17
|
||||
#define TWAI_PIN_CTX GPIO_NUM_32
|
||||
#define TWAI_PIN_CRX GPIO_NUM_35
|
||||
|
|
|
@ -283,6 +283,12 @@ CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
|||
CONFIG_PARTITION_TABLE_MD5=y
|
||||
# end of Partition Table
|
||||
|
||||
#
|
||||
# Car Stereo Configuration
|
||||
#
|
||||
# CONFIG_CAR_STEREO_PROTOTYPE is not set
|
||||
# end of Car Stereo Configuration
|
||||
|
||||
#
|
||||
# Compiler options
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user