kopia lustrzana https://github.com/micropython/micropython
stm32: Add missing header include for debug builds.
Debug build fails if string.h header is not included. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>pull/13038/head
rodzic
992cd64555
commit
cfcd0c4022
|
@ -24,6 +24,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "py/mperrno.h"
|
||||
#include "py/mphal.h"
|
||||
#include "py/runtime.h"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
// extmod/machine_i2s.c via MICROPY_PY_MACHINE_I2S_INCLUDEFILE.
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "py/mphal.h"
|
||||
#include "pin.h"
|
||||
#include "dma.h"
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
#ifndef MICROPY_INCLUDED_STM32_PIN_STATIC_AF_H
|
||||
#define MICROPY_INCLUDED_STM32_PIN_STATIC_AF_H
|
||||
|
||||
// For debug builds some of the macros expand to use strcmp.
|
||||
#include <string.h>
|
||||
|
||||
#include "py/mphal.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "genhdr/pins_af_defs.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "py/runtime.h"
|
||||
#include "py/mperrno.h"
|
||||
#include "py/mphal.h"
|
||||
|
|
Ładowanie…
Reference in New Issue