-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewlib_warning_fix.c
More file actions
64 lines (59 loc) · 2.05 KB
/
newlib_warning_fix.c
File metadata and controls
64 lines (59 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/** @addtogroup 01 Manager_group
*
* @ingroup infrastructure_apis
*
* @file newlib_warning_fix.c USB Support routines group on STM32F4 and STM32F1
*
* @brief <b>Main code. Support routines group on STM32F4 and STM32F1</b>
*
* @version 1.0.0
*
* @author @htmlonly © @endhtmlonly 2022
* Evandro Souza <evandro.r.souza@gmail.com>
*
* @date 02 December 2022
*
* This library supports the USB on the STM32F4 and STM32F1
* series of ARM Cortex Microcontrollers by ST Microelectronics.
*
* This file fixes the warnings of reentrant calls, due to modifications
* since August 8th, 2022, on version 11.3 Rel1.
* In this code, I do NOT use any functions of the standard library (NEWLIB).
* Although these reentrant functions are not used, they started to be
* requested by gcc, in NEWLIB requests, and, in their absence, generate
* warnings of "not implemented and will always fail" on reentrant calls
* close, lseek, read, kill and getpid.
*
* LGPL License Terms ref lgpl_license
*/
/*
* This file is part of the PS/2 to MSX keyboard Converter and
* MSX Keyboard Subsystem Emulator projects, based on libopencm3 project.
*
* Copyright (C) 2022 Evandro Souza <evandro.r.souza@gmail.com>
*
* 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 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "newlib_warning_fix.h"
void _close() {};
void _lseek() {};
void _read() {};
void _getpid(){};
void _kill() {};
#ifdef __cplusplus
}
#endif //#ifdef __cplusplus