AP_HAL Namespace: typedef Proc and TimedProc

This commit is contained in:
Pat Hickey 2012-09-07 16:06:41 -07:00 committed by Andrew Tridgell
parent 229f58412b
commit af68c09591
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#ifndef __AP_HAL_NAMESPACE_H__ #ifndef __AP_HAL_NAMESPACE_H__
#define __AP_HAL_NAMESPACE_H__ #define __AP_HAL_NAMESPACE_H__
#include <stdint.h>
namespace AP_HAL { namespace AP_HAL {
/* Toplevel pure virtual class Hal.*/ /* Toplevel pure virtual class Hal.*/
@ -25,6 +27,10 @@ namespace AP_HAL {
class Print; class Print;
class Stream; class Stream;
class BetterStream; class BetterStream;
/* Typdefs for function pointers (Procedure, Timed Procedure) */
typedef void(*Proc)(void);
typedef void(*TimedProc)(uint32_t);
} }