Go to the source code of this file.
Defines | |
#define | printf printf_M |
Specify enhanced AVR target. | |
#define | puts puts_M |
#define | sprintf sprintf_M |
#define | vprintf vprintf_M |
#define | scanf scanf_M |
#define | gets gets_M |
#define | malloc malloc_M |
#define | calloc calloc_M |
#define | realloc realloc_M |
#define | free free_M |
#define | cprintf printf_P |
Redirected stdio routines. | |
#define | csprintf sprintf_P |
#define | cscanf scanf_P |
#define | csscanf sscanf_P |
#define | memcpy_P(dst, src_P, n) cmemcpy(dst, src_P, n) |
#define | strcat_P(s1, s2_P) cstrcat(s1, s2_P) |
#define | strcmp_P(s1_P, s2) cstrcmp(s2, s1_P) |
#define | strlen_P(s_P) cstrlen(s_P) |
#define | strncat_P(s1, s2_P, n) cstrncat(s1, s2_P, n) |
#define | strncmp_P(s1_P, s2, n) cstrncmp(s1_P, s2, n) |
#define | strcpy_P(dst, src_P) cstrcpy(dst, src_P) |
#define | strncpy_P(x, y, z) cstrncpy(x,y,z) |
#define | strcasecmp(s1, s2) strcmp(s1, s2) |
Case insensitive string comparisions. | |
#define | strncasecmp(s1, s2, n) strncmp(s1, s2, n) |
#define | __heap_start _bss_end |
Start of heap area. | |
#define | __attribute__(x) |
Object attribute support. | |
#define | PSTR(p) (p) |
Declare static pointer to strings in program space. | |
#define | PRG_RDB(p) (*((const char *)(p))) |
Read byte from program space. | |
#define | prog_char const char |
Character in program space. | |
#define | prog_int const int |
Integer in program space. | |
#define | PGM_P prog_char * |
Pointer to character in program space. | |
#define | wdt_enable(tmo) |
#define | wdt_disable() |
#define | wdt_reset() |
#define | __SFR_OFFSET 0 |
#define | SFR_IO_ADDR(sfr) ((sfr) - __SFR_OFFSET) |
#define | SFR_MEM_ADDR(sfr) (sfr) |
#define | SFR_IO_REG_P(sfr) ((sfr) < 0x40 + __SFR_OFFSET) |
#define | _SFR_MEM8(addr) (addr) |
#define | _SFR_MEM16(addr) (addr) |
#define | BV(x) BIT(x) |
#define | _BV(x) BIT(x) |
#define | cli() CLI() |
#define | sei() SEI() |
#define | cbi(reg, bit) (reg &= ~BIT(bit)) |
#define | sbi(reg, bit) (reg |= BIT(bit)) |
#define | loop_until_bit_is_set(reg, bit) while((reg & BIT(bit)) == 0) |
#define | bit_is_clear(reg, bit) ((reg & BIT(bit)) == 0) |
#define | bit_is_set(reg, bit) ((reg & BIT(bit)) != 0) |
#define | parity_even_bit(x) (0) |
#define | SIGNAL(x) void x(void) |
#define | outp(val, reg) (reg = val) |
#define | outb(reg, val) (reg = val) |
#define | inp(reg) (reg) |
#define | inb(reg) (reg) |
#define | __AVR_ATmega103__ |
#define | DOR OVR |
#define | RAMEND 0x0FFF |
#define | WDCE WDTOE |
#define | eeprom_read_block(dst, addr, size) EEPROMReadBytes((int)addr, dst, size) |
#define | eeprom_write_byte(addr, src) EEPROMwrite((int)addr, src) |
#define | eeprom_read_byte(addr) EEPROMread((int)addr) |
Functions | |
void * | calloc (size_t num, size_t size) |
Allocate space for an array. | |
char * | strdup (CONST char *str) |
Create a copy of a string. |
#define printf printf_M |
Specify enhanced AVR target.
For backward compatibility this macro is automatically defined if _MCU_enhanced is defined.
Disable const keyword. ICCAVR doesn't allow to mark function parameters unmodifable by the 'const' modifier. Even worse, the compiler redefines the meaning as a program memory attribute.
Disable inline keyword. ICCAVR doesn't allow to explicitly mark a function for inline code generation.
Redefined standard library routines. ImageCraft has a multipass linker, which is fine for complicated dependencies in most cases. However, there is the potential risk, that standard library calls with the same name are linked from the wrong library. To avoid this, an additional postfix is added to routines, which are implemented in Nut/OS libraries.
Definition at line 136 of file icc.h.
Referenced by ARM_COMMON_Handler_crash(), emulation_options_parse(), FtpService(), InitEthernetDevice(), main(), MmCardMount(), NutFtpProcessPwd(), NutFtpProcessRequest(), NutFtpProcessSystem(), NutFtpRespondBad(), NutFtpRespondOk(), NutFtpSendMode(), NutFtpServerSession(), NutThreadCreate(), NutUnixRaiseInterrupt(), PhatVolMount(), ptrace_dump_regs(), ptrace_stackdump_from(), Scanner(), ScanStreamHeader(), Service(), Sleeper1(), Sleeper2(), Sleeper3(), Sleeper4(), TimerEvent1(), TimerEvent2(), TimerEvent3(), TimerEvent4(), unix_eeprom_acces(), UnixDevIOCTL(), X12Init(), X12RtcReadRegs(), and X12RtcWrite().
#define puts puts_M |
Definition at line 137 of file icc.h.
Referenced by FtpService(), High(), InitEthernetDevice(), Low(), main(), NutInit(), ptrace_stackdump_from(), ScanStreamHeader(), and Sleeper1().
#define sprintf sprintf_M |
Definition at line 138 of file icc.h.
Referenced by DisplayEntry(), DisplayStatus(), dtostre(), dtostrf(), NutFtpTransferDirectory(), Rfc1123TimeString(), ScanStreamHeader(), vsyslog(), and vsyslog_P().
#define scanf scanf_M |
#define malloc malloc_M |
Definition at line 142 of file icc.h.
Referenced by _fdopen(), _putf(), AsnOidBuild(), At45dbPageWrite(), At45dbParamRead(), At45dbParamWrite(), At49bvParamWrite(), At91EfcParamWrite(), At91SpiBusNodeInit(), AvrSpiBus0NodeInit(), basename(), calloc(), ConfigLoad(), ConfigStation(), CreateFilePath(), CreateFullPathName(), dirname(), DiscoveryResponder(), DisplayInit(), DS1307RamWrite(), FeederThread(), findenv(), fopen(), freopen(), GetParentPath(), GpioRegisterIrqHandler(), MibRegisterIfVars(), NutBlockDeviceOpen(), NutChat_P(), NutChatCreate(), NutChatSend(), NutDhcpClient(), NutDnsGetResource(), NutFtpOpenSession(), NutFtpServerSession(), NutFtpTransferDirectory(), NutFtpTransferFile(), NutHttpProcessAsp(), NutHttpProcessPostQuery(), NutHttpProcessQueryString(), NutHttpProcessRequest(), NutHttpURLEncode(), NutIpRouteAdd(), NutIpRouteList(), NutRegisterAuth(), NutRegisterCgi(), NutRegisterFtpRoot(), NutRegisterHttpRoot(), NutSNTPStartThread(), NutTcpDeviceWrite(), opendir(), openlog(), PhatDirCreate(), PhatDirDelEntry(), PhatDirEntryFind(), PhatDirEntryStatus(), PhatDirOpen(), PhatDirRead(), PhatDirRemove(), PhatDirRenameEntry(), PhatFileOpen(), PhatVolMount(), ProcessRequests(), RawFsFileOpen(), RawFsMount(), ScanStreamHeader(), setenv(), SnmpAgent(), SnmpCommunityCreate(), SnmpMibFind(), SnmpMibRegister(), SnmpViewCreate(), SpiAt45dConfigRead(), SpiAt45dConfigWrite(), strdup(), StreamCopy(), TermInit(), TermOpen(), time(), Tlv320DacWrite(), UsartOpen(), UxmlNodeAddAttrib(), UxmlNodeCreate(), UxmlParseStream(), VsCodecOpen(), and X12EepromWrite().
#define calloc calloc_M |
Definition at line 143 of file icc.h.
Referenced by MmCardMount(), NutRegisterEthHandler(), NutRegisterIpHandler(), NutSNTPGetTime(), NutTcpCreateSocket(), NutUdpCreateSocket(), and NutWinsNameQuery().
#define free free_M |
Definition at line 145 of file icc.h.
Referenced by _putf(), AsnOidBuild(), At45dbPageWrite(), At45dbParamRead(), At45dbParamWrite(), At49bvParamWrite(), At91EfcParamWrite(), closedir(), closelog(), ConfigLoad(), ConfigStation(), DestroyRequestInfo(), DS1307RamWrite(), fclose(), FeederThread(), findenv(), fopen(), freopen(), MmCardMount(), MmCardUnmount(), NutBlockDeviceClose(), NutBlockDeviceOpen(), NutChat(), NutChat_P(), NutChatDestroy(), NutClearAuth(), NutDhcpClient(), NutDnsConfig2(), NutDnsGetResource(), NutFtpCloseSession(), NutFtpOpenSession(), NutFtpProcessCwd(), NutFtpProcessRequest(), NutFtpServerSession(), NutFtpTransferDirectory(), NutFtpTransferFile(), NutHttpProcessAsp(), NutHttpProcessPostQuery(), NutHttpProcessRequest(), NutIpRouteDel(), NutIpRouteDelAll(), NutRegisterAuth(), NutRegisterCgiBinPath(), NutRegisterFtpRoot(), NutRegisterFtpUser(), NutRegisterHttpRoot(), NutSNTPGetTime(), NutSNTPStartThread(), NutTcpDestroySocket(), NutTcpDeviceWrite(), NutUdpDestroySocket(), NutWinsNameQuery(), opendir(), PhatDirCreate(), PhatDirDelEntry(), PhatDirEntryFind(), PhatDirEntryStatus(), PhatDirOpen(), PhatDirOpenParent(), PhatDirRead(), PhatDirRemove(), PhatDirRenameEntry(), PhatFileClose(), PhatFileOpen(), PhatVolMount(), PhatVolUnmount(), putenv(), RawFsFileClose(), RawFsFileOpen(), RawFsMount(), RawFsUnmount(), Scanner(), ScanStreamHeader(), setenv(), SnmpAgent(), SnmpMibFind(), SNTP_resync(), SpiAt45dConfigRead(), SpiAt45dConfigWrite(), StreamCopy(), TermClose(), time(), Tlv320DacWrite(), unsetenv(), UsartClose(), UsartOpen(), UxmlParseStream(), VsCodecClose(), and X12EepromWrite().
#define cprintf printf_P |
#define strcasecmp | ( | s1, | |||
s2 | ) | strcmp(s1, s2) |
#define __heap_start _bss_end |
#define __attribute__ | ( | x | ) |
#define PSTR | ( | p | ) | (p) |
#define PRG_RDB | ( | p | ) | (*((const char *)(p))) |
#define PGM_P prog_char * |
#define wdt_enable | ( | tmo | ) |
{ \ register unsigned char s = _BV(WDCE) | _BV(WDE); \ register unsigned char r = tmo | _BV(WDE); \ asm("in R0, 0x3F\n" \ "cli\n" \ "wdr\n" \ "out 0x21, %s\n" \ "out 0x21, %r\n" \ "out 0x3F, R0\n"); \ }
Definition at line 223 of file icc.h.
Referenced by AvrWatchDogEnable(), and AvrWatchDogStart().
#define wdt_disable | ( | ) |
#define wdt_reset | ( | ) |
{ \ _WDR(); \ }
Definition at line 246 of file icc.h.
Referenced by AvrWatchDogRestart(), and AvrWatchDogStart().
#define BV | ( | x | ) | BIT(x) |
Definition at line 260 of file icc.h.
Referenced by CFChange(), IDEInit(), NutInit(), SpiFlashEnable(), VsPlayerInit(), and VsPlayerReset().
#define cli | ( | ) | CLI() |
Definition at line 263 of file icc.h.
Referenced by CSEndFrame(), CSRead16(), CSReadPP16(), CSReadPP32(), CSWrite16(), and CSWritePP16().
#define sei | ( | ) | SEI() |
Definition at line 264 of file icc.h.
Referenced by CSEndFrame(), CSRead16(), CSReadPP32(), and CSWrite16().
#define cbi | ( | reg, | |||
bit | ) | (reg &= ~BIT(bit)) |
Definition at line 265 of file icc.h.
Referenced by ADCSetMode(), ADCSetPrescale(), ADCSetRef(), ADCStopConversion(), AhdlcAvrInit(), AhdlcAvrOpen(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), GpioPinConfigSet(), GpioPinSetLow(), LancInit(), NicInit(), NicRx(), NutIdle(), NutIrInitSony(), SIG_INTERRUPT4(), SIG_OVERFLOW2(), SJAInit(), SpiDigitalGet(), SpiDigitalInit(), SpiDigitalSet(), SpiFlashEnable(), Sppi0Enable(), TwIOCtl(), VsPlayerInit(), and VsPlayerReset().
#define sbi | ( | reg, | |||
bit | ) | (reg |= BIT(bit)) |
Definition at line 266 of file icc.h.
Referenced by AceInit(), ADCInit(), ADCSetMode(), ADCSetPrescale(), ADCSetRef(), ADCStartConversion(), ADCStartLowNoiseConversion(), ADCStopConversion(), AhdlcAvrClose(), AhdlcAvrInit(), AhdlcAvrPut(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), GpioPinConfigSet(), GpioPinSetHigh(), IDEInit(), NicInit(), NicRx(), NicRxLanc(), NutIdle(), NutIrInitSony(), NutRegisterTimer(), SIG_INTERRUPT4(), SJAInit(), SpiDigitalGet(), SpiDigitalInit(), SpiDigitalSet(), SpiFlashEnable(), Sppi0Enable(), TwIOCtl(), VsPlayerInit(), VsPlayerReset(), and wlandrv_Init().
#define loop_until_bit_is_set | ( | reg, | |||
bit | ) | while((reg & BIT(bit)) == 0) |
Definition at line 269 of file icc.h.
Referenced by AtCanInit(), and Sppi0Byte().
#define bit_is_clear | ( | reg, | |||
bit | ) | ((reg & BIT(bit)) == 0) |
Definition at line 271 of file icc.h.
Referenced by AvrSpiBus0Select(), Sppi0Enable(), and VsPlayerReset().
#define bit_is_set | ( | reg, | |||
bit | ) | ((reg & BIT(bit)) != 0) |
Definition at line 272 of file icc.h.
Referenced by AtCanGetFreeMob(), GpioPinGet(), NutIdle(), SpiDigitalGet(), TwIOCtl(), and UartAvrIOCtl().
#define outp | ( | val, | |||
reg | ) | (reg = val) |
Definition at line 280 of file icc.h.
Referenced by AhdlcAvrIOCtl(), CSNicInit(), NutInit(), SpiFlashEnable(), and UartAvrOutput().
#define inp | ( | reg | ) | (reg) |
Definition at line 283 of file icc.h.
Referenced by AhdlcAvrIOCtl(), CSNicInit(), and VsPlayerInit().
#define eeprom_read_block | ( | dst, | |||
addr, | |||||
size | ) | EEPROMReadBytes((int)addr, dst, size) |
Definition at line 382 of file icc.h.
Referenced by NutNvMemLoad(), and OnChipNvMemLoad().
#define eeprom_write_byte | ( | addr, | |||
src | ) | EEPROMwrite((int)addr, src) |
Definition at line 383 of file icc.h.
Referenced by NutNvMemSave(), and OnChipNvMemSave().
#define eeprom_read_byte | ( | addr | ) | EEPROMread((int)addr) |
Definition at line 384 of file icc.h.
Referenced by NutNvMemSave(), and OnChipNvMemSave().