PSG14a emulator V1.00
PSG14a emulator for stating GTD350 engine
gpio_exti.h File Reference

Contains GPIO and EXTI hardware abstraction layer prototypes. More...

#include <stdint.h>
Include dependency graph for gpio_exti.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  Gpio_id_t {
  GPIO_CH0 = 0 , GPIO_CH1 , GPIO_CH2 , GPIO_CH3 ,
  GPIO_CH4 , GPIO_CH5 , GPIO_CH6 , GPIO_CH7 ,
  GPIO_LED , GPIO_BUTTON_START , GPIO_BUTTON_COLD , GPIO_TOTAL
}
 
enum  Buttons_t { BUTTON_NONE = 0 , BUTTON_START , BUTTON_COLD }
 

Functions

void Gpio_Init (void)
 
void Gpio_Set_Pin (const Gpio_id_t Id)
 
void Gpio_Reset_Pin (const Gpio_id_t Id)
 
void Gpio_Reset_all_Outs (void)
 
void Exti_Clear_Pending (void)
 
uint8_t Gpio_Get_Pin (const Gpio_id_t Id)
 

Detailed Description

Contains GPIO and EXTI hardware abstraction layer prototypes.

mikl7.nosp@m.4@ya.nosp@m.hoo.c.nosp@m.om Mykhaylo Shcherbak

Date
11-01-2019
Version
2.00

Enumeration Type Documentation

◆ Buttons_t

enum Buttons_t
Enumerator
BUTTON_NONE 
BUTTON_START 
BUTTON_COLD 

◆ Gpio_id_t

enum Gpio_id_t
Enumerator
GPIO_CH0 
GPIO_CH1 

OUT CH0 (Starter)

GPIO_CH2 

OUT CH1 (Priming fuel)

GPIO_CH3 

OUT CH2 (Spark plug )

GPIO_CH4 

OUT CH3 (TBD)

GPIO_CH5 

OUT CH4 (TBD)

GPIO_CH6 

OUT CH5 (TBD)

GPIO_CH7 

OUT CH6 (TBD)

GPIO_LED 

OUT CH7 (TBD)

GPIO_BUTTON_START 

Led

GPIO_BUTTON_COLD 

Input for start button

GPIO_TOTAL 

Input for start_without_fuel button Total number of GPIOs

Function Documentation

◆ Exti_Clear_Pending()

void Exti_Clear_Pending ( void )

Referenced by main(), and Sleep_on().

◆ Gpio_Get_Pin()

uint8_t Gpio_Get_Pin ( const Gpio_id_t Id)

◆ Gpio_Init()

void Gpio_Init ( void )

◆ Gpio_Reset_all_Outs()

void Gpio_Reset_all_Outs ( void )

References GPIO_MODE_OUT, Gpio_Reset_Pin(), and GPIO_TOTAL.

Referenced by Sleep_on().

Here is the call graph for this function:

◆ Gpio_Reset_Pin()

◆ Gpio_Set_Pin()

void Gpio_Set_Pin ( const Gpio_id_t Id)