#include <stdio.h>
#include "board.h"
#include "fsl_gpio_driver.h"
#include "fsl_cop_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 botton is not pressed. 1 if botton is pressed
Function prototype for main function.
Run a simple application which enables watchdog, then continuously refreshes the watchdog to prevent CPU reset Upon SW1 button push, the watchdog will expire after approximately 1 seconds and chip will reset.
- Parameters
-
receiveBuff | Buffer used to hold received data |