![]() |
ISSDK
1.7
IoT Sensing Software Development Kit
|
The dp5004_interrupt.c file implements the ISSDK MPXVDP5004 analog sensor driver example demonstration with interrupt mode. More...
#include "board.h"
#include "pin_mux.h"
#include "fsl_lptmr.h"
#include "fsl_adc12.h"
#include "clock_config.h"
#include "fsl_debug_console.h"
#include "issdk_hal.h"
#include "gpio_driver.h"
Go to the source code of this file.
Macros | |
#define | dp5004_odr_callback PWT_LPTMR0_IRQHandler |
#define | adc12_irq_callback ADC0_IRQHandler |
#define | MPXV5004DR_ODR_ms 1000U |
Functions | |
void | dp5004_odr_callback (void) |
void | adc12_irq_callback (void) |
void | KE15Z_LPTMR0_ADC0_Initialize (void) |
int | main (void) |
Main function. More... | |
Variables | |
volatile uint32_t | gAdcConversionValue |
volatile bool | bAdcCompletedFlag = false |
adc12_channel_config_t | gAdcChannelConfigStruct |
The dp5004_interrupt.c file implements the ISSDK MPXVDP5004 analog sensor driver example demonstration with interrupt mode.
Definition in file dp5004_interrupt.c.
#define adc12_irq_callback ADC0_IRQHandler |
Definition at line 63 of file dp5004_interrupt.c.
#define dp5004_odr_callback PWT_LPTMR0_IRQHandler |
Definition at line 61 of file dp5004_interrupt.c.
#define MPXV5004DR_ODR_ms 1000U |
Definition at line 66 of file dp5004_interrupt.c.
Referenced by KE15Z_LPTMR0_ADC0_Initialize().
void adc12_irq_callback | ( | void | ) |
Definition at line 87 of file dp5004_interrupt.c.
References bAdcCompletedFlag, gAdcConversionValue, and MPXVDP5004_ADC12_CHANNEL_GROUP.
void dp5004_odr_callback | ( | void | ) |
Definition at line 79 of file dp5004_interrupt.c.
References gAdcChannelConfigStruct, and MPXVDP5004_ADC12_CHANNEL_GROUP.
void KE15Z_LPTMR0_ADC0_Initialize | ( | void | ) |
Definition at line 94 of file dp5004_interrupt.c.
References gAdcChannelConfigStruct, MPXV5004DR_ODR_ms, and MPXVDP5004_ADC12_CHANNEL.
Referenced by main().
int main | ( | void | ) |
Main function.
Initialize GREEN LED pin used by FRDM board
Definition at line 130 of file dp5004_interrupt.c.
References ASK_USER_TO_RESUME, bAdcCompletedFlag, BOARD_BootClockRUN, BOARD_InitDebugConsole(), BOARD_InitPins(), Driver_GPIO_KSDK, gAdcConversionValue, GPIO_DIRECTION_OUT, GREEN_LED, KE15Z_LPTMR0_ADC0_Initialize(), MPXV5004DP_PRESSURE_FROM_ADC_VALUE, GENERIC_DRIVER_GPIO::pin_init, SMC, SMC_SetPowerModeWait(), and GENERIC_DRIVER_GPIO::toggle_pin.
volatile bool bAdcCompletedFlag = false |
Definition at line 72 of file dp5004_interrupt.c.
Referenced by adc12_irq_callback(), and main().
adc12_channel_config_t gAdcChannelConfigStruct |
Definition at line 73 of file dp5004_interrupt.c.
Referenced by dp5004_odr_callback(), and KE15Z_LPTMR0_ADC0_Initialize().
volatile uint32_t gAdcConversionValue |
Definition at line 71 of file dp5004_interrupt.c.
Referenced by adc12_irq_callback(), and main().