📄 avr.nut
字号:
macro = "UART1_HDX_BIT", brief = "Half Duplex Bit", description = "Bit number of UART1 half duplex control output. If enabled, ".. "the driver provides RS 485 half duplex mode.", provides = { "UART1_HDX_BIT" }, flavor = "booldata", type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "UART1_HDX_AVRPORT", brief = "Half Duplex Port", description = "Port register name of UART1 half duplex control output.", requires = { "UART1_HDX_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" }, } }, { name = "nutarch_avr_ace", brief = "TL16C550 Driver", description = "TL16C550 UART driver for ATmega128.\n".. "Initially contributed by William Basser and later ".. "enhanced by Przemyslaw Rudy. Only available for GCC.", sources = { "avr/dev/ace.c", "avr/dev/tlc16c550.c" }, requires = { "HW_MCU_ATMEGA128", "DEV_IRQ_AVR", "NUT_EVENT", "CRT_HEAPMEM", "TOOL_GCC" }, provides = { "DEV_FILE", "DEV_READ", "DEV_WRITE" }, }, { name = "nutarch_avr_uart", brief = "UART driver", description = "Interrupt driven, buffered UART driver.\n".. "Deprecated, use the USART driver.", sources = { "avr/dev/uart0.c", "avr/dev/uart1.c", "avr/dev/uartavr.c" }, requires = { "HW_MCU_AVR", "DEV_IRQ_AVR", "NUT_EVENT", "CRT_HEAPMEM" }, provides = { "DEV_FILE", "DEV_READ", "DEV_WRITE" }, }, { name = "nutarch_avr_lanc111", brief = "LAN91C111 Driver", description = "LAN driver for SMSC LAN91C111. ATmega128 only.", requires = { "HW_MCU_AVR", "NUT_EVENT", "NUT_TIMER" }, provides = { "NET_PHY" }, sources = { "avr/dev/lanc111.c" }, options = { { macro = "LANC111_BASE_ADDR", brief = "Controller Base Address", description = "The driver supports memory mapped controllers only, using ".. "the specified based address.\n\n".. "The Ethernut 2 reference design uses 0xC000.", file = "include/cfg/arch/avrpio.h" }, { macro = "LANC111_SIGNAL_IRQ", brief = "Ethernet Interrupt", description = "Ethernet controller interrupt, typically INT5.", default = "INT5", type = "enumerated", choices = avr_irq_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "LANC111_RESET_BIT", brief = "Ethernet Reset Bit", description = "Bit number of the Ethernet controller reset output.\n\n".. "Should be disabled when the LAN91C111 hardware reset ".. "is not connected to a port pin.\n\n".. "On Ethernut 2 boards the controller's reset pin ".. "is connected to the system reset. However, on early ".. "board revisions of Ethernut 2.0 no supervisory chip ".. "had been mounted, which causes problems with some ".. "power supplies. Mounting R30 or R31 connects the reset ".. "to bit 3 or bit 7 of PORTE.", provides = { "LANC111_RESET_BIT" }, flavor = "booldata", type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "LANC111_RESET_AVRPORT", brief = "Ethernet Reset Port", description = "Port register name of the Ethernet controller reset output.", requires = { "LANC111_RESET_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" }, } }, { name = "nutarch_avr_rtl8019as", brief = "RTL8019AS Driver", requires = { "HW_MCU_AVR", "NUT_TIMER" }, provides = { "NET_PHY" }, sources = { "avr/dev/nicrtl.c", "avr/dev/eth0rtl.c" }, options = { { macro = "RTL_BASE_ADDR", brief = "Controller Base Address", description = "The driver supports memory mapped controllers only, using ".. "the specified based address.\n\n".. "The Ethernut 1 reference design uses 0x8300.", default = "0x8300", file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_SIGNAL_IRQ", brief = "Ethernet Interrupt", description = "Ethernet controller interrupt, typically INT5.", default = "INT5", type = "enumerated", choices = avr_irq_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_IRQ_RISING_EDGE", brief = "IRQ Rising Edge Trigger", description = "Configures rising edge trigger for RTL interrupt.\n\n".. "Don't enable this for Ethernut boards! ".. "Used only on custom hardware designs without ".. "inverter gate for the interrupt.\n\n".. "Valid only for ATMega 128 or AT90CAN128 parts, ".. "not supported by ATMega 103.", flavor = "boolean", file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_RESET_BIT", brief = "Ethernet Reset Bit", description = "Bit number of the Ethernet controller reset output.\n\n".. "Early Ethernut revisions use bit 4 on PORTE to hard ".. "reset the RTL8019AS. Later the controller's reset pin ".. "had been connected to the system reset.\n\n".. "Should be disabled when the RTL8019AS hardware reset ".. "is not connected to a port pin.", provides = { "RTL_RESET_BIT" }, flavor = "booldata", type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_RESET_AVRPORT", brief = "Ethernet Reset Port", description = "Port register name of the Ethernet controller reset output.", requires = { "RTL_RESET_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EESK_BIT", brief = "Ethernet EESK Bit", description = "Bit number of the Ethernet controller EEPROM clock input.\n\n".. "This function, when enabled, uses three port pins to emulate ".. "a serial EEPROM for the RTL8019AS. The clock pin is driven ".. "by the Ethernet controller and will be monitored by the ".. "driver to shift the correct values out of the EEDO pin.\n\n".. "Ethernut 1.3 Rev-G uses Bit 5 on Port C. On previous board ".. "revisions the EEDO pin is connected to high. As a result, ".. "the full duplex bit is permanently enabled. But the RTL8019AS ".. "does not provide link level handshake, which makes the ".. "peer believe, that it's half duplex only and any full duplex ".. "traffic from the RTL8019AS is considered a collision. This ".. "is not fatal, but noticeably reduces throughput.\n\n".. "Should be disabled when the hardware doesn't support ".. "EEPROM Emulation or provides a real EEPROM.", provides = { "RTL_EESK_BIT" }, flavor = "booldata", type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EESK_AVRPORT", brief = "Ethernet EESK Port", description = "Port register name of the Ethernet controller EEPROM clock input.\n\n".. "Ethernut 1.3 Rev-G uses Bit 5 on Port C.", requires = { "RTL_EESK_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EEDO_BIT", brief = "Ethernet EEDO Bit", description = "Bit number of the Ethernet controller EEPROM data output.\n\n".. "Ethernut 1.3 Rev-G uses Bit 6 on Port C.", requires = { "RTL_EESK_BIT" }, type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EEDO_AVRPORT", brief = "Ethernet EEDO Port", description = "Port register name of the Ethernet controller EEPROM data output.\n\n".. "Ethernut 1.3 Rev-G uses Bit 6 on Port C.", requires = { "RTL_EESK_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EEMU_BIT", brief = "Ethernet EEMU Bit", description = "Bit number of the Ethernet controller EEPROM emulator output.\n\n".. "Ethernut 1.3 Rev-G uses Bit 7 on Port C to keep A15 high.\n\n".. "Disable this option if the hardware doesn't use this signal.", requires = { "RTL_EESK_BIT" }, provides = { "RTL_EEMU_BIT" }, flavor = "booldata", type = "enumerated", choices = avr_bit_choice, file = "include/cfg/arch/avrpio.h" }, { macro = "RTL_EEMU_AVRPORT", brief = "Ethernet EEMU Port", description = "Port register name of the Ethernet controller reset output.\n\n".. "Ethernut 1.3 Rev-G uses Bit 7 on Port C.", requires = { "RTL_EEMU_BIT" }, type = "enumerated", choices = avr_port_choice, file = "include/cfg/arch/avrpio.h" } } }, { name = "nutarch_avr_ide", brief = "ATA/IDE driver", description = "Mass storage driver.", requires = { "HW_MCU_AVR" }, sources = { "avr/dev/ide.c" } }, { name = "nutarch_avr_cs8900", brief = "CS8900 Driver", requires = { "HW_MCU_AVR", "NUT_TIMER" }, sources = { "avr/dev/cs8900.c", "avr/dev/eth0cs.c" } }, { name = "nutarch_avr_wlan", brief = "WLAN Driver", requires = { "NUT_EVENT", "HW_MCU_AVR" }, provides = { "NET_PHY" }, sources = { "avr/dev/wlan.c", "avr/dev/wlandrv.c" } }, -- -- Additional Hardware Support -- { name = "nutarch_avr_adc", brief = "ADC Driver", description = "Driver for the ATmega128 analog to digital converter.\n\n".. "Only available for AVR-GCC.\n\n".. "Contributed by Ole Reinhardt from www.kernelconcepts.de", requires = { "HW_MCU_AVR", "TOOL_GCC" }, sources = { "avr/dev/adc.c" }, options = { { macro = "ADC_BUF_SIZE", brief = "Buffer Size", description = "Defaults to 16", file = "include/cfg/arch/avrpio.h" }, { macro = "ADC_INITIAL_CHANNEL", brief = "Initial Channel", description = "Set to ADC0..ADC7", file = "include/cfg/arch/avrpio.h" }, { macro = "ADC_INITIAL_REF", brief = "Initial Reference", description = "Set to AVCC (supply voltage), ".. "AREF (external reference) ".. "or INTERNAL_256 (2.56V)", file = "include/cfg/arch/avrpio.h" }, { macro = "ADC_INITIAL_MODE", brief = "Initial Mode", description = "Set to\n\nFREE_RUNNING:\n".. "Free-running mode. Samples continuously taken ".. "every 13 cycles of ADC clock after ".. "ADC_start_conversion() is called.\n\n".. "SINGLE_CONVERSION:\n".. "Single-conversion mode. One sample taken every ".. "time ADC_start_conversion() is called.", file = "include/cfg/arch/avrpio.h" }, { macro = "ADC_INITIAL_PRESCALE", brief = "Initial Prescale", description = "Set to\n".. "ADC_PRESCALE_DIV2 for CPU clk/2\n".. "ADC_PRESCALE_DIV4 for CPU clk/4\n".. "ADC_PRESCALE_DIV8 for CPU clk/8\n".. "ADC_PRESCALE_DIV16 for CPU clk/16\n".. "ADC_PRESCALE_DIV32 for CPU clk/32\n".. "ADC_PRESCALE_DIV64 for CPU clk/64\n".. "ADC_PRESCALE_DIV128 for CPU clk/128", file = "include/cfg/arch/avrpio.h" }, } }, { name = "nutarch_avr_ir", brief = "IR Driver", requires = { "HW_MCU_AVR", "NUT_EVENT" }, description = "Infrared remote control for Sony protocol.", sources = { "avr/dev/ir.c", "avr/dev/irsony.c" } }, { name = "nutarch_avr_hd44780", brief = "HD44780 Driver", requires = { "HW_MCU_AVR" }, provides = { "DEV_FILE", "DEV_WRITE" }, sources = { "avr/dev/hd44780.c" }, options = { { macro = "LCD_4x20", brief = "LCD 4x20", flavor = "boolean",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -