Skip to content

Commit 584fc3e

Browse files
committed
more cleaner
1 parent 69ba31b commit 584fc3e

File tree

9 files changed

+5
-11
lines changed

9 files changed

+5
-11
lines changed

board/bootstub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#define MIN_VERSION 2
55

66
// ********************* Includes *********************
7-
#include "platform_definitions.h"
87
#include "board_config.h"
98
#include "stm_config.h"
109

board/drivers/interrupts.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include "interrupts_declarations.h"
2-
#include "critical_declarations.h"
3-
#include "faults_declarations.h"
42

53
void unused_interrupt_handler(void) {
64
// Something is wrong if this handler is called!

board/drivers/led.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "usb_declarations.h"
21

32
#define LED_RED 0U
43
#define LED_GREEN 1U

board/drivers/usb.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#include "usb_declarations.h"
22

3-
#include <stddef.h>
4-
5-
#include "comms_definitions.h"
6-
#include "critical_declarations.h"
7-
83
static uint8_t response[USBPACKET_MAX_SIZE];
94

105
// current packet

board/stm32f4/lluart.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ***************************** Interrupt handlers *****************************
2+
23
void uart_tx_ring(uart_ring *q){
34
ENTER_CRITICAL();
45
// Send out next byte of TX buffer

board/stm32h7/interrupt_handlers.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// ********************* Bare interrupt handlers *********************
22
// Interrupts for STM32H7x5
3-
#include "drivers/interrupts_declarations.h"
43

54
void WWDG_IRQHandler(void) {handle_interrupt(WWDG_IRQn);}
65
void PVD_AVD_IRQHandler(void) {handle_interrupt(PVD_AVD_IRQn);}

board/utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#ifndef UTILS_DEFINITION_H
22
#define UTILS_DEFINITION_H
3+
#include <stdint.h>
34
// cppcheck-suppress-macro misra-c2012-1.2; allow __typeof__ extension
45
#define MIN(a, b) ({ \
56
__typeof__ (a) _a = (a); \

include/board/bootstub_definitions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "platform_definitions.h"
2+
#include "utils.h"
13
// ******************** Prototypes ********************
24
void print(const char *a){ UNUSED(a); }
35
void puth(uint8_t i){ UNUSED(i); }

include/board/drivers/gpio_declarations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ void set_gpio_pullup(GPIO_TypeDef *GPIO, unsigned int pin, unsigned int mode);
2727
int get_gpio_input(const GPIO_TypeDef *GPIO, unsigned int pin);
2828
void gpio_set_all_output(gpio_t *pins, uint8_t num_pins, bool enabled);
2929
void gpio_set_bitmask(gpio_t *pins, uint8_t num_pins, uint32_t bitmask);
30-
bool detect_with_pull(GPIO_TypeDef *GPIO, int pin, int mode);
30+
bool detect_with_pull(GPIO_TypeDef *GPIO, int pin, int mode);

0 commit comments

Comments
 (0)