1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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

This commit is contained in:
Oliver Hahm 2013-04-02 02:02:58 +02:00
parent 2177b130d7
commit b6f21700ce
4 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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++;

View File

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

View File

@ -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: