Simplify the license rows, standardize header macro name

This commit is contained in:
sakumisu
2022-08-18 21:41:19 +08:00
parent 54c52944d2
commit 7377b5183d
68 changed files with 370 additions and 1356 deletions

View File

@@ -1,13 +1,10 @@
/**
* @file
* @brief USB Video Class public header
/*
* Copyright (c) 2022, sakumisu
*
* Header follows below documentation:
* - USB Device Class Definition for Video Devices UVC 1.5 Class specification.pdf
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _USB_VIDEO_H_
#define _USB_VIDEO_H_
#ifndef USB_VIDEO_H
#define USB_VIDEO_H
#define USB_DEVICE_VIDEO_CLASS_VERSION_1_5 0
@@ -1198,4 +1195,4 @@ struct video_autoexposure_mode {
bFrameIntervalType, /* bFrameIntervalType : Indicates how the frame interval can be programmed. 0: Continuous frame interval 1..255: The number of discrete frame */ \
__VA_ARGS__
// clang-format on
#endif /* USB_VIDEO_H_ */
#endif /*USB_VIDEO_H */

View File

@@ -1,24 +1,7 @@
/**
* @file usbd_video.c
* @brief
*
* Copyright (c) 2022 sakumisu
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
/*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_video.h"

View File

@@ -1,27 +1,10 @@
/**
* @file usbd_video.h
* @brief
*
* Copyright (c) 2022 sakumisu
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
/*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _USBD_VIDEO_H_
#define _USBD_VIDEO_H_
#ifndef USBD_VIDEO_H
#define USBD_VIDEO_H
#include "usb_video.h"
@@ -42,4 +25,4 @@ void usbd_video_sof_callback(void);
}
#endif
#endif /* USBD_VIDEO_H_ */
#endif /* USBD_VIDEO_H */