setup()

Mono Wireless Inc.

setup()

Called at the beginning of code execution to write initialization code.

TWENET initialization is also executed after the setup() function exits. Do not do anything other than initialization here, since most of the processing is done after TWENET exits.

Items to be noted are listed below.

* Alternative processing for delay().

static inline void delay(uint32_t ms) {
        volatile uint32_t ct = ms * 4096;
        while (ct > 0) {
            --ct;
        }
}