Skip to content

Commit

Permalink
qemu-arm: Clean up header file includes.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jun 11, 2024
1 parent 9bfb4ce commit d7d77d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 0 additions & 5 deletions ports/qemu-arm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@
* THE SOFTWARE.
*/

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>

#include "py/obj.h"
#include "py/compile.h"
#include "py/runtime.h"
#include "py/stackctrl.h"
#include "py/gc.h"
#include "py/repl.h"
#include "py/mperrno.h"

void do_str(const char *src, mp_parse_input_kind_t input_kind) {
Expand Down
1 change: 0 additions & 1 deletion ports/qemu-arm/mphalport.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* THE SOFTWARE.
*/

#include <stddef.h>
#include "uart.h"

#define mp_hal_stdin_rx_chr() (0)
Expand Down
4 changes: 0 additions & 4 deletions ports/qemu-arm/test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@
* THE SOFTWARE.
*/

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <setjmp.h>

#include "py/compile.h"
#include "py/runtime.h"
Expand Down
6 changes: 6 additions & 0 deletions ports/qemu-arm/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_QEMU_ARM_UART_H
#define MICROPY_INCLUDED_QEMU_ARM_UART_H

#include <stddef.h>

void uart_init(void);
void uart_tx_strn(const char *buf, size_t len);

#endif // MICROPY_INCLUDED_QEMU_ARM_UART_H

0 comments on commit d7d77d9

Please sign in to comment.