Fix RSSI ADC DMA not working bug.

Resolves sharebrained/portapack-hackrf#3
This commit is contained in:
Jared Boone 2015-07-08 15:48:20 -07:00
parent 7962c3d7c6
commit c142b1bcfc

View File

@ -40,7 +40,7 @@ namespace rf {
namespace rssi { namespace rssi {
constexpr uint32_t adc1_sel = (1U << portapack::adc1_rssi_input); constexpr uint32_t adc1_sel = (1U << portapack::adc1_rssi_input);
const auto adc1_interrupt_mask = 0; const auto adc1_interrupt_mask = flp2(adc1_sel);
//constexpr uint32_t adc1_clkdiv = base_apb3_clk_f / adc::clock_rate_max; //constexpr uint32_t adc1_clkdiv = base_apb3_clk_f / adc::clock_rate_max;
constexpr adc::CR adc1_cr { constexpr adc::CR adc1_cr {