HWA
Bare metal programming with style
|
Content of the device:
Modules | |
ATtiny25 | |
ATtiny45 | |
ATtiny85 | |
Target device description | |
These definitions are computed by HWA from the target device name. | |
#define | HW_DEVICE_ATTINYX5 |
#define | HW_DEVICE_RAM_START 0x0060 |
#define | HW_DEVICE_APP_START 0x001E |
Fuse bytes | |
These definitions are computed by HWA from the target device name and the definitions provided by the user. | |
#define | HW_DEVICE_FUSE_EB 0xFE | HW_DEVICE_SELFPRGEN |
#define | HW_DEVICE_FUSE_HB |
#define | HW_DEVICE_FUSE_LB |
User-defineable symbols | |
Before including the device-specific header, the user can define these symbols to describe the configuration of the target device. HWA defines undefined symbols with factory values. | |
#define | HW_DEVICE_CLK_SRC rc_8MHz |
#define | HW_DEVICE_CLK_PSC 8 |
#define | HW_DEVICE_STARTUP_DELAYS |
#define | HW_DEVICE_CLOCK_OUTPUT disabled |
#define | HW_DEVICE_SELF_PROGRAMMING enabled |
#define | HW_DEVICE_EXTERNAL_RESET enabled |
#define | HW_DEVICE_DEBUG_WIRE disabled |
#define | HW_DEVICE_SERIAL_PROGRAMMING enabled |
#define | HW_DEVICE_WATCHDOG_ALWAYS_ON no |
#define | HW_DEVICE_PRESERVE_EEPROM_FROM_CHIP_ERASE no |
#define | HW_DEVICE_BROWNOUT_DETECTION off |
#define HW_DEVICE_APP_START 0x001E |
Address of first application byte (after IRQ vector table)
#define HW_DEVICE_ATTINYX5 |
Device family
#define HW_DEVICE_BROWNOUT_DETECTION off |
Brown-out detection level
#define HW_DEVICE_CLK_PSC 8 |
Clock prescaler
#define HW_DEVICE_CLK_SRC rc_8MHz |
How the device is clocked.
#define HW_DEVICE_CLOCK_OUTPUT disabled |
Whether the device outputs its clock
#define HW_DEVICE_DEBUG_WIRE disabled |
Whether the Debug Wire is operationnal
#define HW_DEVICE_EXTERNAL_RESET enabled |
Whether the device can be reset via its RESET pin
#define HW_DEVICE_FUSE_EB 0xFE | HW_DEVICE_SELFPRGEN |
Computed value of the fuse extended byte.
#define HW_DEVICE_FUSE_HB |
Computed value of the fuse high byte.
#define HW_DEVICE_FUSE_LB |
Computed value of the fuse low byte.
#define HW_DEVICE_PRESERVE_EEPROM_FROM_CHIP_ERASE no |
Whether the EEPROM memory is erased when a chip erase occurs
#define HW_DEVICE_RAM_START 0x0060 |
Address of first RAM byte
#define HW_DEVICE_SELF_PROGRAMMING enabled |
Whether the device can write into its Flash program memory
#define HW_DEVICE_SERIAL_PROGRAMMING enabled |
Whether the device can be programmed via the SPI
#define HW_DEVICE_STARTUP_DELAYS |
Startup delays
Valid values depend on the clocking configuration.
#define HW_DEVICE_WATCHDOG_ALWAYS_ON no |
Whether the watchdog is always running