Skip to content

Commit 72a46eb

Browse files
committed
Clean up main.h headers.
1 parent 27f3b26 commit 72a46eb

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

source/daplink/bootloader/main.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @brief
44
*
55
* DAPLink Interface Firmware
6-
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
6+
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
77
* SPDX-License-Identifier: Apache-2.0
88
*
99
* Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -22,11 +22,7 @@
2222
#ifndef MAIN_H
2323
#define MAIN_H
2424

25-
#include "stdint.h"
26-
27-
#ifdef __cplusplus
28-
extern "C" {
29-
#endif
25+
#include <stdint.h>
3026

3127
/**
3228
* @enum main_usb_busy_t
@@ -59,6 +55,10 @@ typedef enum {
5955
MAIN_LED_FLASH_PERMANENT
6056
} main_led_state_t;
6157

58+
#ifdef __cplusplus
59+
extern "C" {
60+
#endif
61+
6262
/**
6363
* Allows other parts of the program to request the device to eject physical media
6464
* @param none

source/daplink/interface/main.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @brief
44
*
55
* DAPLink Interface Firmware
6-
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
6+
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
77
* SPDX-License-Identifier: Apache-2.0
88
*
99
* Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -22,12 +22,8 @@
2222
#ifndef MAIN_H
2323
#define MAIN_H
2424

25-
#include "stdint.h"
26-
#include "stdbool.h"
27-
28-
#ifdef __cplusplus
29-
extern "C" {
30-
#endif
25+
#include <stdint.h>
26+
#include <stdbool.h>
3127

3228
// LED state
3329
typedef enum main_led_state {
@@ -45,13 +41,14 @@ typedef enum main_usb_connect {
4541
USB_DISCONNECTING
4642
} main_usb_connect_t;
4743

44+
#ifdef __cplusplus
45+
extern "C" {
46+
#endif
47+
4848
void main_reset_target(uint8_t send_unique_id);
4949
void main_usb_set_test_mode(bool enabled);
50-
void main_usb_configure_event(void);
51-
void main_usb_busy_event(void);
5250
void main_powerdown_event(void);
5351
void main_disable_debug_event(void);
54-
void main_hid_send_event(void);
5552
void main_cdc_send_event(void);
5653
void main_msc_disconnect_event(void);
5754
void main_msc_delay_disconnect_event(void);

0 commit comments

Comments
 (0)