if (rawSample & (ADC_DR_OVERRUN | ADC_SEQ_GDAT_DATAVALID)) { DEBUGOUT("Chan: %d Val: %d\r\n", j, ADC_DR_RESULT(rawSample)); DEBUGOUT("Threshold range: 0x%x ", ADC_DR_THCMPRANGE(rawSample)); DEBUGOUT("Threshold cross: 0x%x\r\n", ADC_DR_THCMPCROSS(rawSample)); DEBUGOUT("Overrun: %s ", (rawSample & ADC_DR_OVERRUN) ? "true" : "false"); DEBUGOUT("Data Valid: %s\r\n\r\n", (rawSample & ADC_SEQ_GDAT_DATAVALID) ? "true" : "false"); } |
adc.c - Board_init() -> DEBUGINIT() -> Board_Debug_Init() -> Board_UART_Init() Chip_SWM_MovablePinAssign(SWM_U1_TXD_O, 7); Chip_SWM_MovablePinAssign(SWM_U1_RXD_I, 18); |