blob: c8005c3c096a6263a8e1e2c0b53020f5bf24bba7 [file] [log] [blame]
Brian Silverman2df84412013-12-10 14:00:40 -08001This file documents what code is using which peripherial(s), priorities when
2applicable, and which file(s) the code is in. The purpose is to make assigning
3priorities to everything else easier because the relative priorities of
4everything is what matters; the absolute priority is meaningless. It also helps
5with choosing things like timers.
6
7[BBB communication]
Brian Silvermandf49fe32013-12-11 14:21:37 -08008uart_common
9 USART1
10uart
Brian Silverman2df84412013-12-10 14:00:40 -080011 USART1_IRQ:3
Brian Silvermandf49fe32013-12-11 14:21:37 -080012uart_dma
Brian Silverman2df84412013-12-10 14:00:40 -080013 DMA2.7:2
Brian Silverman95244d82013-12-14 12:15:46 -080014 DMA2.7_IRQ:8
Brian Silvermandf49fe32013-12-11 14:21:37 -080015uart_byte
16 TIM7
Brian Silverman2df84412013-12-10 14:00:40 -080017
18[gyro communication]
Brian Silverman18b01642013-12-13 21:12:25 -080019gyro
20 SPI3
21 SPI3_IRQ:4
Brian Silverman95244d82013-12-14 12:15:46 -080022 TIM13
23 TIM13_IRQ:5 (aka TIM8_UP)
Brian Silverman2df84412013-12-10 14:00:40 -080024
25[ADC communication]
Brian Silverman95244d82013-12-14 12:15:46 -080026analog
27 SPI2
28 SPI2_IRQ:6
29 TIM14
30 TIM14_IRQ:6 (aka TIM8_TRG_COM)
Brian Silverman2df84412013-12-10 14:00:40 -080031
32[encoders]
Brian Silvermandf49fe32013-12-11 14:21:37 -080033encoder
Brian Silvermand4a64d92013-12-25 15:52:59 -080034 TIM2,TIM3,TIM4,TIM5,TIM8
Brian Silverman25a06d92013-12-15 16:28:52 -080035 EXTI0,EXTI1,EXTI3
36 EXTI0_IRQ:0,EXTI1_IRQ:0,EXTI3_IRQ:0
37 TIM9 (for its input capture 1)
38 TIM9_IRQ:0 (aka TIM1_BRK)
Brian Silvermand4a64d92013-12-25 15:52:59 -080039 TIM1 (for its input capture 1)
40 TIM1_CC_IRQ:0
41 TIM3 (for its input capture 3)
42 TIM3_IRQ:0
Brian Silverman1b6fbd02013-12-12 18:08:47 -080043
Brian Silverman25a06d92013-12-15 16:28:52 -080044[digital inputs]
45digital
46 EXTI2,EXTI4-15
47 EXTI2_IRQ:1,EXTI4-15_IRQ:1
Brian Silverman2df84412013-12-10 14:00:40 -080048
49[sensor packet sending]
Brian Silvermandf49fe32013-12-11 14:21:37 -080050fill_packet
Brian Silverman2df84412013-12-10 14:00:40 -080051 TIM6
Brian Silverman1b6fbd02013-12-12 18:08:47 -080052
53[utilities]
54crc
Brian Silverman2df84412013-12-10 14:00:40 -080055 CRC
Brian Silverman78670262014-01-17 23:40:47 -080056
57[robots]
58robot_comp
59 TIM11
Brian Silverman0bca3ba2014-03-26 14:07:55 -070060 TIM11_IRQ:1 (aka TIM1_TRG_COM)