Merge branch 'master' of 10.0.1.24:cerebrum
[cerebrum.git] / common / comm.c
blob6642c897479aa10cf54ec46f804bc43af528aca2
1 /*
2 Copyright (C) 2012 jaseg <s@jaseg.de>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 3 as published by the Free Software Foundation.
7 */
9 #include <stdint.h>
10 #include <stddef.h>
11 #include "comm.h"
13 const volatile uint8_t global_argbuf[ARGBUF_SIZE];
14 volatile callback_stack_t next_callback;
16 void comm_loop(){
17 if(next_callback.descriptor){
18 (*next_callback.descriptor->callback)(next_callback.descriptor, next_callback.argbuf_end);
19 next_callback.descriptor = 0;