Skip to content

Commit 2e978d8

Browse files
committed
Refactored headers
1 parent a28305e commit 2e978d8

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

firmware/fsmc_nand.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "fsmc_nand.h"
77
#include "chip_db.h"
8+
#include <stm32f10x.h>
89

910
#define FSMC_Bank_NAND FSMC_Bank2_NAND
1011
#define Bank_NAND_ADDR Bank2_NAND_ADDR

firmware/fsmc_nand.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#ifndef _FSMC_NAND_H_
77
#define _FSMC_NAND_H_
88

9-
#include "stm32f10x.h"
10-
119
typedef struct
1210
{
1311
uint8_t maker_id;

firmware/led.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include "led.h"
7+
#include <stm32f10x.h>
78

89
void led_init()
910
{

firmware/led.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define _LED_H_
88

99
#include <stdbool.h>
10-
#include "stm32f10x.h"
1110

1211
void led_init();
1312
void led_wr_set(bool on);

firmware/main.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,17 @@
33
* it under the terms of the GNU General Public License version 3.
44
*/
55

6-
/* NAND */
76
#include "fsmc_nand.h"
87
#include "chip_db.h"
98
#include "nand_programmer.h"
10-
/* SPL */
11-
#include <stm32f10x.h>
12-
/* USB */
139
#include "usb.h"
1410
#include "cdc.h"
15-
/* LED */
1611
#include "led.h"
17-
/* UART */
1812
#include "uart.h"
19-
/* JTAG */
2013
#include "jtag.h"
21-
/* Version */
2214
#include "version.h"
23-
/* Utils */
2415
#include "log.h"
25-
/* STD */
16+
#include <stm32f10x.h>
2617
#include <stdio.h>
2718
#include <string.h>
2819
#include <stddef.h>

firmware/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* it under the terms of the GNU General Public License version 3.
44
*/
55

6-
#include <stm32f10x.h>
76
#include "uart.h"
7+
#include <stm32f10x.h>
88

99
void uart_init()
1010
{

0 commit comments

Comments
 (0)