Skip to content

Commit 2de0066

Browse files
committed
remove dead code
1 parent 58a6b3f commit 2de0066

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

cores/nRF5/wiring_analog_nRF52.c

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,38 +33,14 @@ static uint32_t saadcGain = SAADC_CH_CONFIG_GAIN_Gain1_6;
3333

3434
static bool saadcBurst = SAADC_CH_CONFIG_BURST_Disabled;
3535

36-
#if 0 // Note: Adafruit use seperated HardwarePWM class
37-
#define PWM_COUNT 3
38-
39-
static NRF_PWM_Type* pwms[PWM_COUNT] = {
40-
NRF_PWM0,
41-
NRF_PWM1,
42-
NRF_PWM2
43-
};
44-
45-
static uint32_t pwmChannelPins[PWM_COUNT] = {
46-
0xFFFFFFFF,
47-
0xFFFFFFFF,
48-
0xFFFFFFFF
49-
};
50-
static uint16_t pwmChannelSequence[PWM_COUNT];
51-
#endif
36+
// Note: Adafruit use seperated HardwarePWM class
5237

5338
static int readResolution = 10;
54-
//static int writeResolution = 8;
55-
5639
void analogReadResolution( int res )
5740
{
5841
readResolution = res;
5942
}
6043

61-
#if 0
62-
void analogWriteResolution( int res )
63-
{
64-
writeResolution = res;
65-
}
66-
#endif
67-
6844
static inline uint32_t mapResolution( uint32_t value, uint32_t from, uint32_t to )
6945
{
7046
if ( from == to )

0 commit comments

Comments
 (0)