42#define GPIO_APP_STACK_SIZE (128)
43#define GPIO_TX_TIME (pdMS_TO_TICKS(5000))
44#define GPIO_TX_SIZE (10)
mz_error_t
Enumeration of monoZ Error Flags.
This file includes Monoz GPIO Related APIs.
mz_error_t gpio_app_init(void)
Initialize GPIO App and creates the gpio application thread By default it will initialize the gpio3.
static mz_semaphore_t gpio_sema_id
#define GPIO_APP_STACK_SIZE
static StaticTask_t gpio_cb_mem
static void timer_cb(TimerHandle_t xTimer)
timer callback function notifies when timer expires
static mz_thread_t gpio_thread_id
static void gpio_app(void *arg)
create the timer and start when the starts if main RTOS scheduler started
static StackType_t gpio_stack[GPIO_APP_STACK_SIZE]
monoZ system CMSIS OS2 This is an abstraction layer and includes FreeRTOS configuration,...
osSemaphoreId_t mz_semaphore_t
mz_semaphore_t variable of type osSemaphoreId_t
osThreadId_t mz_thread_t
mz_thread_t variable of type osThreadId_t
This file contains APIs for create,delete,start and stop of timers. Maximum 5 timers can be created....
mz_error_t MZ_GPIO_TogglePin(MZ_GPIOX_BTYPE_PTR GPIOx, uint16_t GPIO_Pin)
This function is used to Set the toggling to the specific pin.
mz_error_t MZ_GPIO_WritePin(MZ_GPIOX_BTYPE_PTR GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
This function is used to Set the input/output to the specific pin.
int mz_puts(void *__ch)
This function prints the given string.
uint8_t mz_sem_create(mz_semaphore_t *c, uint8_t cnt, uint8_t init)
This function is used to create and initialize the semaphore object Create and Initialize a Semaphore...
uint8_t mz_thread_create(mz_thread_t *t, const char *name, mz_fn thread_func, void *const arg, mz_thread_prio_t prio, StackType_t *stack_mem, size_t stack_size, StaticTask_t *cb_mem, uint32_t cb_size)
This function is used to check the message queue object validity Create a thread and add it to Active...
mz_error_t mz_tm_create_start_recursive(char *_name, TickType_t _tick, mz_tm_cb _cb)
Function to Create and Start One Shot Timers.