You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//
|
|
|
|
// kernel.h
|
|
|
|
//
|
|
|
|
#ifndef _kernel_h
|
|
|
|
#define _kernel_h
|
|
|
|
|
|
|
|
#include <circle_stdlib_app.h>
|
|
|
|
#include <circle/actled.h>
|
|
|
|
#include <circle/koptions.h>
|
|
|
|
#include <circle/devicenameservice.h>
|
|
|
|
#include <circle/screen.h>
|
|
|
|
#include <circle/exceptionhandler.h>
|
|
|
|
#include <circle/interrupt.h>
|
|
|
|
#include <circle/timer.h>
|
|
|
|
#include <circle/logger.h>
|
|
|
|
#include <circle/types.h>
|
|
|
|
#include <circle/i2cmaster.h>
|
|
|
|
#include <circle/usb/usbhcidevice.h>
|
|
|
|
#include "miniorgan.h"
|
|
|
|
|
|
|
|
enum TShutdownMode
|
|
|
|
{
|
|
|
|
ShutdownNone,
|
|
|
|
ShutdownHalt,
|
|
|
|
ShutdownReboot
|
|
|
|
};
|
|
|
|
|
|
|
|
class CKernel : public CStdlibAppStdio
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CKernel (void);
|
|
|
|
~CKernel (void);
|
|
|
|
|
|
|
|
bool Initialize (void);
|
|
|
|
|
|
|
|
TShutdownMode Run (void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
// do not change this order
|
|
|
|
CI2CMaster m_I2CMaster;
|
|
|
|
CMiniOrgan m_MiniOrgan;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|