diff options
author | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
commit | ea807de65b0485ac58b6eae576209c64d4d5c4e9 (patch) | |
tree | b4264d20e1d700cfd9e0ece9d847a825dd1dfc03 /Libraries/LED_Driver/led_driver_config.h | |
parent | dd01e7ed22cea652061f0d12cecf929e04b285e9 (diff) |
Split app code and third party libraries
Diffstat (limited to 'Libraries/LED_Driver/led_driver_config.h')
-rw-r--r-- | Libraries/LED_Driver/led_driver_config.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Libraries/LED_Driver/led_driver_config.h b/Libraries/LED_Driver/led_driver_config.h deleted file mode 100644 index 39927ec..0000000 --- a/Libraries/LED_Driver/led_driver_config.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef LED_DRIVER_CONFIG_INCLUDED -#define LED_DRIVER_CONFIG_INCLUDED - -#include "stm32f0xx_conf.h" - -/* Communication boards SPIx Interface */ -#define LED_SPIx SPI2 -#define LED_SPIx_CLK RCC_APB1Periph_SPI2 -#define LED_SPIx_IRQn SPI2_IRQn -#define LED_SPIx_IRQHandler SPI2_IRQHandler - -#define LED_SPIx_SCK_PIN GPIO_Pin_10 -#define LED_SPIx_SCK_GPIO_PORT GPIOB -#define LED_SPIx_SCK_GPIO_CLK RCC_AHBPeriph_GPIOB -#define LED_SPIx_SCK_SOURCE GPIO_PinSource10 -#define LED_SPIx_SCK_AF GPIO_AF_5 - -#define LED_SPIx_MOSI_PIN GPIO_Pin_15 -#define LED_SPIx_MOSI_GPIO_PORT GPIOB -#define LED_SPIx_MOSI_GPIO_CLK RCC_AHBPeriph_GPIOB -#define LED_SPIx_MOSI_SOURCE GPIO_PinSource15 -#define LED_SPIx_MOSI_AF GPIO_AF_0 - -#define LED_SPIx_ST_PIN GPIO_Pin_9 -#define LED_SPIx_ST_GPIO_PORT GPIOB -#define LED_SPIx_ST_GPIO_CLK RCC_AHBPeriph_GPIOA -#define LED_SPIx_ST_SOURCE GPIO_PinSource9 -#define LED_SPIx_ST_AF GPIO_AF_5 - -#define LED_SPIx_RCC_APBxPeriphClockCmd RCC_APB1PeriphClockCmd - -// Определения для таймера LedRgbDriver ------------------------------------- // -#define LED_TIMx TIM3 -#define LED_TIM_IRQHandler TIM3_IRQHandler -#define LED_TIM_RCC RCC_APB1Periph_TIM3 -#define LED_TIM_IRQx TIM3_IRQn -#define LED_RCC_APBxPeriphClockCmd RCC_APB1PeriphClockCmd - -#define LED_ST_PIN_SET GPIO_SetBits ( LED_SPIx_ST_GPIO_PORT, LED_SPIx_ST_PIN ) -#define LED_ST_PIN_RESET GPIO_ResetBits ( LED_SPIx_ST_GPIO_PORT, LED_SPIx_ST_PIN ) - -void LED_Driver_Config ( void ); - -#endif //LED_DRIVER_CONFIG_INCLUDED |