SWARM-Bot Firmware  v1.0
Mobile robot OS - Embedded C/C++
__INT_0_1__.h File Reference

Header file for INT_0_1.c. More...

#include <__swarm_wold__.h>
Include dependency graph for __INT_0_1__.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _INT_LOW_LEVEL   0
 
#define _INT_CHANGE_LEVEL   1
 
#define _INT_FALLING_EDGE   2
 
#define _INT_RISING_EDGE   3
 

Functions

void _interrupt0_enable (uint8_t trigger)
 

Detailed Description

Header file for INT_0_1.c.

  • File: INT_0_1.h
  • Compiler: GCC-AVR
  • Supported devices: Tested on 328p
  • AppNote: external interrupt driver
Author
Swarm robot graduation project workgroub
Mechatronics Program for the Distinguished
$Name$
Revision
1

$RCSfile$

Date
/11/2021 9:18:06 AM

Definition in file __INT_0_1__.h.

Function Documentation

◆ _interrupt0_enable()

void _interrupt0_enable ( uint8_t  trigger)

Enable interrupt of pin INT0 (see _pin_map.h)

Parameters
[in]triggertrigger mode, see file __INT_0_1__.h
11 {
12  EIMSK |= (1 << INT0);
13  EICRA |= (1 << ISC00) | (1 << ISC01);
14  sei();
15 }

Referenced by board_init().

Here is the caller graph for this function: