Browse Source

fixed remaining variables to kernel_pid_t

dev/timer
Oleg Hahm 8 years ago
parent
commit
1de5c2b4a0
  1. 2
      boards/avsextrem/drivers/avsextrem-smb380.c
  2. 2
      cpu/cortex-m0_common/thread_arch.c
  3. 2
      cpu/cortex-m4_common/thread_arch.c
  4. 2
      cpu/x86/x86_hwtimer.c
  5. 2
      cpu/x86/x86_rtc.c
  6. 2
      examples/ccn-lite-client/main.c
  7. 2
      sys/net/ccn_lite/ccnl-riot-compat.c
  8. 2
      sys/net/ccn_lite/ccnl-riot-compat.h
  9. 2
      sys/net/network_layer/sixlowpan/border/border.c
  10. 2
      sys/net/network_layer/sixlowpan/border/border.h
  11. 2
      sys/net/network_layer/sixlowpan/ip.c
  12. 2
      sys/net/network_layer/sixlowpan/ip.h
  13. 2
      sys/net/network_layer/sixlowpan/lowpan.c
  14. 4
      sys/net/transport_layer/destiny/socket.h
  15. 4
      sys/posix/pthread/pthread.c
  16. 2
      tests/thread_msg/main.c
  17. 2
      tests/unittests/tests-lib/tests-lib-ringbuffer.c

2
boards/avsextrem/drivers/avsextrem-smb380.c

