Skip to content

Commit

Permalink
[doc] Added header comments for lib modules
Browse files Browse the repository at this point in the history
 - common.c/.h
 - sg.c/.h
 - usb.c/.h
  • Loading branch information
Nightwalker-87 committed Jun 7, 2023
1 parent c8eaebc commit dbe13de
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/stlink-lib/common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* == nightwalker-87: TODO: CONTENT AND USE OF THIS SOURCE FILE IS TO BE VERIFIED (07.06.2023) == */
/* TODO: This file should be split up into new or existing modules. */

/*
* File: common.c
*
*
*/

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
5 changes: 4 additions & 1 deletion src/stlink-lib/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* == nightwalker-87: TODO: CONTENT AND USE OF THIS SOURCE FILE IS TO BE VERIFIED (07.06.2023) == */
/* TODO: This file should be split up into new or existing modules. */

/*
* File: common.h
*
* General helper functions
*
*/

#ifndef COMMON_H
Expand Down
2 changes: 2 additions & 0 deletions src/stlink-lib/sg.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* == nightwalker-87: TODO: CONTENT AND USE OF THIS SOURCE FILE IS TO BE VERIFIED (07.06.2023) == */

/*
* Copyright (c) 2010 "Capt'ns Missing Link" Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
Expand Down
2 changes: 2 additions & 0 deletions src/stlink-lib/sg.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* == nightwalker-87: TODO: CONTENT AND USE OF THIS HEADER FILE IS TO BE VERIFIED (07.06.2023) == */

/*
* File: sg.h
*
Expand Down
2 changes: 1 addition & 1 deletion src/stlink-lib/usb.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* File: usb.c
*
*
* USB commands & interaction with ST-LINK devices
*/

#include <limits.h>
Expand Down
2 changes: 1 addition & 1 deletion src/stlink-lib/usb.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* File: usb.h
*
*
* USB commands & interaction with ST-LINK devices
*/

#ifndef USB_H
Expand Down

0 comments on commit dbe13de

Please sign in to comment.