#pragma once #include #include "FreeRTOS.h" #include "irq.h" // Number of bytes for receive FIFO #define IO_GSM_RXQUEUE_SIZE 64 // Number of bytes for transmit FIFO #define IO_GSM_TXQUEUE_SIZE 64 // Try to turn on the GSM module. Returns false if no response from module. bool io_gsm_poweron(); void io_gsm_init(); void __irq__ io_gsm_isr(); unsigned io_gsm_read(char *buf, unsigned count, portTickType timeout); unsigned io_gsm_write(const char *buf, unsigned count, portTickType timeout); #define IO_GSM_XMACRO \ X(FILE_GSM, io_gsm_init, io_gsm_read, io_gsm_write)