a1052d5f73
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4 and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes outside of the ports directory for it. There are a couple other cleanups that were incidental: * Use const mcu_pin_obj_t instead of omitting the const. The structs themselves are const because they are in ROM. * Use PTR <-> OBJ conversions in more places. They were found when mp_obj_t was set to an integer type rather than pointer. * Optimize submodule checkout because the Pi submodules are heavy and unnecessary for the vast majority of builds. Fixes #4314
27 lines
534 B
C
27 lines
534 B
C
#include <stdint.h>
|
|
#include "py/obj.h"
|
|
|
|
void mp_hal_delay_ms(mp_uint_t ms);
|
|
void mp_hal_delay_us(mp_uint_t us);
|
|
mp_uint_t mp_hal_ticks_cpu(void);
|
|
mp_uint_t mp_hal_ticks_us(void);
|
|
mp_uint_t mp_hal_ticks_ms(void);
|
|
|
|
void mp_hal_set_interrupt_char(int c);
|
|
int mp_hal_stdin_rx_chr(void);
|
|
void mp_hal_stdout_tx_strn(const char *str, size_t len);
|
|
|
|
typedef enum std_io_t {
|
|
MINI_UART = 0,
|
|
UART,
|
|
UART_QEMU
|
|
} std_io_t;
|
|
|
|
void uart_init(std_io_t interface);
|
|
|
|
#ifdef MICROPY_HW_USBHOST
|
|
#include "usbkbd.h"
|
|
|
|
void usbkbd_setup();
|
|
#endif
|