Add command to manually set ADC mux source

This commit is contained in:
henryk@ploetzli.ch 2009-10-09 15:57:07 +00:00
commit 5fc8250f7f
3 changed files with 27 additions and 0 deletions

View file

@ -646,6 +646,14 @@ void UsbPacketReceived(BYTE *packet, int len)
case CMD_SET_LF_DIVISOR:
FpgaSendCommand(FPGA_CMD_SET_DIVISOR, c->ext1);
break;
case CMD_SET_ADC_MUX:
switch(c->ext1) {
case 0: SetAdcMuxFor(GPIO_MUXSEL_LOPKD); break;
case 1: SetAdcMuxFor(GPIO_MUXSEL_LORAW); break;
case 2: SetAdcMuxFor(GPIO_MUXSEL_HIPKD); break;
case 3: SetAdcMuxFor(GPIO_MUXSEL_HIRAW); break;
}
break;
case CMD_VERSION:
SendVersion();
break;