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 88
88
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
89
89
CFLAGS += $(OPTIMIZATION_FLAGS )
90
90
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
92
92
93
93
# TODO: check this
94
94
CFLAGS += -D__START=main -DFOMU
Original file line number Diff line number Diff line change 28
28
#include "supervisor/filesystem.h"
29
29
#include "supervisor/usb.h"
30
30
#include "supervisor/shared/stack.h"
31
+ #include "supervisor/port.h"
31
32
32
33
void port_background_task (void ) {
33
34
}
Original file line number Diff line number Diff line change 29
29
#include "py/runtime.h"
30
30
31
31
#include "common-hal/microcontroller/Processor.h"
32
+ #include "shared-bindings/microcontroller/Processor.h"
32
33
#include "shared-bindings/microcontroller/ResetReason.h"
33
34
#include "supervisor/shared/translate.h"
34
35
Original file line number Diff line number Diff line change 30
30
#include "py/objtuple.h"
31
31
#include "py/qstr.h"
32
32
33
+ #include "shared-bindings/os/__init__.h"
34
+
33
35
STATIC const qstr os_uname_info_fields [] = {
34
36
MP_QSTR_sysname , MP_QSTR_nodename ,
35
37
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
@@ -56,6 +58,6 @@ mp_obj_t common_hal_os_uname(void) {
56
58
return (mp_obj_t )& os_uname_info_obj ;
57
59
}
58
60
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 ) {
60
62
return false;
61
63
}
Original file line number Diff line number Diff line change 31
31
#include "py/mphal.h"
32
32
#include "py/mpstate.h"
33
33
#include "py/gc.h"
34
+ #include "supervisor/cpu.h"
34
35
#include "supervisor/usb.h"
35
36
36
37
#include "csr.h"
@@ -54,6 +55,7 @@ extern void SysTick_Handler(void);
54
55
// be prematurely enabled by interrupt handlers that enable and disable interrupts.
55
56
extern volatile uint32_t nesting_count ;
56
57
58
+ void isr (void );
57
59
__attribute__((section (".ramtext" )))
58
60
void isr (void ) {
59
61
uint8_t irqs = irq_pending () & irq_getmask ();
Original file line number Diff line number Diff line change 38
38
// crystals.
39
39
volatile uint64_t raw_ticks = 0 ;
40
40
volatile int subsecond = 0 ;
41
+ void SysTick_Handler (void );
41
42
__attribute__((section (".ramtext" )))
42
43
void SysTick_Handler (void ) {
43
44
timer0_ev_pending_write (1 );
You can’t perform that action at this time.
0 commit comments