-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[components][drivers] change name: encoder -> pulse_encoder
- Loading branch information
1 parent
05b1dff
commit b76d3da
Showing
19 changed files
with
522 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
bsp/stm32/libraries/HAL_Drivers/config/f1/encoder_config.h
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
bsp/stm32/libraries/HAL_Drivers/config/f1/pulse_encoder_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright (c) 2006-2018, RT-Thread Development Team | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Change Logs: | ||
* Date Author Notes | ||
* 2019-08-23 balanceTWK first version | ||
*/ | ||
|
||
#ifndef __PULSE_ENCODER_CONFIG_H__ | ||
#define __PULSE_ENCODER_CONFIG_H__ | ||
|
||
#include <rtthread.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER1 | ||
#ifndef PULSE_ENCODER1_CONFIG | ||
#define PULSE_ENCODER1_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM1, \ | ||
.name = "pulse1" \ | ||
} | ||
#endif /* PULSE_ENCODER1_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER1 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER2 | ||
#ifndef PULSE_ENCODER2_CONFIG | ||
#define PULSE_ENCODER2_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM2, \ | ||
.name = "pulse2" \ | ||
} | ||
#endif /* PULSE_ENCODER2_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER2 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER3 | ||
#ifndef PULSE_ENCODER3_CONFIG | ||
#define PULSE_ENCODER3_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM3, \ | ||
.name = "pulse3" \ | ||
} | ||
#endif /* PULSE_ENCODER3_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER3 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER4 | ||
#ifndef PULSE_ENCODER4_CONFIG | ||
#define PULSE_ENCODER4_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM4, \ | ||
.name = "pulse4" \ | ||
} | ||
#endif /* PULSE_ENCODER4_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER4 */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __PULSE_ENCODER_CONFIG_H__ */ |
64 changes: 0 additions & 64 deletions
64
bsp/stm32/libraries/HAL_Drivers/config/f4/encoder_config.h
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
bsp/stm32/libraries/HAL_Drivers/config/f4/pulse_encoder_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright (c) 2006-2018, RT-Thread Development Team | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Change Logs: | ||
* Date Author Notes | ||
* 2019-08-23 balanceTWK first version | ||
*/ | ||
|
||
#ifndef __PULSE_ENCODER_CONFIG_H__ | ||
#define __PULSE_ENCODER_CONFIG_H__ | ||
|
||
#include <rtthread.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER1 | ||
#ifndef PULSE_ENCODER1_CONFIG | ||
#define PULSE_ENCODER1_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM1, \ | ||
.name = "pulse1" \ | ||
} | ||
#endif /* PULSE_ENCODER1_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER1 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER2 | ||
#ifndef PULSE_ENCODER2_CONFIG | ||
#define PULSE_ENCODER2_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM2, \ | ||
.name = "pulse2" \ | ||
} | ||
#endif /* PULSE_ENCODER2_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER2 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER3 | ||
#ifndef PULSE_ENCODER3_CONFIG | ||
#define PULSE_ENCODER3_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM3, \ | ||
.name = "pulse3" \ | ||
} | ||
#endif /* PULSE_ENCODER3_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER3 */ | ||
|
||
#ifdef BSP_USING_PULSE_ENCODER4 | ||
#ifndef PULSE_ENCODER4_CONFIG | ||
#define PULSE_ENCODER4_CONFIG \ | ||
{ \ | ||
.tim_handler.Instance = TIM4, \ | ||
.name = "pulse4" \ | ||
} | ||
#endif /* PULSE_ENCODER4_CONFIG */ | ||
#endif /* BSP_USING_PULSE_ENCODER4 */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __PULSE_ENCODER_CONFIG_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.