38void _native_LED_GREEN_OFF(
void);
39void _native_LED_GREEN_ON(
void);
40void _native_LED_GREEN_TOGGLE(
void);
41void _native_LED_RED_OFF(
void);
42void _native_LED_RED_ON(
void);
43void _native_LED_RED_TOGGLE(
void);
45#define LED0_ON (_native_LED_RED_ON())
46#define LED0_OFF (_native_LED_RED_OFF())
47#define LED0_TOGGLE (_native_LED_RED_TOGGLE())
48#define LED1_ON (_native_LED_GREEN_ON())
49#define LED1_OFF (_native_LED_GREEN_OFF())
50#define LED1_TOGGLE (_native_LED_GREEN_TOGGLE())
53#if defined(MODULE_MTD) || DOXYGEN
59#if defined(MODULE_FATFS) || defined(MODULE_LWEXT4)
60#define MTD_PAGE_SIZE (512)
62#define MTD_PAGE_SIZE (256)
65#ifndef MTD_SECTOR_SIZE
66#if defined(MODULE_FATFS) || defined(MODULE_LWEXT4)
67#define MTD_SECTOR_SIZE (512)
69#define MTD_SECTOR_SIZE (4096)
73#if defined(MODULE_FATFS) || defined(MODULE_LWEXT4)
74#define MTD_SECTOR_NUM (32768)
76#define MTD_SECTOR_NUM (2048)
82#define MTD_WRITE_SIZE (1)
84#ifndef MTD_NATIVE_FILENAME
85#define MTD_NATIVE_FILENAME "MEMORY.bin"
90#define MTD_0 mtd_dev_get(0)
98#define FS_NATIVE_DIR "native"
102#if defined(MODULE_SPIFFS) || DOXYGEN
108#ifndef SPIFFS_READ_ONLY
109#define SPIFFS_READ_ONLY (0)
111#ifndef SPIFFS_SINGLETON
112#define SPIFFS_SINGLETON (0)
114#ifndef SPIFFS_HAL_CALLBACK_EXTRA
115#define SPIFFS_HAL_CALLBACK_EXTRA (1)
118#define SPIFFS_CACHE (1)
121#if SPIFFS_SINGLETON == 1
123#ifndef SPIFFS_CFG_PHYS_SZ
124#define SPIFFS_CFG_PHYS_SZ(ignore) (MTD_SECTOR_SIZE * MTD_SECTOR_NUM)
126#ifndef SPIFFS_CFG_PHYS_ERASE_SZ
127#define SPIFFS_CFG_PHYS_ERASE_SZ(ignore) (MTD_SECTOR_SIZE)
129#ifndef SPIFFS_CFG_PHYS_ADDR
130#define SPIFFS_CFG_PHYS_ADDR(ignore) (0)
132#ifndef SPIFFS_CFG_LOG_PAGE_SZ
133#define SPIFFS_CFG_LOG_PAGE_SZ(ignore) (MTD_PAGE_SIZE)
135#ifndef SPIFFS_CFG_LOG_BLOCK_SZ
136#define SPIFFS_CFG_LOG_BLOCK_SZ(ignore) (MTD_SECTOR_SIZE)
140#if SPIFFS_HAL_CALLBACK_EXTRA == 0
142#ifndef SPIFFS_MTD_DEV
143#define SPIFFS_MTD_DEV (MTD_0)
149#if MODULE_PERIPH_QDEC
159void native_motor_driver_qdec_simulation( \
161 int32_t pwm_duty_cycle);
164#if !(defined __cplusplus) && (defined MODULE_PERIPH_QDEC)
176 .pwm_frequency = 20000U,
177 .pwm_resolution = 1000U,
184 .gpio_dir1_or_brake =
GPIO_PIN(0, 0),
185 .gpio_dir_reverse = 0,
186 .gpio_enable_invert = 0,
187 .gpio_brake_invert = 0,
193 .gpio_dir1_or_brake =
GPIO_PIN(0, 0),
194 .gpio_dir_reverse = 1,
195 .gpio_enable_invert = 0,
196 .gpio_brake_invert = 0,
199 .cb = native_motor_driver_qdec_simulation,
203#define MOTOR_DRIVER_NUMOF ARRAY_SIZE(motor_driver_config)
211#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
212#define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(0)
214#define CONFIG_ZTIMER_USEC_MIN (64)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
unsigned int motor_driver_t
Default motor driver type definition.
@ MOTOR_DRIVER_1_DIR_BRAKE
Single GPIO for direction, \ Single GPIO for BRAKE.
@ MOTOR_BRAKE_LOW
Low stage brake.
High-level driver for DC motors.
Describe DC motor driver with PWM device and motors array.
pwm_t pwm_dev
PWM device driving motors.