mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fixed remaining variables to kernel_pid_t
This commit is contained in:
parent
2e396af248
commit
1de5c2b4a0
@ -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;
|
||||
|
||||
/*
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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…
Reference in New Issue
Block a user