Transform 'u16' to 'uint16_t'
- Replace '\([^_]\)u16' with '\1uint16_t'. - Replace '^u16' with 'uint16_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2277 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#endif
|
||||
|
||||
/* configuration */
|
||||
static u16 amt_jtagaccel_port;
|
||||
static uint16_t amt_jtagaccel_port;
|
||||
|
||||
/* interface variables
|
||||
*/
|
||||
|
||||
@@ -107,8 +107,8 @@ static unsigned ft2232_max_tck = 6000;
|
||||
|
||||
#define MAX_USB_IDS 8
|
||||
/* vid = pid = 0 marks the end of the list */
|
||||
static u16 ft2232_vid[MAX_USB_IDS + 1] = { 0x0403, 0 };
|
||||
static u16 ft2232_pid[MAX_USB_IDS + 1] = { 0x6010, 0 };
|
||||
static uint16_t ft2232_vid[MAX_USB_IDS + 1] = { 0x0403, 0 };
|
||||
static uint16_t ft2232_pid[MAX_USB_IDS + 1] = { 0x6010, 0 };
|
||||
|
||||
typedef struct ft2232_layout_s
|
||||
{
|
||||
@@ -1780,7 +1780,7 @@ static int ft2232_execute_queue()
|
||||
|
||||
|
||||
#if BUILD_FT2232_FTD2XX == 1
|
||||
static int ft2232_init_ftd2xx(u16 vid, u16 pid, int more, int* try_more)
|
||||
static int ft2232_init_ftd2xx(uint16_t vid, uint16_t pid, int more, int* try_more)
|
||||
{
|
||||
FT_STATUS status;
|
||||
DWORD deviceID;
|
||||
@@ -1958,7 +1958,7 @@ static int ft2232_purge_ftd2xx(void)
|
||||
#endif /* BUILD_FT2232_FTD2XX == 1 */
|
||||
|
||||
#if BUILD_FT2232_LIBFTDI == 1
|
||||
static int ft2232_init_libftdi(u16 vid, u16 pid, int more, int* try_more)
|
||||
static int ft2232_init_libftdi(uint16_t vid, uint16_t pid, int more, int* try_more)
|
||||
{
|
||||
uint8_t latency_timer;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
/* configuration */
|
||||
u16 gw16012_port;
|
||||
uint16_t gw16012_port;
|
||||
|
||||
/* interface variables
|
||||
*/
|
||||
|
||||
@@ -103,7 +103,7 @@ static cable_t cables[] =
|
||||
|
||||
/* configuration */
|
||||
static char* parport_cable = NULL;
|
||||
static u16 parport_port;
|
||||
static uint16_t parport_port;
|
||||
static int parport_exit = 0;
|
||||
|
||||
/* interface variables
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
typedef
|
||||
struct rlink_speed_table_s {
|
||||
uint8_t const *dtc;
|
||||
u16 dtc_size;
|
||||
u16 khz;
|
||||
uint16_t dtc_size;
|
||||
uint16_t khz;
|
||||
uint8_t prescaler;
|
||||
} rlink_speed_table_t;
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#define VSLLINK_MODE_NORMAL 0
|
||||
#define VSLLINK_MODE_DMA 1
|
||||
|
||||
static u16 vsllink_usb_vid;
|
||||
static u16 vsllink_usb_pid;
|
||||
static uint16_t vsllink_usb_vid;
|
||||
static uint16_t vsllink_usb_pid;
|
||||
static uint8_t vsllink_usb_bulkout;
|
||||
static uint8_t vsllink_usb_bulkin;
|
||||
static uint8_t vsllink_usb_interface;
|
||||
@@ -627,7 +627,7 @@ static int vsllink_connect(void)
|
||||
static void vsllink_append_tms(void)
|
||||
{
|
||||
uint8_t tms_scan = VSLLINK_TAP_MOVE(tap_get_state(), tap_get_end_state());
|
||||
u16 tms2;
|
||||
uint16_t tms2;
|
||||
insert_insignificant_operation_t *insert = \
|
||||
&VSLLINK_TAP_MOVE_INSERT_INSIGNIFICANT[tap_move_ndx(tap_get_state())][tap_move_ndx(tap_get_end_state())];
|
||||
|
||||
@@ -955,7 +955,7 @@ static void vsllink_path_move_dma(int num_states, tap_state_t *path)
|
||||
static void vsllink_stableclocks_normal(int num_cycles, int tms)
|
||||
{
|
||||
int tms_len;
|
||||
u16 tms_append_byte;
|
||||
uint16_t tms_append_byte;
|
||||
|
||||
if (vsllink_tms_data_len > 0)
|
||||
{
|
||||
@@ -965,7 +965,7 @@ static void vsllink_stableclocks_normal(int num_cycles, int tms)
|
||||
if (tms > 0)
|
||||
{
|
||||
// append '1' for tms
|
||||
tms_append_byte = (u16)((((1 << num_cycles) - 1) << vsllink_tms_data_len) & 0xFFFF);
|
||||
tms_append_byte = (uint16_t)((((1 << num_cycles) - 1) << vsllink_tms_data_len) & 0xFFFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user