#ifndef MAIN_H
#define MAIN_H
/******************************************************************************
* HEADER-FILES (Somente os arquivos necessarios nesse arquivo)
******************************************************************************/
/*****************************************************************************/
/******************************************************************************
* Definicoes
******************************************************************************/
#define LED 28
#define BUTTON_PIN 22
// Low-level alarm infrastructure we'll be using
#define ALARM_NUM 0
#define ALARM_IRQ TIMER_IRQ_0
#define DELAY 1000 // 1/Fs (in microseconds -> 1ms)
// We're going to erase and reprogram a region 256k from the start of flash.
// Once done, we can access this at XIP_BASE + 256k.
#define FLASH_TARGET_OFFSET (256 * 1024)
/*****************************************************************************/
/******************************************************************************
* Prototipos das funções
******************************************************************************/
/*****************************************************************************/
#endif /* MAIN_H */
Ignição