Index: firmware/source/adc.c =================================================================== diff -u -r6d2d8f0267c57135554e5a1acaca9aef37f27949 -ra49bd0780d97bb4ce04a9d7b128a6e3c2df044e1 --- firmware/source/adc.c (.../adc.c) (revision 6d2d8f0267c57135554e5a1acaca9aef37f27949) +++ firmware/source/adc.c (.../adc.c) (revision a49bd0780d97bb4ce04a9d7b128a6e3c2df044e1) @@ -86,7 +86,7 @@ adcREG1->CLOCKCR = 25U; /** - Setup memory boundaries */ - adcREG1->BNDCR = (uint32)((uint32)0U << 16U) | (0U + 3U); + adcREG1->BNDCR = (uint32)((uint32)0U << 16U) | (0U + 11U); adcREG1->BNDEND = (adcREG1->BNDEND & 0xFFFF0000U) | (2U); /** - Setup event group conversion mode @@ -173,13 +173,13 @@ adcREG1->EVTOUT = 0U; /** - ADC1 EVT pin direction */ - adcREG1->EVTDIR = 1U; + adcREG1->EVTDIR = 0U; /** - ADC1 EVT pin open drain enable */ adcREG1->EVTPDR = 0U; /** - ADC1 EVT pin pullup / pulldown selection */ - adcREG1->EVTPSEL = 0U; + adcREG1->EVTPSEL = 1U; /** - ADC1 EVT pin pullup / pulldown enable*/ adcREG1->EVTDIS = 0U; @@ -233,28 +233,28 @@ 0x00000000U | 0x00000000U, 0x00000001U | + 0x00000002U | + 0x00000004U | + 0x00000008U | 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | + 0x00000020U | + 0x00000040U | 0x00000080U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | - 0x00000000U | + 0x00000100U | + 0x00000200U | + 0x00000400U | + 0x00000800U | + 0x00001000U | + 0x00002000U | + 0x00004000U | + 0x00008000U | 0x00010000U | 0x00020000U | 0x00040000U | 0x00080000U | + 0x00100000U | + 0x00200000U | 0x00000000U | - 0x00000000U | - 0x00000000U | 0x00000000U, 0x00000000U | 0x00000000U | @@ -334,7 +334,7 @@ static const uint32 s_adcFiFoSize[2U][3U] = { {0U, - 6U, + 21U, 32U}, {16U, 16U,