Skip to content

Commit 8961d73

Browse files
Sadik.OzerSadik.Ozer
authored andcommitted
Remove dead code, fix gcc warning
Signed-off-by: Sadik.Ozer <[email protected]>
1 parent 9c029bf commit 8961d73

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

targets/TARGET_Maxim/TARGET_MAX32660/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
8989
int32_t status = E_BUSY;
9090

9191
while ( status == E_BUSY ) {
92-
status = MXC_FLC_Write(address, size, data);
92+
status = MXC_FLC_Write(address, size, (uint32_t *)data);
9393
}
9494

9595
if (status != 0) {

targets/TARGET_Maxim/TARGET_MAX32660/watchdog_api.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ watchdog_status_t hal_watchdog_init(const watchdog_config_t *config)
7373
// WDT Enable RESET
7474
MXC_WDT_EnableReset(MXC_WDT0);
7575

76-
//NVIC_SetVector(WDT0_IRQn, WDT0_IRQHandler);
77-
//NVIC_EnableIRQ(WDT0_IRQn);
78-
7976
// WDT Enable
8077
MXC_WDT_Enable(MXC_WDT0);
8178

0 commit comments

Comments
 (0)