firmware: fix input numberingch5 was shorting all inputs

This commit is contained in:
julixau committed 2019-10-21 23:35:08 +02:00
1 parent 95f4f5dd71
commit d28508f7bf
2 files changed
+22 -5

No files matched your search

+5
View File
@@ -6,6 +6,11 @@
#include "stm32f1xx_hal.h"
#define BD_INPUT_MUTE (1<<4)
#define BD_INPUT_ALL (1<<5)
// number can either be 0-5 (meaning CHANNEL1 to CHANNEL 6)
// or BD_INPUT_MUTE or BD_INPUT_SHORT
void bd_set_input(I2C_HandleTypeDef * handle, uint8_t number);
#define BD_MAX_GAIN 20 // gain in db