#include "FreeRTOS.h" #include "task.h" #define DIRECTION_OUTPUT 0 // For setting Data Directions #define DIRECTION_INPUT 1 #define CH_TRIG_BUF_OUT 1 // Channels of Trigger Buffer GPIO #define CH_TRIG_BUF_IN 2 #define CH_TRIG_SETTINGS_OUT 1 // Channels of Trigger Buffer Settings GPIO #define CH_SCREEN_BUF_OUT 1 // Channels of screen buffer #define CH_SCREEN_BUF_IN 2 #define CH_ENCODER_IN 1 // Channels of Encoder GPIO #define CH_ENCODER_OUT 2 // void initialize_trigger_buff_gpio( void ); void initialize_trigger_buff_settings_gpio( void ); void initialize_screen_buffer_gpio( void ); void initialize_encoder_gpio( void ); int16_t read_trigger_buff( uint16_t address ); int16_t check_trigger_status( void ); int16_t read_trigger_buff_addr( void ); void write_trigger_rst( uint16_t bit ); void set_trigger_level( int16_t trigger_level ); void set_subsample_counter( int16_t subsample_counter ); void writePixel( uint16_t row, uint16_t column, uint16_t value ); u32 read_encoder_values( void ); void reset_encoders( void );