@ -52,7 +52,7 @@ volatile int16_t *ringBuff_Y = NULL;
volatile int16_t *ringBuff_Z = NULL;
volatile int16_t *ringBuff_T = NULL;
uint16_t readPointerPos[SMB380_RING_BUFF_MAX_THREADS];
u_char PointerList[SMB380_RING_BUFF_MAX_THREADS];
kernel_pid_t PointerList[SMB380_RING_BUFF_MAX_THREADS];
static msg_t wakeupmessage;
/*

2
cpu/cortex-m0_common/thread_arch.c

@ -122,7 +122,7 @@ void thread_arch_stack_print(void)
int count = 0;
uint32_t *sp = (uint32_t *)sched_active_thread->sp;
printf("printing the current stack of thread %u\n", thread_getpid());
printf("printing the current stack of thread %" PRIkernel_pid "\n", thread_getpid());
printf(" address: data:\n");
do {

2
cpu/cortex-m4_common/thread_arch.c

@ -127,7 +127,7 @@ void thread_arch_stack_print(void)
int count = 0;
uint32_t *sp = (uint32_t *)sched_active_thread->sp;
printf("printing the current stack of thread %i\n", thread_getpid());
printf("printing the current stack of thread %" PRIkernel_pid "\n", thread_getpid());
printf(" address: data:\n");
do {

2
cpu/x86/x86_hwtimer.c

@ -167,7 +167,7 @@ void x86_init_hwtimer(void)
static void (*hwtimer_callback)(int timer);
static char hwtimer_stack[KERNEL_CONF_STACKSIZE_DEFAULT];
static int hwtimer_pid = -1;
static kernel_pid_t hwtimer_pid = KERNEL_PID_UNDEF;
struct alarm_time {
uint64_t ts_absolute_alarm;

2
cpu/x86/x86_rtc.c

@ -42,7 +42,7 @@
static bool valid;
static int32_t alarm_msg_content, periodic_msg_content, update_msg_content;
static unsigned alarm_pid = KERNEL_PID_UNDEF, periodic_pid = KERNEL_PID_UNDEF, update_pid = KERNEL_PID_UNDEF;
static kernel_pid_t alarm_pid = KERNEL_PID_UNDEF, periodic_pid = KERNEL_PID_UNDEF, update_pid = KERNEL_PID_UNDEF;
static void alarm_callback_default(uint8_t reg_c)
{

2
examples/ccn-lite-client/main.c

@ -142,7 +142,7 @@ static void riot_ccn_relay_config(int argc, char **argv)
msg_send(&m, _relay_pid, 1);
}
static void riot_ccn_transceiver_start(int _relay_pid)
static void riot_ccn_transceiver_start(kernel_pid_t _relay_pid)
{
transceiver_init(TRANSCEIVER);
int transceiver_pid = transceiver_start();

2
sys/net/ccn_lite/ccnl-riot-compat.c

@ -95,7 +95,7 @@ void riot_send_nack(uint16_t to)
void *ccnl_riot_relay_helper_start(void *);
int riot_start_helper_thread(void)
kernel_pid_t riot_start_helper_thread(void)
{
return thread_create(relay_helper_stack, sizeof(relay_helper_stack),
PRIORITY_MAIN - 2, CREATE_STACKTEST,

2
sys/net/ccn_lite/ccnl-riot-compat.h

@ -30,5 +30,5 @@ typedef struct riot_ccnl_msg {
int riot_send_transceiver(uint8_t *buf, uint16_t size, uint16_t to);
int riot_send_msg(uint8_t *buf, uint16_t size, uint16_t to);
void riot_send_nack(uint16_t to);
int riot_start_helper_thread(void);
kernel_pid_t riot_start_helper_thread(void);
char *riot_ccnl_event_to_string(int event);

2
sys/net/network_layer/sixlowpan/border/border.c

@ -76,7 +76,7 @@ kernel_pid_t border_get_serial_reader()
void serial_reader_f(void)
{
kernel_pid_t main_pid = KERNEL_PID_UNDEF;
kernel_pid_t main_pid;
int bytes;
msg_t m;
border_packet_t *uart_buf;

2
sys/net/network_layer/sixlowpan/border/border.h

@ -31,7 +31,7 @@
extern ipv6_addr_t *abr_addr;
uint16_t border_get_serial_reader(void);
kernel_pid_t border_get_serial_reader(void);
uint8_t *get_serial_out_buffer(int offset);
uint8_t *get_serial_in_buffer(int offset);

2
sys/net/network_layer/sixlowpan/ip.c

@ -65,7 +65,7 @@ static uint8_t ipv6_net_if_addr_buffer_count = 0;
static uint8_t default_hop_limit = MULTIHOP_HOPLIMIT;
/* registered upper layer threads */
int sixlowip_reg[SIXLOWIP_MAX_REGISTERED];
kernel_pid_t sixlowip_reg[SIXLOWIP_MAX_REGISTERED];
int ipv6_send_packet(ipv6_hdr_t *packet)
{

2
sys/net/network_layer/sixlowpan/ip.h

@ -58,7 +58,7 @@ extern kernel_pid_t ip_process_pid;
extern uint8_t buffer[BUFFER_SIZE];
extern char ip_process_buf[IP_PROCESS_STACKSIZE];
extern int sixlowip_reg[SIXLOWIP_MAX_REGISTERED];
extern kernel_pid_t sixlowip_reg[SIXLOWIP_MAX_REGISTERED];
typedef struct __attribute__((packed)) {
struct net_if_addr_t *addr_next;

2
sys/net/network_layer/sixlowpan/lowpan.c

@ -131,7 +131,7 @@ kernel_pid_t transfer_pid = KERNEL_PID_UNDEF;
mutex_t lowpan_context_mutex = MUTEX_INIT;
/* registered upper layer threads */
int sixlowpan_reg[SIXLOWPAN_MAX_REGISTERED];
kernel_pid_t sixlowpan_reg[SIXLOWPAN_MAX_REGISTERED];
static sixlowpan_lowpan_frame_t current_frame;
char ip_process_buf[IP_PROCESS_STACKSIZE];

4
sys/net/transport_layer/destiny/socket.h

@ -61,8 +61,8 @@ typedef struct __attribute__((packed)) {
typedef struct {
uint8_t socket_id;
uint8_t recv_pid;
uint8_t send_pid;
kernel_pid_t recv_pid;
kernel_pid_t send_pid;
uint8_t tcp_input_buffer_end;
mutex_t tcp_buffer_mutex;
socket_t socket_values;

4
sys/posix/pthread/pthread.c

@ -57,7 +57,7 @@ typedef struct pthread_thread {
kernel_pid_t thread_pid;
enum pthread_thread_status status;
int joining_thread;
kernel_pid_t joining_thread;
void *returnval;
bool should_cancel;
@ -72,7 +72,7 @@ typedef struct pthread_thread {
static pthread_thread_t *volatile pthread_sched_threads[MAXTHREADS];
static struct mutex_t pthread_mutex;
static volatile int pthread_reaper_pid = KERNEL_PID_UNDEF;
static volatile kernel_pid_t pthread_reaper_pid = KERNEL_PID_UNDEF;
static char pthread_reaper_stack[PTHREAD_REAPER_STACKSIZE];

2
tests/thread_msg/main.c

@ -28,7 +28,7 @@ char t1_stack[KERNEL_CONF_STACKSIZE_MAIN];
char t2_stack[KERNEL_CONF_STACKSIZE_MAIN];
char t3_stack[KERNEL_CONF_STACKSIZE_MAIN];
uint16_t p1, p2, p3;
kernel_pid_t p1, p2, p3;
void *thread1(void *arg)
{

2
tests/unittests/tests-lib/tests-lib-ringbuffer.c

@ -33,7 +33,7 @@ static char stack_get[KERNEL_CONF_STACKSIZE_DEFAULT];
static char rb_buf[BUF_SIZE];
static ringbuffer_t rb = RINGBUFFER_INIT(rb_buf);
static mutex_t mutex;
static unsigned pid_add, pid_get;
static kernel_pid_t pid_add, pid_get;
static void assert_avail(unsigned assumed)
{

Loading…
Cancel
Save