SHARE
TWEET

Untitled

a guest Nov 14th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * This file defines the hardware pin assignment for the microprocessor.
  3.  * You can see which gpio pins are connected to which hardware components.
  4.  *
  5.  * @author: Jonathan Müller-Boruttau, Nadja Peters nadja.peters@tum.de (RCS, TUM)
  6.  */
  7. #include "FreeRTOS.h"
  8. #include "semphr.h"
  9. #include "queue.h"
  10.  
  11. #ifndef ESPL_functions_INCLUDED
  12. #define ESPL_functions_INCLUDED
  13.  
  14. // Buttons
  15. #define ESPL_Register_Button_A GPIOE
  16. #define ESPL_Register_Button_B GPIOE
  17. #define ESPL_Register_Button_C GPIOE
  18. #define ESPL_Register_Button_D GPIOE
  19. #define ESPL_Register_Button_E GPIOA
  20. #define ESPL_Register_Button_K GPIOE
  21.  
  22. #define ESPL_Pin_Button_A   GPIO_Pin_6
  23. #define ESPL_Pin_Button_B   GPIO_Pin_4
  24. #define ESPL_Pin_Button_C   GPIO_Pin_5
  25. #define ESPL_Pin_Button_D   GPIO_Pin_2
  26. #define ESPL_Pin_Button_E   GPIO_Pin_0
  27. #define ESPL_Pin_Button_K   GPIO_Pin_3
  28.  
  29. #define ESPL_Pins_GPIOE GPIO_Pin_6|GPIO_Pin_4|GPIO_Pin_5|GPIO_Pin_2|GPIO_Pin_3
  30. #define ESPL_Pins_GPIOA GPIO_Pin_0
  31.  
  32. // Joysticks
  33. #define ESPL_Register_Joystick_1 GPIOF
  34. #define ESPL_Pin_Joystick_1 GPIO_Pin_6
  35. #define ESPL_ADC_Joystick_1 ADC3
  36. #define ESPL_Channel_Joystick_1 ADC_Channel_4
  37.  
  38. #define ESPL_Register_Joystick_2 GPIOA
  39. #define ESPL_Pin_Joystick_2 GPIO_Pin_5
  40. #define ESPL_ADC_Joystick_2 ADC1
  41. #define ESPL_Channel_Joystick_2 ADC_Channel_5
  42.  
  43. #define ESPL_Register_VBat GPIOC
  44. #define ESPL_Pin_VBat GPIO_Pin_3
  45. #define ESPL_ADC_VBat ADC2
  46. #define ESPL_Channel_VBat ADC_Channel_13
  47.  
  48. extern QueueHandle_t ESPL_RxQueue;
  49. extern SemaphoreHandle_t ESPL_DisplayReady;
  50.  
  51. extern uint16_t current_layer;
  52.  
  53. void USART1_IRQHandler(void);
  54. void LTDC_IRQHandler(void);
  55.  
  56. void UART_SendData(uint8_t data);
  57. void ESPL_SystemInit(void);
  58. void ESPL_DrawLayer(void);
  59. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top