summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-26 12:14:04 +0700
committerhathach <[email protected]>2013-03-26 12:14:04 +0700
commit03d045ecde8961ec7ca1579b9d207a0a83d442e3 (patch)
tree58cac547725fdf8937c06a8781dfec3cb9143371 /demos
parent54acee1fc80ce6f3ba86c91db4409e1ebfbda638 (diff)
- put ATTR_UNUSED to hardfault handler variables to discard compiler warning
- change host_class_driver_t: open_subtask signature to accept tusb_descriptor_interface_t const * instead of uint8_t*
Diffstat (limited to 'demos')
-rw-r--r--demos/bsp/boards/board.c28
-rw-r--r--demos/bsp/boards/board.h1
2 files changed, 15 insertions, 14 deletions
diff --git a/demos/bsp/boards/board.c b/demos/bsp/boards/board.c
index f534364ef..3007cf794 100644
--- a/demos/bsp/boards/board.c
+++ b/demos/bsp/boards/board.c
@@ -90,20 +90,20 @@ void HardFault_HandlerAsm(void){
* The function ends with a BKPT instruction to force control back into the debugger
*/
void HardFault_HandlerC(unsigned long *hardfault_args){
- volatile unsigned long stacked_r0 ;
- volatile unsigned long stacked_r1 ;
- volatile unsigned long stacked_r2 ;
- volatile unsigned long stacked_r3 ;
- volatile unsigned long stacked_r12 ;
- volatile unsigned long stacked_lr ;
- volatile unsigned long stacked_pc ;
- volatile unsigned long stacked_psr ;
- volatile unsigned long _CFSR ;
- volatile unsigned long _HFSR ;
- volatile unsigned long _DFSR ;
- volatile unsigned long _AFSR ;
- volatile unsigned long _BFAR ;
- volatile unsigned long _MMAR ;
+ ATTR_UNUSED volatile unsigned long stacked_r0 ;
+ ATTR_UNUSED volatile unsigned long stacked_r1 ;
+ ATTR_UNUSED volatile unsigned long stacked_r2 ;
+ ATTR_UNUSED volatile unsigned long stacked_r3 ;
+ ATTR_UNUSED volatile unsigned long stacked_r12 ;
+ ATTR_UNUSED volatile unsigned long stacked_lr ;
+ ATTR_UNUSED volatile unsigned long stacked_pc ;
+ ATTR_UNUSED volatile unsigned long stacked_psr ;
+ ATTR_UNUSED volatile unsigned long _CFSR ;
+ ATTR_UNUSED volatile unsigned long _HFSR ;
+ ATTR_UNUSED volatile unsigned long _DFSR ;
+ ATTR_UNUSED volatile unsigned long _AFSR ;
+ ATTR_UNUSED volatile unsigned long _BFAR ;
+ ATTR_UNUSED volatile unsigned long _MMAR ;
stacked_r0 = ((unsigned long)hardfault_args[0]) ;
stacked_r1 = ((unsigned long)hardfault_args[1]) ;
diff --git a/demos/bsp/boards/board.h b/demos/bsp/boards/board.h
index 1ae1fb6af..6b64e62fa 100644
--- a/demos/bsp/boards/board.h
+++ b/demos/bsp/boards/board.h
@@ -56,6 +56,7 @@
#endif
#include <stdint.h>
+#include "common/compiler/compiler.h"
#include "common/binary.h" // This file is too good to not use
#define BOARD_AT86RF2XX 1