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,17 +1,10 @@
/**
* @file
* @brief USB Audio Class public header
/*
* Copyright (c) 2022, sakumisu
*
* Header follows below documentation:
* - USB Class Definition for Audio Devices (audio10.pdf)
*
* Additional documentation considered a part of USB Audio v1.0:
* - USB Class Definition for Audio Data Formats (frmts10.pdf)
* - USB Class Definition for Terminal Types (termt10.pdf)
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _USB_AUDIO_H_
#define _USB_AUDIO_H_
#ifndef USB_AUDIO_H
#define USB_AUDIO_H
/** Audio Interface Subclass Codes
* Refer to Table A-2 from audio10.pdf
@@ -1093,4 +1086,4 @@ struct audio_v2_control_range3_param_block {
#define AUDIO_SAMPLE_FREQ_4B(frq) (uint8_t)(frq), (uint8_t)((frq >> 8)), \
(uint8_t)((frq >> 16)), (uint8_t)((frq >> 24))
#endif /* _USB_AUDIO_H_ */
#endif /* USB_AUDIO_H */

View File

@@ -1,24 +1,7 @@
/**
* @file usbd_audio.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_audio.h"

View File

@@ -1,27 +1,10 @@
/**
* @file usbd_audio.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_AUDIO_H_
#define _USBD_AUDIO_H_
#ifndef USBD_AUDIO_H
#define USBD_AUDIO_H
#include "usb_audio.h"
@@ -45,4 +28,4 @@ void usbd_audio_sof_callback(void);
}
#endif
#endif /* _USB_AUDIO_H_ */
#endif /* USBD_AUDIO_H */