From 43561de3297b88d68753cb4625d6dc48bfb43d71 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Fri, 2 Mar 2012 02:23:11 -0800 Subject: License change of the library to LGPL, version 3 or later. Agreed to by all the significant contributors to the library. --- examples/stm32/f1/stm32-h103/usb_iap/usbiap.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/stm32/f1/stm32-h103/usb_iap/usbiap.c') diff --git a/examples/stm32/f1/stm32-h103/usb_iap/usbiap.c b/examples/stm32/f1/stm32-h103/usb_iap/usbiap.c index 410a1a1..3cf7044 100644 --- a/examples/stm32/f1/stm32-h103/usb_iap/usbiap.c +++ b/examples/stm32/f1/stm32-h103/usb_iap/usbiap.c @@ -3,18 +3,18 @@ * * Copyright (C) 2010 Gareth McMullin * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . */ #include @@ -149,7 +149,7 @@ static void usbdfu_getstatus_complete(struct usb_setup_data *req) u32 baseaddr = prog.addr + ((prog.blocknum - 2) * dfu_function.wTransferSize); for (i = 0; i < prog.len; i += 2) - flash_program_half_word(baseaddr + i, + flash_library_half_word(baseaddr + i, *(u16 *)(prog.buf + i)); } flash_lock(); -- cgit v1.2.3