1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #11733 from nmeum/fix-native-build

boards/native: fix undefinied reference to qdecs_value
This commit is contained in:
Kaspar Schleiser 2019-07-16 16:42:52 +02:00 committed by GitHub
commit 3f25c43204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,8 @@
#include <board.h> #include <board.h>
#include <log.h> #include <log.h>
#ifdef MODULE_PERIPH_QDEC
extern int32_t qdecs_value[QDEC_NUMOF]; extern int32_t qdecs_value[QDEC_NUMOF];
void native_motor_driver_qdec_simulation( void native_motor_driver_qdec_simulation(
@ -52,3 +54,5 @@ void native_motor_driver_qdec_simulation(
motor_driver, motor_id); motor_driver, motor_id);
} }
} }
#endif /* MODULE_PERIPH_QDEC */

View File

@ -141,7 +141,7 @@ void native_motor_driver_qdec_simulation( \
int32_t pwm_duty_cycle); int32_t pwm_duty_cycle);
/* C++ standard do not support designated initializers */ /* C++ standard do not support designated initializers */
#ifndef __cplusplus #if !(defined __cplusplus) && (defined MODULE_PERIPH_QDEC)
/** /**
* @name Describe DC motors with PWM channel and GPIOs * @name Describe DC motors with PWM channel and GPIOs