Skip to content

Commit 7e4cefa

Browse files
committed
Rename TARGET_RESET_STATE to target_state_t.
1 parent d5a68a0 commit 7e4cefa

File tree

19 files changed

+25
-25
lines changed

19 files changed

+25
-25
lines changed

source/board/blueninja.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "target_family.h"
2525
#include "target_board.h"
2626

27-
static uint8_t target_set_state_by_board(TARGET_RESET_STATE state)
27+
static uint8_t target_set_state_by_board(target_state_t state)
2828
{
2929

3030
if (RESET_PROGRAM == state) {

source/board/wizwiki_w7500.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "target_board.h"
2525
#include "swd_host.h"
2626

27-
static uint8_t target_set_state_by_board(TARGET_RESET_STATE state)
27+
static uint8_t target_set_state_by_board(target_state_t state)
2828
{
2929
if( state == RESET_PROGRAM )
3030
{

source/board/wizwiki_w7500_eco.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "target_board.h"
2525
#include "swd_host.h"
2626

27-
static uint8_t target_set_state_by_board(TARGET_RESET_STATE state)
27+
static uint8_t target_set_state_by_board(target_state_t state)
2828
{
2929
if( state == RESET_PROGRAM )
3030
{

source/board/wizwiki_w7500p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "target_board.h"
2525
#include "swd_host.h"
2626

27-
static uint8_t target_set_state_by_board(TARGET_RESET_STATE state)
27+
static uint8_t target_set_state_by_board(target_state_t state)
2828
{
2929
if( state == RESET_PROGRAM )
3030
{

source/daplink/interface/swd_host.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ uint8_t swd_init_debug(void)
881881
return 0;
882882
}
883883

884-
uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state)
884+
uint8_t swd_set_target_state_hw(target_state_t state)
885885
{
886886
uint32_t val;
887887
int8_t ap_retries = 2;
@@ -1022,7 +1022,7 @@ uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state)
10221022
return 1;
10231023
}
10241024

1025-
uint8_t swd_set_target_state_sw(TARGET_RESET_STATE state)
1025+
uint8_t swd_set_target_state_sw(target_state_t state)
10261026
{
10271027
uint32_t val;
10281028
int8_t ap_retries = 2;

source/daplink/interface/swd_host.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ uint8_t swd_write_memory(uint32_t address, uint8_t *data, uint32_t size);
5656
uint8_t swd_read_core_register(uint32_t n, uint32_t *val);
5757
uint8_t swd_write_core_register(uint32_t n, uint32_t val);
5858
uint8_t swd_flash_syscall_exec(const program_syscall_t *sysCallParam, uint32_t entry, uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4);
59-
uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state);
60-
uint8_t swd_set_target_state_sw(TARGET_RESET_STATE state);
59+
uint8_t swd_set_target_state_hw(target_state_t state);
60+
uint8_t swd_set_target_state_sw(target_state_t state);
6161
uint8_t swd_transfer_retry(uint32_t req, uint32_t *data);
6262
void int2array(uint8_t *res, uint32_t data, uint8_t len);
6363
void swd_set_reset_connect(SWD_CONNECT_TYPE type);

source/daplink/interface/swd_host_ca.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ uint8_t swd_uninit_debug(void)
787787
return 1;
788788
}
789789

790-
uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state)
790+
uint8_t swd_set_target_state_hw(target_state_t state)
791791
{
792792
uint32_t val;
793793
swd_init();
@@ -870,7 +870,7 @@ uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state)
870870
return 1;
871871
}
872872

873-
uint8_t swd_set_target_state_sw(TARGET_RESET_STATE state)
873+
uint8_t swd_set_target_state_sw(target_state_t state)
874874
{
875875
uint32_t val;
876876
swd_init();

source/family/arm/musca_a/target_reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static void musca_a_target_before_init_debug(void)
101101
return;
102102
}
103103

104-
static uint8_t musca_a_target_set_state(TARGET_RESET_STATE state)
104+
static uint8_t musca_a_target_set_state(target_state_t state)
105105
{
106106
if(state == RESET_RUN)
107107
{

source/family/arm/musca_b/target_reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void musca_b_target_before_init_debug(void)
106106
return;
107107
}
108108

109-
static uint8_t musca_b_target_set_state(TARGET_RESET_STATE state)
109+
static uint8_t musca_b_target_set_state(target_state_t state)
110110
{
111111
if(state == RESET_RUN)
112112
{

source/family/maxim/max32620/target_reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uint8_t target_unlock_sequence(void)
3535
return 1;
3636
}
3737

38-
uint8_t target_set_state(TARGET_RESET_STATE state)
38+
uint8_t target_set_state(target_state_t state)
3939
{
4040
// invoke reset by sw (VECT_REQ or SYS_REQ) or hw (hardware IO toggle)
4141
// return swd_set_target_state_sw(state);

0 commit comments

Comments
 (0)