31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/*
|
|
* ivec_mcal_gpio.h
|
|
*
|
|
* Created on: 22-Jan-2024
|
|
* Author: saar
|
|
*/
|
|
|
|
#ifndef CORE_INCLUDE_IVEC_MCAL_GPIO_H_
|
|
#define CORE_INCLUDE_IVEC_MCAL_GPIO_H_
|
|
|
|
//#include <../Core/Include/ivec_utils.h>
|
|
#include "ti_msp_dl_config.h"
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define TM1650_PORT (GPIOA)
|
|
#define TM1650_SDA_PIN_PIN (DL_GPIO_PIN_9)
|
|
#define TM1650_SDA_PIN_IOMUX (IOMUX_PINCM20)
|
|
#define TM1650_SCL_PIN_PIN (DL_GPIO_PIN_8)
|
|
#define TM1650_SCL_PIN_IOMUX (IOMUX_PINCM19)
|
|
|
|
int8_t u8MCAL_gpioInit(void);
|
|
int8_t u8MCAL_gpioDeInit(GPIO_Regs *GPIOx, uint32_t GPIO_Pin);
|
|
void vMCAL_gpioWrite(void* port, uint32_t pin, uint32_t state);
|
|
uint32_t u32MCAL_gpioRead(void* port, uint32_t pin);
|
|
void vMCAL_gpioToggle(void *port, uint32_t pin);
|
|
void vMCAL_set_gpioDirection(uint32_t pincmIndex, bool direction);
|
|
|
|
#endif /* CORE_INCLUDE_IVEC_MCAL_GPIO_H_ */
|