Skip to content

Commit e490e63

Browse files
committed
Add warnings, cosmetic fixes, remove vestigial modules
1 parent 95411a6 commit e490e63

13 files changed

Lines changed: 18 additions & 175 deletions

File tree

ports/stm32f4/boards/stm32f411ve_discovery/mpconfigboard.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535

3636
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
3737

38-
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
39-
40-
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x2000 - 0xC000 - CIRCUITPY_INTERNAL_NVM_SIZE)
38+
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x2000 - 0xC000)
4139

4240
#define AUTORESET_DELAY_MS 500

ports/stm32f4/boards/stm32f411ve_discovery/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ USB_VID = 0x239A
22
USB_PID = 0x802A
33
USB_PRODUCT = "STM32F411VE Discovery Board - CPy"
44
USB_MANUFACTURER = "STMicroelectronics"
5-
USB_REDUCED_ENDPOINT = 1
5+
USB_CDC_AND_MSC_ONLY = 1
66

77
INTERNAL_FLASH_FILESYSTEM = 1
88
LONGINT_IMPL = NONE

ports/stm32f4/boards/stm32f412zg_discovery/mpconfigboard.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@
3333
#define FLASH_SIZE (0x100000)
3434
#define FLASH_PAGE_SIZE (0x4000)
3535

36-
#define CIRCUITPY_INTERNAL_NVM_SIZE (4096)
3736
#define AUTORESET_DELAY_MS 500
38-
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)
37+
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000)

ports/stm32f4/common-hal/busio/SPI.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
void common_hal_busio_spi_construct(busio_spi_obj_t *self,
3535
const mcu_pin_obj_t * clock, const mcu_pin_obj_t * mosi,
3636
const mcu_pin_obj_t * miso) {
37+
mp_raise_NotImplementedError(translate("SPI not yet supported"));
3738
}
3839

3940
void common_hal_busio_spi_never_reset(busio_spi_obj_t *self) {

ports/stm32f4/common-hal/busio/UART.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
4141
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
4242
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
4343
uint16_t receiver_buffer_size) {
44+
mp_raise_NotImplementedError(translate("UART not yet supported"));
4445
}
4546

4647
bool common_hal_busio_uart_deinited(busio_uart_obj_t *self) {

ports/stm32f4/common-hal/microcontroller/__init__.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "common-hal/microcontroller/Pin.h"
3333
#include "common-hal/microcontroller/Processor.h"
3434

35-
#include "shared-bindings/nvm/ByteArray.h"
3635
#include "shared-bindings/microcontroller/__init__.h"
3736
#include "shared-bindings/microcontroller/Pin.h"
3837
#include "shared-bindings/microcontroller/Processor.h"
@@ -71,15 +70,6 @@ const mcu_processor_obj_t common_hal_mcu_processor_obj = {
7170
},
7271
};
7372

74-
#if CIRCUITPY_INTERNAL_NVM_SIZE > 0
75-
// The singleton nvm.ByteArray object.
76-
const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = {
77-
.base = {
78-
.type = &nvm_bytearray_type,
79-
},
80-
};
81-
#endif
82-
8373
STATIC const mp_rom_map_elem_t mcu_pin_globals_table[] = {
8474
{ MP_ROM_QSTR(MP_QSTR_PE02), MP_ROM_PTR(&pin_PE02) },
8575
{ MP_ROM_QSTR(MP_QSTR_PE03), MP_ROM_PTR(&pin_PE03) },

ports/stm32f4/common-hal/nvm/ByteArray.c

Lines changed: 0 additions & 81 deletions
This file was deleted.

ports/stm32f4/common-hal/nvm/ByteArray.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

ports/stm32f4/common-hal/nvm/__init__.c

Lines changed: 0 additions & 27 deletions
This file was deleted.

ports/stm32f4/mpconfigport.mk

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ LONGINT_IMPL = MPZ
1515
#Reduced feature set for early port
1616
CIRCUITPY_MINIMAL_BUILD = 1
1717

18+
CIRCUITPY_BOARD = 1
19+
CIRCUITPY_DIGITALIO = 1
20+
CIRCUITPY_MICROCONTROLLER = 1
21+
CIRCUITPY_BUSIO = 1
22+
CIRCUITPY_TIME = 1
23+
1824
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
19-
CIRCUITPY_BOARD = 1
20-
CIRCUITPY_DIGITALIO = 1
21-
CIRCUITPY_MICROCONTROLLER = 1
22-
CIRCUITPY_BUSIO = 1
23-
CIRCUITPY_TIME = 1
2425
#endif

0 commit comments

Comments
 (0)