monoZ docs
|
Monoz GPIO example This example app can be used when there is a requirement for different gpio specific communication User can use this app for GPIO protocol specific requirements. More...
#include "MZ_sys_cmsis_os2.h"
#include "MZ_gpio_example.h"
#include "MZ_timer.h"
#include "MZ_print.h"
#include "MZ_gpio_instance.h"
#include "MZ_error_handler.h"
#include "MZ_gpio.h"
Go to the source code of this file.
Macros | |
#define | GPIO_APP_STACK_SIZE (128) |
#define | GPIO_TX_TIME (pdMS_TO_TICKS(5000)) |
#define | GPIO_TX_SIZE (10) |
Functions | |
static void | timer_cb (TimerHandle_t xTimer) |
timer callback function notifies when timer expires More... | |
static void | gpio_app (void *arg) |
create the timer and start when the starts if main RTOS scheduler started More... | |
mz_error_t | gpio_app_init (void) |
Initialize GPIO App and creates the gpio application thread By default it will initialize the gpio3. More... | |
Variables | |
static mz_thread_t | gpio_thread_id = NULL |
static StaticTask_t | gpio_cb_mem |
static StackType_t | gpio_stack [GPIO_APP_STACK_SIZE] |
static mz_semaphore_t | gpio_sema_id = NULL |
Monoz GPIO example This example app can be used when there is a requirement for different gpio specific communication User can use this app for GPIO protocol specific requirements.
Definition in file MZ_gpio_example.c.
#define GPIO_APP_STACK_SIZE (128) |
Stack size for the thread
Definition at line 42 of file MZ_gpio_example.c.
#define GPIO_TX_TIME (pdMS_TO_TICKS(5000)) |
Timer expire time
Definition at line 43 of file MZ_gpio_example.c.
#define GPIO_TX_SIZE (10) |
GPIO transmission buffer size
Definition at line 44 of file MZ_gpio_example.c.
|
static |
timer callback function notifies when timer expires
xTimer | TimerHandle_t |
Definition at line 67 of file MZ_gpio_example.c.
|
static |
create the timer and start when the starts if main RTOS scheduler started
arg | void |
Definition at line 90 of file MZ_gpio_example.c.
mz_error_t gpio_app_init | ( | void | ) |
Initialize GPIO App and creates the gpio application thread By default it will initialize the gpio3.
Initialize GPIO App and creates the gpio application thread By default it will initialize the GPIO.
Definition at line 161 of file MZ_gpio_example.c.
|
static |
Thread id handler
Definition at line 48 of file MZ_gpio_example.c.
|
static |
Thread control block
Definition at line 49 of file MZ_gpio_example.c.
|
static |
Thread stack
Definition at line 50 of file MZ_gpio_example.c.
|
static |
Semaphore handler
Definition at line 51 of file MZ_gpio_example.c.