File tree Expand file tree Collapse file tree 6 files changed +9
-2
lines changed
Expand file tree Collapse file tree 6 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 8888# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
8989CFLAGS += $(OPTIMIZATION_FLAGS )
9090
91- CFLAGS += $(INC ) -Werror -Wall -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS ) $(C_DEFS ) $(CFLAGS_MOD ) $(COPT )
91+ CFLAGS += $(INC ) -Werror -Wall -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS ) $(C_DEFS ) $(CFLAGS_MOD ) $(COPT ) -Werror=missing-prototypes
9292
9393# TODO: check this
9494CFLAGS += -D__START=main -DFOMU
Original file line number Diff line number Diff line change 2828#include "supervisor/filesystem.h"
2929#include "supervisor/usb.h"
3030#include "supervisor/shared/stack.h"
31+ #include "supervisor/port.h"
3132
3233void port_background_task (void ) {
3334}
Original file line number Diff line number Diff line change 2929#include "py/runtime.h"
3030
3131#include "common-hal/microcontroller/Processor.h"
32+ #include "shared-bindings/microcontroller/Processor.h"
3233#include "shared-bindings/microcontroller/ResetReason.h"
3334#include "supervisor/shared/translate.h"
3435
Original file line number Diff line number Diff line change 3030#include "py/objtuple.h"
3131#include "py/qstr.h"
3232
33+ #include "shared-bindings/os/__init__.h"
34+
3335STATIC const qstr os_uname_info_fields [] = {
3436 MP_QSTR_sysname , MP_QSTR_nodename ,
3537 MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
@@ -56,6 +58,6 @@ mp_obj_t common_hal_os_uname(void) {
5658 return (mp_obj_t )& os_uname_info_obj ;
5759}
5860
59- bool common_hal_os_urandom (uint8_t * buffer , uint32_t length ) {
61+ bool common_hal_os_urandom (uint8_t * buffer , mp_uint_t length ) {
6062 return false;
6163}
Original file line number Diff line number Diff line change 3131#include "py/mphal.h"
3232#include "py/mpstate.h"
3333#include "py/gc.h"
34+ #include "supervisor/cpu.h"
3435#include "supervisor/usb.h"
3536
3637#include "csr.h"
@@ -54,6 +55,7 @@ extern void SysTick_Handler(void);
5455// be prematurely enabled by interrupt handlers that enable and disable interrupts.
5556extern volatile uint32_t nesting_count ;
5657
58+ void isr (void );
5759__attribute__((section (".ramtext" )))
5860void isr (void ) {
5961 uint8_t irqs = irq_pending () & irq_getmask ();
Original file line number Diff line number Diff line change 3838// crystals.
3939volatile uint64_t raw_ticks = 0 ;
4040volatile int subsecond = 0 ;
41+ void SysTick_Handler (void );
4142__attribute__((section (".ramtext" )))
4243void SysTick_Handler (void ) {
4344 timer0_ev_pending_write (1 );
You can’t perform that action at this time.
0 commit comments