Skip to content

Commit 3e0d3d2

Browse files
committed
nrf: clean compiler warnings
1 parent c017f2d commit 3e0d3d2

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

nrf/fatfs_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929

3030
DWORD get_fattime(void) {
3131
// TODO: Implement this function. For now, fake it.
32-
return ((2000 + 2016 - 1980) << 25) | ((12) << 21) | ((4) << 16) | ((00) << 11) | ((18) << 5) | (23 / 2);
32+
return ((2016 - 1980) << 25) | ((12) << 21) | ((4) << 16) | ((00) << 11) | ((18) << 5) | (23 / 2);
3333
}

nrf/hal/hal_adce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const uint32_t hal_adc_input_lookup_pos[] = {
4343
#define HAL_ADCE_PSELP_NOT_CONNECTED (SAADC_CH_PSELP_PSELP_NC << SAADC_CH_PSELP_PSELP_Pos)
4444
#define HAL_ADCE_PSELP_VDD (SAADC_CH_PSELP_PSELP_VDD << SAADC_CH_PSELP_PSELP_Pos)
4545

46-
static const uint32_t hal_adc_input_lookup_neg[] = {
46+
/*static const uint32_t hal_adc_input_lookup_neg[] = {
4747
SAADC_CH_PSELN_PSELN_AnalogInput0 << SAADC_CH_PSELN_PSELN_Pos,
4848
SAADC_CH_PSELN_PSELN_AnalogInput1 << SAADC_CH_PSELN_PSELN_Pos,
4949
SAADC_CH_PSELN_PSELN_AnalogInput2 << SAADC_CH_PSELN_PSELN_Pos,
@@ -52,7 +52,7 @@ static const uint32_t hal_adc_input_lookup_neg[] = {
5252
SAADC_CH_PSELN_PSELN_AnalogInput5 << SAADC_CH_PSELN_PSELN_Pos,
5353
SAADC_CH_PSELN_PSELN_AnalogInput6 << SAADC_CH_PSELN_PSELN_Pos,
5454
SAADC_CH_PSELN_PSELN_AnalogInput7 << SAADC_CH_PSELN_PSELN_Pos
55-
};
55+
};*/
5656

5757
#define HAL_ADCE_PSELN_NOT_CONNECTED (SAADC_CH_PSELN_PSELN_NC << SAADC_CH_PSELN_PSELN_Pos)
5858
#define HAL_ADCE_PSELN_VDD (SAADC_CH_PSELN_PSELN_VDD << SAADC_CH_PSELN_PSELN_Pos)

nrf/modules/machine/pin.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -666,30 +666,30 @@ typedef struct _pin_irq_obj_t {
666666
pin_obj_t pin;
667667
} pin_irq_obj_t;
668668

669-
STATIC const mp_obj_type_t pin_irq_type;
669+
// STATIC const mp_obj_type_t pin_irq_type;
670670

671-
STATIC mp_obj_t pin_irq_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) {
671+
/*STATIC mp_obj_t pin_irq_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) {
672672
pin_irq_obj_t *self = self_in;
673673
(void)self;
674674
return mp_const_none;
675-
}
675+
}*/
676676

677-
STATIC mp_obj_t pin_irq_trigger(size_t n_args, const mp_obj_t *args) {
677+
/*STATIC mp_obj_t pin_irq_trigger(size_t n_args, const mp_obj_t *args) {
678678
pin_irq_obj_t *self = args[0];
679679
(void)self;
680680
return mp_const_none;
681-
}
682-
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pin_irq_trigger_obj, 1, 2, pin_irq_trigger);
681+
}*/
682+
// STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pin_irq_trigger_obj, 1, 2, pin_irq_trigger);
683683

684-
STATIC const mp_rom_map_elem_t pin_irq_locals_dict_table[] = {
685-
{ MP_ROM_QSTR(MP_QSTR_trigger), MP_ROM_PTR(&pin_irq_trigger_obj) },
686-
};
684+
// STATIC const mp_rom_map_elem_t pin_irq_locals_dict_table[] = {
685+
// { MP_ROM_QSTR(MP_QSTR_trigger), MP_ROM_PTR(&pin_irq_trigger_obj) },
686+
// };
687687

688-
STATIC MP_DEFINE_CONST_DICT(pin_irq_locals_dict, pin_irq_locals_dict_table);
688+
// STATIC MP_DEFINE_CONST_DICT(pin_irq_locals_dict, pin_irq_locals_dict_table);
689689

690-
STATIC const mp_obj_type_t pin_irq_type = {
690+
/*STATIC const mp_obj_type_t pin_irq_type = {
691691
{ &mp_type_type },
692692
.name = MP_QSTR_IRQ,
693693
.call = pin_irq_call,
694694
.locals_dict = (mp_obj_dict_t*)&pin_irq_locals_dict,
695-
};
695+
};*/

0 commit comments

Comments
 (0)