HWA
Bare metal programming with style
|
Content of the device:
Modules | |
ATmega168(P) | |
ATmega328(P) | |
ATmega48(P) | |
ATmega88(P) | |
Target device description | |
These definitions are computed by HWA from the target device name. | |
#define | HW_DEVICE_ATMEGAX8 |
#define | HW_DEVICE_RAM_START 0x0100 |
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 |
#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_BOOTSECTION_SIZE 4096 |
#define | HW_DEVICE_CLK_SRC rc_8MHz |
#define | HW_DEVICE_CLK_SRC_HZ 8000000 |
#define | HW_DEVICE_STARTUP_DELAYS |
#define | HW_DEVICE_CLOCK_OUTPUT disabled |
#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_THROUGH_CHIP_ERASE no |
#define | HW_DEVICE_BROWNOUT_DETECTION off |
#define | HW_DEVICE_BOOT application |
#define HW_DEVICE_ATMEGAX8 |
Device family
#define HW_DEVICE_BOOT application |
Whether the device starts the bootloader (in the boot Flash) or the application.
#define HW_DEVICE_BOOTSECTION_SIZE 4096 |
Size of the boot section in bytes: 512, 1024, 2048, or 4096
#define HW_DEVICE_BROWNOUT_DETECTION off |
Brown-out detection level
#define HW_DEVICE_CLK_SRC rc_8MHz |
How the device is clocked.
#define HW_DEVICE_CLK_SRC_HZ 8000000 |
#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 |
Computed value of the fuse extended byte. Default: 0xFF.
#define HW_DEVICE_FUSE_HB |
Computed value of the fuse high byte. Default: 0xD9.
#define HW_DEVICE_FUSE_LB |
Computed value of the fuse low byte. Default: 0x62.
#define HW_DEVICE_PRESERVE_EEPROM_THROUGH_CHIP_ERASE no |
Whether the EEPROM memory is erased when a chip erase occurs
#define HW_DEVICE_RAM_START 0x0100 |
Address of first RAM byte
#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