mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
boards/nucleo64: clean motor_driver old configuration
The motor_driver module has been reworked in a previous commit to be compliant with RIOT device driver guide. Thus declaration in board.h is no more needed and should not work anymore. Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
This commit is contained in:
parent
66dfd2a4d1
commit
f33b5097ce
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "board_nucleo.h"
|
#include "board_nucleo.h"
|
||||||
#include "arduino_pinmap.h"
|
#include "arduino_pinmap.h"
|
||||||
#include "motor_driver.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -52,37 +51,6 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
|
||||||
* @name Describe DC motors with PWM channel and GPIOs
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
static const motor_driver_config_t motor_driver_config[] = {
|
|
||||||
{
|
|
||||||
.pwm_dev = 1,
|
|
||||||
.mode = MOTOR_DRIVER_1_DIR,
|
|
||||||
.mode_brake = MOTOR_BRAKE_HIGH,
|
|
||||||
.pwm_mode = PWM_LEFT,
|
|
||||||
.pwm_frequency = 20000U,
|
|
||||||
.pwm_resolution = 2250U,
|
|
||||||
.nb_motors = 1,
|
|
||||||
.motors = {
|
|
||||||
{
|
|
||||||
.pwm_channel = 0,
|
|
||||||
.gpio_enable = 0,
|
|
||||||
.gpio_dir0 = ARDUINO_PIN_15,
|
|
||||||
.gpio_dir1_or_brake = 0,
|
|
||||||
.gpio_dir_reverse = 0,
|
|
||||||
.gpio_enable_invert = 0,
|
|
||||||
.gpio_brake_invert = 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.cb = NULL,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
#define MOTOR_DRIVER_NUMOF ARRAY_SIZE(motor_driver_config)
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Describe MRF24J40 radio
|
* @name Describe MRF24J40 radio
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -14,7 +14,6 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_PROVIDED += periph_qdec
|
FEATURES_PROVIDED += periph_qdec
|
||||||
|
|
||||||
# Various other features (if any)
|
# Various other features (if any)
|
||||||
FEATURES_PROVIDED += motor_driver
|
|
||||||
FEATURES_PROVIDED += riotboot
|
FEATURES_PROVIDED += riotboot
|
||||||
|
|
||||||
# load the common Makefile.features for Nucleo boards
|
# load the common Makefile.features for Nucleo boards
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user