Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.54 KB | None | 0 0
  1. #ifndef __MAIN_H
  2. #define __MAIN_H
  3.  
  4. #include "stm32f10x.h"
  5. #include "stdbool.h"
  6. #include "string.h"    
  7. #include "stdlib.h"
  8.  
  9. #define DELAY_CYCLES 1000000
  10. #define RX_BUFF_SIZE 256
  11. #define LD_A()  GPIOA->BSRR |= GPIO_BSRR_BR9
  12. #define CLR_A() GPIOA->BSRR |= GPIO_BSRR_BR10
  13. #define LD_NA() GPIOA->BSRR |= GPIO_BSRR_BS9
  14. #define CLR_NA()    GPIOA->BSRR |= GPIO_BSRR_BS10
  15.  
  16. void delay(uint32_t cycles);
  17. void executeCommand(void);
  18. void initOutputPorts(void);
  19. void initUSART2(void);
  20. void Init_SPI(void);
  21. void Spi_Write_Data(uint16_t);
  22.  
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement