monoZ docs
MZ_gpio_instance.c
Go to the documentation of this file.
1/*
2 * MZ_gpio_instance.c
3 *
4 * Created on: 16-Mar-2022
5 * Author: Mahendra
6 */
7#include "MZ_gpio_instance.h"
8#include "MZ_public.h"
9#include "MZ_error_handler.h"
10#include "MZ_gpio.h"
11
12
13
14MZ_GPIO_INIT_ST gpio_instance1 =
15{
16 .Init.Pin = MZ_GPIO_PIN1,
17 .Init.Mode = MZ_GPIO_MODE1,
18 .Init.Pull = MZ_GPIO_PULL1,
19 .Init.Speed = MZ_GPIO_SPEED1,
20 .Init.Alternate = MZ_GPIO_ALTERNATE1,
21};
22
23
25{
26 mz_error_t _ret = MZ_OK;
28 {
29// _ret = MZ_FAIL;
30 }
31 return _ret;
32}
33
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
@ MZ_OK
This file includes Monoz GPIO Related APIs.
MZ_GPIO_INIT_ST gpio_instance1
mz_error_t gpio_init1()
#define MZ_GPIO_MODE1
#define MZ_GPIO_PULL1
#define MZ_PORT_GPIO1
#define MZ_GPIO_SPEED1
#define MZ_GPIO_ALTERNATE1
#define MZ_GPIO_PIN1
monoZ Public All peripheral Configurations will send to monoZ library through this file
mz_error_t MZ_GPIO_Init(MZ_GPIOX_BTYPE_PTR GPIOx, MZ_GPIO_INIT_ST *GPIO_Init)
This function is used for initilization of gpio with specific settings.