Skip to content

Commit d594cbc

Browse files
committed
add intelhex submodule
clean up
1 parent 27882cd commit d594cbc

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "lib/uf2"]
88
path = lib/uf2
99
url = https://github.com/microsoft/uf2.git
10+
[submodule "lib/intelhex"]
11+
path = lib/intelhex
12+
url = https://github.com/python-intelhex/intelhex.git

lib/intelhex

Submodule intelhex added at 5c15003

src/usb/uf2/ghostfat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ int write_block (uint32_t block_no, uint8_t *data, WriteState *state)
416416
// Should be Softdevice
417417
flash_nrf5x_write(bl->targetAddr, bl->data, bl->payloadSize, true);
418418
}
419+
#endif
419420
else if ( bl->targetAddr < USER_FLASH_START )
420421
{
421422
PRINTF("skip writing to MBR\r\n");
422423
}
423-
#endif
424424
else
425425
{
426426
state->aborted = true;

src/usb/usb.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@
2424

2525
#include "nrfx.h"
2626
#include "nrfx_power.h"
27-
28-
#ifdef SOFTDEVICE_PRESENT
2927
#include "nrf_sdm.h"
3028
#include "nrf_soc.h"
31-
#endif
3229

3330
#include "nrf_usbd.h"
3431
#include "tusb.h"
@@ -63,7 +60,6 @@ void usb_init(bool cdc_only)
6360
// We need to invoke the handler based on the status initially
6461
uint32_t usb_reg;
6562

66-
#ifdef SOFTDEVICE_PRESENT
6763
uint8_t sd_en = false;
6864

6965
if ( is_sd_existed() )
@@ -79,7 +75,6 @@ void usb_init(bool cdc_only)
7975

8076
sd_power_usbregstatus_get(&usb_reg);
8177
}else
82-
#endif
8378
{
8479
// Power module init
8580
const nrfx_power_config_t pwr_cfg = { 0 };

0 commit comments

Comments
 (0)