- added
git-svn-id: http://moon:8086/svn/projects/HendiControl@48 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* machine.h
|
||||||
|
*
|
||||||
|
* Created: 03.03.2019 09:21:56
|
||||||
|
* Author: Jens
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef MACHINE_H_
|
||||||
|
#define MACHINE_H_
|
||||||
|
|
||||||
|
#if ARDUINO_NANO
|
||||||
|
#define F_CPU (16000000UL) // MHz
|
||||||
|
#else
|
||||||
|
#define F_CPU (18432000UL) // MHz
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* MACHINE_H_ */
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* message.h
|
||||||
|
*
|
||||||
|
* Created: 02.03.2019 09:30:53
|
||||||
|
* Author: Jens
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef MESSAGE_H_
|
||||||
|
#define MESSAGE_H_
|
||||||
|
|
||||||
|
typedef enum _eMsgCode
|
||||||
|
{
|
||||||
|
NOP = 0,
|
||||||
|
Uart,
|
||||||
|
AdcComplete,
|
||||||
|
Timer,
|
||||||
|
|
||||||
|
} MsgCode;
|
||||||
|
|
||||||
|
typedef struct _sMsg_t
|
||||||
|
{
|
||||||
|
MsgCode code;
|
||||||
|
uint8_t data;
|
||||||
|
} Msg_t;
|
||||||
|
|
||||||
|
#endif /* MESSAGE_H_ */
|
||||||
Reference in New Issue
Block a user