diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-12-13 13:42:27 +0100 |
---|---|---|
committer | Kévin Redon <kredon@sysmocom.de> | 2019-01-16 18:39:41 +0100 |
commit | efd55db9cc4d1480eda1734088d99f6fdf7a1c45 (patch) | |
tree | eb8e636ab28df41cd4b03183493926a0c06ebe99 /usb_dfu_main.c | |
parent | df28f25276abf7fa04e5b3dfa06579f7dd2f34d2 (diff) |
add USB DFU description
uses the USB CDC ACM example code as template to create a USB DFU
description according to USB DFU specification version 1.1
USB DFU stack is under LGPLv2.1 or later license
Change-Id: I7bd6cb46b734ffe8a51f2de7083b4f9e76d385e6
Diffstat (limited to 'usb_dfu_main.c')
-rw-r--r-- | usb_dfu_main.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/usb_dfu_main.c b/usb_dfu_main.c new file mode 100644 index 0000000..2535475 --- /dev/null +++ b/usb_dfu_main.c @@ -0,0 +1,45 @@ +/** + * \file + * + * \brief Application implement + * + * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. + * Copyright (c) 2018 sysmocom -s.f.m.c. GmbH, Author: Kevin Redon <kredon@sysmocom.de> + * + * \asf_license_start + * + * \page License + * + * Subject to your compliance with these terms, you may use Microchip + * software and any derivatives exclusively with Microchip products. + * It is your responsibility to comply with third party license terms applicable + * to your use of third party software (including open source software) that + * may accompany Microchip software. + * + * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, + * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, + * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, + * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE + * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL + * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE + * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE + * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT + * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY + * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, + * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. + * + * \asf_license_stop + * + */ +/* + * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a> + */ + +#include "atmel_start.h" +#include "atmel_start_pins.h" + +int main(void) +{ + atmel_start_init(); + usb_dfu(); +} |