Skip to content

Commit

Permalink
Trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
7134956 committed Dec 13, 2015
1 parent fd3bd21 commit 503689d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion main/src/led.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef _LED_H_
#define _LED_H_

#include "stm32f10x_gpio.h"

/***************************************************************************//**
/*******************************************************************************
* Declare function prototypes
******************************************************************************/
void LED_init(void);
Expand All @@ -10,3 +13,5 @@ void reset_leds(uint8_t);
//------------------------------------------------------------------------------
#define LED_BLUE 0x2
#define PIN_LED_BLUE GPIO_Pin_13

#endif /* _LED_H_ */
6 changes: 3 additions & 3 deletions main/src/spi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SPI_H
#define SPI_H
#ifndef _SPI_H_
#define _SPI_H_

#include "stm32f10x_spi.h"
void SPIInit(uint8_t);
Expand All @@ -13,4 +13,4 @@ void SPIInit(uint8_t);
#define A0_HIGH() GPIO_SetBits (GPIOA, GPIO_Pin_4)
#define A0_LOW() GPIO_ResetBits (GPIOA, GPIO_Pin_4)

#endif
#endif /* _SPI_H_ */

0 comments on commit 503689d

Please sign in to comment.