8000 more missing-prototypes fixes · jcbender/circuitpython@340d6b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 340d6b9

Browse files
committed
more missing-prototypes fixes
1 parent ebc8359 commit 340d6b9

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

ports/atmel-samd/common-hal/alarm/SleepMemory.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "py/runtime.h"
3030
#include "common-hal/alarm/SleepMemory.h"
31+
#include "shared-bindings/alarm/SleepMemory.h"
3132
#include "shared-bindings/nvm/ByteArray.h"
3233

3334
void alarm_sleep_memory_reset(void) {

ports/atmel-samd/supervisor/internal_flash.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ void port_internal_flash_flush(void) {
7878
void supervisor_flash_release_cache(void) {
7979
}
8080

81-
void flash_flush(void) {
82-
supervisor_flash_flush();
83-
}
84-
8581
static int32_t convert_block_to_flash_addr(uint32_t block) {
8682
if (0 <= block && block < INTERNAL_FLASH_PART1_NUM_BLOCKS) {
8783
// a block in partition 1
@@ -91,7 +87,7 @@ static int32_t convert_block_to_flash_addr(uint32_t block) {
9187
return -1;
9288
}
9389

94-
bool supervisor_flash_read_block(uint8_t *dest, uint32_t block) {
90+
STATIC bool supervisor_flash_read_block(uint8_t *dest, uint32_t block) {
9591
// non-MBR block, get data from flash memory
9692
int32_t src = convert_block_to_flash_addr(block);
9793
if (src == -1) {
@@ -102,7 +98,7 @@ bool supervisor_flash_read_block(uint8_t *dest, uint32_t block) {
10298
return error_code == ERR_NONE;
10399
}
104100

105-
bool supervisor_flash_write_block(const uint8_t *src, uint32_t block) {
101+
STATIC bool supervisor_flash_write_block(const uint8_t *src, uint32_t block) {
106102
// non-MBR block, copy to cache
107103
int32_t dest = convert_block_to_flash_addr(block);
108104
if (dest == -1) {

ports/espressif/boards/ai_thinker_esp32-c3s/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*/
2727

2828
#include "shared-bindings/microcontroller/Pin.h"
29+
#include "supervisor/board.h"
2930

3031
void board_init(void) {
3132

ports/espressif/boards/microdev_micro_c3/board.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
#include "shared-bindings/microcontroller/Pin.h"
28+
#include "supervisor/board.h"
2829

2930
void board_init(void) {
3031
// USB
@@ -54,5 +55,7 @@ bool board_requests_safe_mode(void) {
5455
void reset_board(void) {
5556
}
5657

58+
#if CIRCUITPY_ALARM
5759
void board_deinit(void) {
5860
}
61+
#endif

ports/nrf/device/nrf52/startup_nrf52833.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ typedef void (*func)(void);
3939

4040
extern void _start(void) __attribute__((noreturn));
4141
extern void SystemInit(void);
42+
extern void Default_Handler(void);
43+
extern void Reset_Handler(void);
4244

4345
void Default_Handler(void) {
4446
while (1) {

ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "shared-bindings/microcontroller/Pin.h"
2929
#include "src/rp2_common/hardware_gpio/include/hardware/gpio.h"
3030
#include "supervisor/shared/board.h"
31+
#include "supervisor/board.h"
3132

3233
void board_init(void) {
3334
}

shared-module/gamepadshift/GamePadShift.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include "py/mpstate.h"
2828
#include "shared-bindings/digitalio/DigitalInOut.h"
29+
#include "shared-bindings/gamepadshift/GamePadShift.h"
2930
#include "shared-module/gamepadshift/GamePadShift.h"
3031
#include "supervisor/shared/tick.h"
3132

0 commit comments

Comments
 (0)
0