Skip to content

Commit 7b7b499

Browse files
committed
docs(swan_r5): misc comments/formatting
1 parent 5993683 commit 7b7b499

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ports/stm/peripherals/stm32l4/stm32l4r5xx/gpio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ void stm32_peripherals_gpio_init(void) {
3737
__HAL_RCC_GPIOF_CLK_ENABLE();
3838
__HAL_RCC_GPIOG_CLK_ENABLE();
3939

40+
// These ports are not used on the Swan R5 but may need to be enabeld on other boards
41+
//__HAL_RCC_GPIOH_CLK_ENABLE();
42+
//__HAL_RCC_GPIOI_CLK_ENABLE();
43+
4044
// Never reset pins
4145
never_reset_pin_number(2,14); // PC14 OSC32_IN
4246
never_reset_pin_number(2,15); // PC15 OSC32_OUT

ports/stm/supervisor/internal_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t block_num,
332332
return false;
333333
}
334334

335-
// unlock flash - // mdm why? the flash is only locked again
335+
// unlock flash
336336
HAL_FLASH_Unlock();
337337

338338
uint32_t sector_size;

shared-module/usb_cdc/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,4 @@ size_t usb_vendor_add_descriptor(uint8_t *descriptor_buf, descriptor_counts_t *d
415415

416416

417417

418-
#endif
418+
#endif

0 commit comments

Comments
 (0)