|
Open Garden
0.10.1-21
|
usb connection related functions More...

Go to the source code of this file.
Macros | |
| #define | USB_PORT PORTD |
| #define | USB_DDR DDRD |
| #define | USB_PORTIN PIND |
| #define | USB_PIN PIND2 |
| #define | TRUE 1 |
| #define | FALSE 0 |
Functions | |
| uint8_t | usb_is_connected (void) |
| void | usb_init (void) |
| void | usb_shutdown (void) |
Variables | |
| volatile uint8_t | usb_connected |
usb connection related functions
| #define FALSE 0 |
false
| #define TRUE 1 |
true
| #define USB_DDR DDRD |
usb port DDR.
| #define USB_PIN PIND2 |
usb pin.
| #define USB_PORT PORTD |
usb port line.
| #define USB_PORTIN PIND |
usb pin port.
| void usb_init | ( | void | ) |
enable irq int0
| uint8_t usb_is_connected | ( | void | ) |
check if usb port is connected.
| void usb_shutdown | ( | void | ) |
disable INT0 irq
| volatile uint8_t usb_connected |
Global used in interrupt. Global usb connected flag.
1.8.13