Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __MAIN_H
- #define __MAIN_H
- #include "stm32f10x.h"
- #include "stdbool.h"
- #include "string.h"
- #include "stdlib.h"
- #define DELAY_CYCLES 1000000
- #define RX_BUFF_SIZE 256
- #define LD_A() GPIOA->BSRR |= GPIO_BSRR_BR9
- #define CLR_A() GPIOA->BSRR |= GPIO_BSRR_BR10
- #define LD_NA() GPIOA->BSRR |= GPIO_BSRR_BS9
- #define CLR_NA() GPIOA->BSRR |= GPIO_BSRR_BS10
- void delay(uint32_t cycles);
- void executeCommand(void);
- void initOutputPorts(void);
- void initUSART2(void);
- void Init_SPI(void);
- void Spi_Write_Data(uint16_t);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement