This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SummerSchool2-Controller/306-controller_interface.X/app/factory/factory.h

59 lines
919 B
C
Raw Normal View History

/**
* @author R<EFBFBD>mi Heredero
* @version. 0.0.0
* @date August 2023
* @file factory.h
*/
#ifndef FACTORY_H
#define FACTORY_H
#include <stdint.h>
#include <stdbool.h>
2023-08-25 12:13:51 +00:00
#include "../car.h"
#include "../can_message.h"
#include "../../board/led/led.h"
#include "../../board/button/button.h"
2023-08-25 12:13:51 +00:00
#include "../../middleware/alive_checker.h"
#include "../../middleware/can_interface.h"
2023-08-25 12:13:51 +00:00
#include "../../middleware/watchdog.h"
2023-08-27 19:35:19 +00:00
#include "../../middleware/eeprom_interface.h"
typedef struct {
LED l1_;
LED l2_;
LED l3_;
LED l4_;
LED l5_;
LED l6_;
LED l7_;
LED l8_;
2023-08-25 12:13:51 +00:00
WATCHDOG WDcontroller_;
2023-08-25 16:23:36 +00:00
ALIVE_CHECKER ACjoy_;
} Factory;
void Factory_init();
void Factory_build();
void Factory_start();
//these are global getters for our objects
LED* l1();
LED* l2();
LED* l3();
LED* l4();
LED* l5();
LED* l6();
LED* l7();
LED* l8();
2023-08-25 12:13:51 +00:00
WATCHDOG* WDcontroller();
2023-08-25 16:23:36 +00:00
ALIVE_CHECKER* ACjoy();
2023-08-25 12:13:51 +00:00
#endif