// Filename : output_writer.h
//
// This file was initially generated by SpaceStudio but is meant to be modified
// by the user.
#ifndef OUTPUT_WRITER_H
#define OUTPUT_WRITER_H

#include "spacecomp.h"
#include "abstract_module.h"
#include "application_definitions.h"

#include <stdint.h>

class output_writer: public abstract_module {
	SPACECOMP_START(output_writer, INDEX, output_writer);

public:
	output_writer(SPACECOMP_CTOR_PARAMS(output_writer, INDEX));

	void thread(SPACECOMP_THREAD_PARAMS(output_writer, INDEX, thread));

private:

	uint8_t read_fifo();
	void send_to_uart(uint8_t data);

	SPACECOMP_END(output_writer, INDEX, output_writer);
};

#endif
