mpconfigport.h 622 Bytes
Newer Older
1
2
#include <stdint.h>

Damien's avatar
Damien committed
3
4
5
6
// options to control how Micro Python is built

#define MICROPY_EMIT_THUMB          (1)
#define MICROPY_EMIT_INLINE_THUMB   (1)
7
8
#define MICROPY_ENABLE_REPL_HELPERS (1)
#define MICROPY_ENABLE_FLOAT        (1)
Damien's avatar
Damien committed
9
10
11

// type definitions for the specific machine

Damien's avatar
Damien committed
12
13
#define BYTES_PER_WORD (4)

Damien's avatar
Damien committed
14
15
16
typedef int32_t machine_int_t; // must be pointer size
typedef uint32_t machine_uint_t; // must be pointer size
typedef void *machine_ptr_t; // must be of pointer size
17
typedef const void *machine_const_ptr_t; // must be of pointer size
Damien's avatar
Damien committed
18
typedef float machine_float_t;
19
20

machine_float_t machine_sqrt(machine_float_t x);