#include <stdio.h>
#include "board.h"
#include "fsl_ewm_driver.h"
#include "fsl_os_abstraction.h"
#include "fsl_debug_console.h"
static uint32_t is_key_pressed |
( |
void |
| ) |
|
|
static |
This function gets the state of button.
- Returns
- 0 if button is not pressed. 1 if button is pressed
Function prototype for main function.
This function use EWM as a watchdog for an external circuit. when the counter reaches high value, EWM enter interrupt.
- Parameters
-
receiveBuff | Buffer used to hold received data |
void WDOG_EWM_IRQHandler |
( |
void |
| ) |
|
This function disables interrupt and set ewm interrupt flags.