nrf: Rename MICROPY_PY_MACHINE_TIMER to MICROPY_PY_MACHINE_TIMER_NRF.
So that it doesn't clash with the extmod version. Also make the default for this enabled, so that most boards do not need to configure it. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
65fa7fd8bb
commit
e8f5cfe0e1
|
@ -33,7 +33,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (0)
|
#define MICROPY_PY_MACHINE_ADC (0)
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_PWM (1)
|
#define MICROPY_PY_MACHINE_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#define MICROPY_PY_MUSIC (1)
|
#define MICROPY_PY_MUSIC (1)
|
||||||
#define MICROPY_PY_MACHINE_SOFT_PWM (1)
|
#define MICROPY_PY_MACHINE_SOFT_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (0)
|
#define MICROPY_PY_MACHINE_HW_SPI (0)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (0)
|
#define MICROPY_PY_MACHINE_I2C (0)
|
||||||
#define MICROPY_PY_MACHINE_ADC (0)
|
#define MICROPY_PY_MACHINE_ADC (0)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (0)
|
#define MICROPY_PY_MACHINE_HW_SPI (0)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
#define MICROPY_PY_MACHINE_HW_PWM (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (0)
|
#define MICROPY_PY_MACHINE_TIMER_NRF (0)
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (0)
|
#define MICROPY_PY_MACHINE_ADC (0)
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
#define MICROPY_PY_MACHINE_UART (1)
|
#define MICROPY_PY_MACHINE_UART (1)
|
||||||
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
#define MICROPY_PY_MACHINE_HW_SPI (1)
|
||||||
#define MICROPY_PY_MACHINE_TIMER (1)
|
|
||||||
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
#define MICROPY_PY_MACHINE_RTCOUNTER (1)
|
||||||
#define MICROPY_PY_MACHINE_I2C (1)
|
#define MICROPY_PY_MACHINE_I2C (1)
|
||||||
#define MICROPY_PY_MACHINE_ADC (1)
|
#define MICROPY_PY_MACHINE_ADC (1)
|
||||||
|
|
|
@ -156,7 +156,7 @@ soft_reset:
|
||||||
rtc_init0();
|
rtc_init0();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MICROPY_PY_MACHINE_TIMER
|
#if MICROPY_PY_MACHINE_TIMER_NRF
|
||||||
timer_init0();
|
timer_init0();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
|
||||||
#if MICROPY_PY_MACHINE_RTCOUNTER
|
#if MICROPY_PY_MACHINE_RTCOUNTER
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RTCounter), MP_ROM_PTR(&machine_rtcounter_type) },
|
{ MP_ROM_QSTR(MP_QSTR_RTCounter), MP_ROM_PTR(&machine_rtcounter_type) },
|
||||||
#endif
|
#endif
|
||||||
#if MICROPY_PY_MACHINE_TIMER
|
#if MICROPY_PY_MACHINE_TIMER_NRF
|
||||||
{ MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&machine_timer_type) },
|
{ MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&machine_timer_type) },
|
||||||
#endif
|
#endif
|
||||||
#if MICROPY_PY_MACHINE_HW_PWM
|
#if MICROPY_PY_MACHINE_HW_PWM
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "nrfx_timer.h"
|
#include "nrfx_timer.h"
|
||||||
|
|
||||||
#if MICROPY_PY_MACHINE_TIMER
|
#if MICROPY_PY_MACHINE_TIMER_NRF
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
TIMER_MODE_ONESHOT,
|
TIMER_MODE_ONESHOT,
|
||||||
|
@ -243,4 +243,4 @@ MP_DEFINE_CONST_OBJ_TYPE(
|
||||||
locals_dict, &machine_timer_locals_dict
|
locals_dict, &machine_timer_locals_dict
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // MICROPY_PY_MACHINE_TIMER
|
#endif // MICROPY_PY_MACHINE_TIMER_NRF
|
||||||
|
|
|
@ -196,8 +196,8 @@
|
||||||
#define MICROPY_PY_MACHINE_SOFT_PWM (0)
|
#define MICROPY_PY_MACHINE_SOFT_PWM (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MICROPY_PY_MACHINE_TIMER
|
#ifndef MICROPY_PY_MACHINE_TIMER_NRF
|
||||||
#define MICROPY_PY_MACHINE_TIMER (0)
|
#define MICROPY_PY_MACHINE_TIMER_NRF (1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MICROPY_PY_MACHINE_RTCOUNTER
|
#ifndef MICROPY_PY_MACHINE_RTCOUNTER
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
#define NRFX_RTC1_ENABLED 1
|
#define NRFX_RTC1_ENABLED 1
|
||||||
#define NRFX_RTC2_ENABLED (!NRF51) && (!NRF9160_XXAA)
|
#define NRFX_RTC2_ENABLED (!NRF51) && (!NRF9160_XXAA)
|
||||||
|
|
||||||
#define NRFX_TIMER_ENABLED (MICROPY_PY_MACHINE_TIMER)
|
#define NRFX_TIMER_ENABLED (MICROPY_PY_MACHINE_TIMER_NRF)
|
||||||
#define NRFX_TIMER0_ENABLED 1
|
#define NRFX_TIMER0_ENABLED 1
|
||||||
#define NRFX_TIMER1_ENABLED (!MICROPY_PY_MACHINE_SOFT_PWM)
|
#define NRFX_TIMER1_ENABLED (!MICROPY_PY_MACHINE_SOFT_PWM)
|
||||||
#define NRFX_TIMER2_ENABLED 1
|
#define NRFX_TIMER2_ENABLED 1
|
||||||
|
|
Loading…
Reference in New Issue