mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-16 13:42:16 -04:00
Unify duplicated code between touch_adc.cpp and rssi.cpp.
Also remove comments and dead code.
This commit is contained in:
parent
c142b1bcfc
commit
f360c01ff3
2 changed files with 2 additions and 23 deletions
|
@ -29,8 +29,6 @@
|
|||
#include "hal.h"
|
||||
using namespace lpc43xx;
|
||||
|
||||
// #include "hackrf_gpio.hpp"
|
||||
|
||||
#include "hackrf_hal.hpp"
|
||||
using namespace hackrf::one;
|
||||
|
||||
|
@ -63,8 +61,6 @@ void init() {
|
|||
adc0.interrupts_disable();
|
||||
adc0.power_up(adc0_config);
|
||||
adc0.interrupts_enable(adc0_interrupt_mask);
|
||||
|
||||
//nvicEnableVector(ADC0_IRQn, CORTEX_PRIORITY_MASK(LPC_ADC0_IRQ_PRIORITY));
|
||||
}
|
||||
|
||||
void start() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue