* clean up stuff (fix gcc warnings and added clean target for doc)

dev/timer
Oliver Hahm 10 years ago
parent 2177b130d7
commit b6f21700ce

@ -33,8 +33,6 @@
#define ENABLE_DEBUG
#include <debug.h>
volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread;
volatile int lpm_prevent_sleep = 0;
extern void main(void);

@ -75,10 +75,10 @@ int thread_wakeup(int pid) {
}
}
int thread_measure_stack_usage(char* stack) {
unsigned int* stackp = (unsigned int*)stack;
int thread_measure_stack_usage(char *stack) {
unsigned int *stackp = (unsigned int*) (void*) stack;
/* assumption that the comparison fails before or after end of stack */
while( *stackp == (unsigned int)stackp )
while (*stackp == (unsigned int)stackp)
stackp++;
int space = (unsigned int)stackp - (unsigned int)stack;
@ -109,8 +109,8 @@ int thread_create(char *stack, int stacksize, char priority, int flags, void (*f
if (flags & CREATE_STACKTEST) {
/* assign each int of the stack the value of it's address */
unsigned int *stackmax = (unsigned int*) ((char*)stack + stacksize);
unsigned int* stackp = (unsigned int*)stack;
unsigned int *stackmax = (unsigned int*) (void*) (stack + stacksize);
unsigned int *stackp = (unsigned int*)(void*)stack;
while(stackp < stackmax) {
*stackp = (unsigned int)stackp;
stackp++;

@ -1,3 +1,5 @@
doc:
doxygen riot.doxyfile
clean:
@rm -rf latex man html

@ -50,7 +50,7 @@ void chardev_loop(ringbuffer_t *rb) {
msg_reply(&m, &m);
}
else {
r = (struct posix_iop_t *)m.content.ptr;
r = (struct posix_iop_t *)(void*)m.content.ptr;
}
break;
case CLOSE:

Loading…
Cancel
Save