|
@ -67,8 +67,11 @@ void cli(); // Disable |
|
|
void sei(); // Enable
|
|
|
void sei(); // Enable
|
|
|
void attachInterrupt(uint32_t pin, void (*callback)(), uint32_t mode); |
|
|
void attachInterrupt(uint32_t pin, void (*callback)(), uint32_t mode); |
|
|
void detachInterrupt(uint32_t pin); |
|
|
void detachInterrupt(uint32_t pin); |
|
|
extern "C" void GpioEnableInt(uint32_t port, uint32_t pin, uint32_t mode); |
|
|
|
|
|
extern "C" void GpioDisableInt(uint32_t port, uint32_t pin); |
|
|
extern "C" { |
|
|
|
|
|
void GpioEnableInt(uint32_t port, uint32_t pin, uint32_t mode); |
|
|
|
|
|
void GpioDisableInt(uint32_t port, uint32_t pin); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Program Memory
|
|
|
// Program Memory
|
|
|
#define pgm_read_ptr(addr) (*((void**)(addr))) |
|
|
#define pgm_read_ptr(addr) (*((void**)(addr))) |
|
@ -92,9 +95,7 @@ using std::memcpy; |
|
|
#define strlen_P strlen |
|
|
#define strlen_P strlen |
|
|
|
|
|
|
|
|
// Time functions
|
|
|
// Time functions
|
|
|
extern "C" { |
|
|
extern "C" void delay(const int milis); |
|
|
void delay(const int milis); |
|
|
|
|
|
} |
|
|
|
|
|
void _delay_ms(const int delay); |
|
|
void _delay_ms(const int delay); |
|
|
void delayMicroseconds(unsigned long); |
|
|
void delayMicroseconds(unsigned long); |
|
|
uint32_t millis(); |
|
|
uint32_t millis(); |
|
|