Loading files
#ifndef __SYSTEMCONTROLLER_H__
#define __SYSTEMCONTROLLER_H__
#include "project.h"
/**
Terms used.
Command:
A directive to execute some action.
Each component has its own handlers.
Handler:
Code that know what to do with a specific event (or command).
Controller:
A component that knows how to control (part of) the outside world.
Processor:
Code that interacts with a running Z80.
Usually (PSoC) interrupt driven.
*/
typedef enum _bool_t
{
false,
true
} bool_t;
typedef enum _active_t
{
Inactive,
Active
} active_t;
#define ReadNotPin(pinPC) \
CyPins_ReadPin(pinPC) == 0 ? Active : Inactive
#define WriteNotPin(pinPC, active) \
if (active) {CyPins_ClearPin(pinPC);} else {CyPins_SetPin(pinPC);}
#define ActivateNotPin(pinPC) CyPins_ClearPin(pinPC)
#define DeactivateNotPin(pinPC) CyPins_SetPin(pinPC)
#endif //__SYSTEMCONTROLLER_H__
/* [] END OF FILE */
2500b1132This file is pinned to the selected release. Download the original to open it in your design tool.