diff options
| author | Steven Noreyko <1909661+okyeron@users.noreply.github.com> | 2024-01-08 16:51:02 -0600 |
|---|---|---|
| committer | Steven Noreyko <1909661+okyeron@users.noreply.github.com> | 2024-01-08 16:51:02 -0600 |
| commit | a3ec9cfbe98f7d1984806bf01e122cbad85f83da (patch) | |
| tree | 87e1a6dc3a68f94f0ae04f39fabeeeb704a96a60 /sw/Core/Src | |
| parent | c7fd8e7bab3b4b912008c2d34f2ac261aebfd2fc (diff) | |
| download | plinky-a3ec9cfbe98f7d1984806bf01e122cbad85f83da.tar.gz | |
add new test points to main board and jig
Diffstat (limited to 'sw/Core/Src')
| -rwxr-xr-x | sw/Core/Src/main.c | 2 | ||||
| -rwxr-xr-x | sw/Core/Src/plinky.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sw/Core/Src/main.c b/sw/Core/Src/main.c index c019c3e..80b3b50 100755 --- a/sw/Core/Src/main.c +++ b/sw/Core/Src/main.c @@ -1200,7 +1200,7 @@ static void MX_USART3_UART_Init(void) /* USER CODE END USART3_Init 1 */ huart3.Instance = USART3; - huart3.Init.BaudRate = 31250; + huart3.Init.BaudRate = 115200; huart3.Init.WordLength = UART_WORDLENGTH_8B; huart3.Init.StopBits = UART_STOPBITS_1; huart3.Init.Parity = UART_PARITY_NONE; diff --git a/sw/Core/Src/plinky.c b/sw/Core/Src/plinky.c index 49cb95f..013ee1a 100755 --- a/sw/Core/Src/plinky.c +++ b/sw/Core/Src/plinky.c @@ -2652,6 +2652,12 @@ void test_jig(void) { oled_flip(vrambuf); for (int ch=0;ch<ADC_CHANS;++ch) tot[ch] /= ADC_SAMPLES * NUMITER; + + DebugLog("-----\nmux = %d lohi = %d\n", mux, lohi); + for (int ch=0;ch<ADC_CHANS;++ch) { + DebugLog("adc ch reads %d\n",tot[ch]); + } + DebugLog("-----\n"); switch(mux) { case 0: for (int ch=0;ch<ADC_CHANS;++ch) { |
