mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Values altered in interrupt handlers should be volatile
This commit is contained in:
parent
9e5823f060
commit
dbacf3e781
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: cc2420-arch-sfd.c,v 1.2 2010/01/19 13:11:01 adamdunkels Exp $
|
* @(#)$Id: cc2420-arch-sfd.c,v 1.3 2010/01/26 10:20:16 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
@ -35,9 +35,9 @@
|
|||||||
#include "dev/spi.h"
|
#include "dev/spi.h"
|
||||||
#include "dev/cc2420.h"
|
#include "dev/cc2420.h"
|
||||||
|
|
||||||
uint8_t cc2420_arch_sfd_counter;
|
volatile uint8_t cc2420_arch_sfd_counter;
|
||||||
uint16_t cc2420_arch_sfd_start_time;
|
volatile uint16_t cc2420_arch_sfd_start_time;
|
||||||
uint16_t cc2420_arch_sfd_end_time;
|
volatile uint16_t cc2420_arch_sfd_end_time;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* SFD interrupt for timestamping radio packets */
|
/* SFD interrupt for timestamping radio packets */
|
||||||
|
@ -26,14 +26,14 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: cc2420-arch-sfd.h,v 1.2 2010/01/19 13:11:01 adamdunkels Exp $
|
* @(#)$Id: cc2420-arch-sfd.h,v 1.3 2010/01/26 10:20:16 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef CC2420_ARCH_SFD_H
|
#ifndef CC2420_ARCH_SFD_H
|
||||||
#define CC2420_ARCH_SFD_H
|
#define CC2420_ARCH_SFD_H
|
||||||
|
|
||||||
extern uint8_t cc2420_arch_sfd_counter;
|
extern volatile uint8_t cc2420_arch_sfd_counter;
|
||||||
extern uint16_t cc2420_arch_sfd_start_time;
|
extern volatile uint16_t cc2420_arch_sfd_start_time;
|
||||||
extern uint16_t cc2420_arch_sfd_end_time;
|
extern volatile uint16_t cc2420_arch_sfd_end_time;
|
||||||
|
|
||||||
void cc2420_arch_sfd_init(void);
|
void cc2420_arch_sfd_init(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user