dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_ws2811_cfg.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  *
27  * Additional note on redistribution: The copyright and license notices above
28  * must be maintained in each individual source file that is a derivative work
29  * of this source file; otherwise redistribution is prohibited.
30  */
31 
32 #ifndef _PIOS_WS2811_TARGET_H
33 #define _PIOS_WS2811_TARGET_H
34 
35 #include <stdint.h>
36 #include <stdio.h>
37 
38 struct pios_ws2811_cfg {
39  TIM_TypeDef *timer;
40  TIM_TimeBaseInitTypeDef clock_cfg;
41 
43 
44  NVIC_InitTypeDef interrupt;
45 
46  GPIO_TypeDef *led_gpio;
47 
48  uint16_t gpio_pin;
49 
50  DMA_Stream_TypeDef *bit_set_dma_stream;
52 
53  DMA_Stream_TypeDef *bit_clear_dma_stream;
56 };
57 
63 #endif /* _PIOS_WS2811_TARGET_H */
uint32_t bit_clear_dma_tcif
GPIO_TypeDef * led_gpio
DMA_Stream_TypeDef * bit_clear_dma_stream
uint32_t bit_set_dma_channel
TIM_TypeDef * timer
NVIC_InitTypeDef interrupt
DMA_Stream_TypeDef * bit_set_dma_stream
uint32_t bit_clear_dma_channel
TIM_TimeBaseInitTypeDef clock_cfg