Go to the documentation of this file.
42 void _native_LED_GREEN_OFF(
void);
43 void _native_LED_GREEN_ON(
void);
44 void _native_LED_GREEN_TOGGLE(
void);
45 void _native_LED_RED_OFF(
void);
46 void _native_LED_RED_ON(
void);
47 void _native_LED_RED_TOGGLE(
void);
49 #define LED0_ON (_native_LED_RED_ON())
50 #define LED0_OFF (_native_LED_RED_OFF())
51 #define LED0_TOGGLE (_native_LED_RED_TOGGLE())
52 #define LED1_ON (_native_LED_GREEN_ON())
53 #define LED1_OFF (_native_LED_GREEN_OFF())
54 #define LED1_TOGGLE (_native_LED_GREEN_TOGGLE())
57 #if defined(MODULE_MTD) || DOXYGEN
63 #define MTD_PAGE_SIZE (256)
65 #ifndef MTD_SECTOR_SIZE
66 #define MTD_SECTOR_SIZE (4096)
68 #ifndef MTD_SECTOR_NUM
69 #define MTD_SECTOR_NUM (2048)
71 #ifndef MTD_NATIVE_FILENAME
72 #define MTD_NATIVE_FILENAME "MEMORY.bin"
83 #if defined(MODULE_SPIFFS) || DOXYGEN
89 #ifndef SPIFFS_READ_ONLY
90 #define SPIFFS_READ_ONLY (0)
92 #ifndef SPIFFS_SINGLETON
93 #define SPIFFS_SINGLETON (0)
95 #ifndef SPIFFS_HAL_CALLBACK_EXTRA
96 #define SPIFFS_HAL_CALLBACK_EXTRA (1)
99 #define SPIFFS_CACHE (1)
102 #if SPIFFS_SINGLETON == 1
104 #ifndef SPIFFS_CFG_PHYS_SZ
105 #define SPIFFS_CFG_PHYS_SZ(ignore) (MTD_SECTOR_SIZE * MTD_SECTOR_NUM)
107 #ifndef SPIFFS_CFG_PHYS_ERASE_SZ
108 #define SPIFFS_CFG_PHYS_ERASE_SZ(ignore) (MTD_SECTOR_SIZE)
110 #ifndef SPIFFS_CFG_PHYS_ADDR
111 #define SPIFFS_CFG_PHYS_ADDR(ignore) (0)
113 #ifndef SPIFFS_CFG_LOG_PAGE_SZ
114 #define SPIFFS_CFG_LOG_PAGE_SZ(ignore) (MTD_PAGE_SIZE)
116 #ifndef SPIFFS_CFG_LOG_BLOCK_SZ
117 #define SPIFFS_CFG_LOG_BLOCK_SZ(ignore) (MTD_SECTOR_SIZE)
121 #if SPIFFS_HAL_CALLBACK_EXTRA == 0
123 #ifndef SPIFFS_MTD_DEV
124 #define SPIFFS_MTD_DEV (MTD_0)
141 int32_t pwm_duty_cycle);
144 #if !(defined __cplusplus) && (defined MODULE_PERIPH_QDEC)
156 .pwm_frequency = 20000U,
157 .pwm_resolution = 1000U,
164 .gpio_dir1_or_brake =
GPIO_PIN(0, 0),
165 .gpio_dir_reverse = 0,
166 .gpio_enable_invert = 0,
167 .gpio_brake_invert = 0,
173 .gpio_dir1_or_brake =
GPIO_PIN(0, 0),
174 .gpio_dir_reverse = 1,
175 .gpio_enable_invert = 0,
176 .gpio_brake_invert = 0,
183 #define MOTOR_DRIVER_NUMOF ARRAY_SIZE(motor_driver_config)
190 #define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
191 #define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(0)
193 #define CONFIG_ZTIMER_USEC_MIN (64)
High-level driver for DC motors.
pwm_t pwm_dev
PWM device driving motors.
void native_motor_driver_qdec_simulation(const motor_driver_t motor_driver, uint8_t motor_id, int32_t pwm_duty_cycle)
Simulate QDEC on motor_set() calls.
@ MOTOR_BRAKE_LOW
Low stage brake.
unsigned int motor_driver_t
Default motor driver type definition.
@ PWM_LEFT
left aligned PWM
Describe DC motor driver with PWM device and motors array.
mtd_dev_t * mtd0
mtd flash emulation device
@ MOTOR_DRIVER_1_DIR_BRAKE
Single GPIO for direction, \ Single GPIO for BRAKE.
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.