Size: 12425
Comment:
|
Size: 13470
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 479: | Line 479: |
--- * Fazovou konstantu sireni vlny v danem prostredi (merny posun). 2.2515931452E+03 * Merny utlum vlny v danem prostredi. 1.8409349244E+03 * Vlnovou delku vlny v uvazovanem prostredi. 2.7905509131E-03 * Okamzitou hodnotu intenzity magnetickeho pole v case t=0 v rovine z=0. 1.5492128278E+00 * Realnou cast impedance prostredi. 1.9188725643E+01 * Imaginarni cast impedance prostredi. 1.5688977943E+01 * Intenzitu elektrickeho pole v case t1 v rovine z1 (okamzitou hodnotu). -4.8483643692E+01 * Casovou stredni hodnotu plosne hustoty toku zariveho vykonu v rovine z = 0. 3.8420478130E+01 * Casovou stredni hodnotu hustoty vykonu vlny premenovaneho na teplo (SAR) v rovine z = 0. 1.4145920000E+05 * Okamzitou hodnotu Poyntingova vektoru v rovine z = 0 a case t = 0. 7.6840956260E+01 * Rychlost sireni vlny danym prostredim. 2.5477729837E+07 * Hloubku vniku. 5.4320225379E-04 * Rychlost sireni vlny o frekvenci f/1000. 8.9092766898E+05 * Rychlost sireni vlny o frekvenci f*1000. 4.4249995514E+07 |
http://www.openforce.at/mozparty2/?party=65 http://www.onlamp.com/pub/a/onlamp/2004/11/04/which_wiki.html
#include <ipOS.h> #include <ipUART.h>
CONFIG_BLOCK (
- FUSE0(FUSE0_XTAL | FUSE0_PIN_DIV1 | FUSE0_POUT_DIV2 | FUSE0_WUDP_128us | FUSE0_WUDX_1ms), FUSE1(0), OSC1_FREQ, "UBICOM", "starter", CONFIG_VER(0, 0, 0, 0), CONFIG_DATE(0, 0, 0), CONFIG_DATE(0, 0, 0) );
#if defined(DEBUG) #define RUNTIME_DEBUG 1 #else #define RUNTIME_DEBUG 0 #endif
THIS_FILE("main");
#define K_1 0x11 #define K_2 0x12 #define K_3 0x14 #define K_A 0x18 #define K_4 0x21 #define K_5 0x22 #define K_6 0x24 #define K_B 0x28 #define K_7 0x41 #define K_8 0x42 #define K_9 0x44 #define K_C 0x48 #define K_STAR 0x81 #define K_0 0x82 #define K_HASH 0x84 #define K_D 0x88
#define VID_X 40 #define VID_Y 30 u8_t vidmem[VID_X*VID_Y];
void zpoz(u16_t t) {
- u16_t i, j;
for (i = 0; i < t; i++)
for (j = 0; j < t; j++) {}
}
void init(void) {
- debug_init();
heap_add((addr_t)(&_bss_end), (addr_t)(RAMEND - (DEFAULT_STACK_SIZE - 1)) - (addr_t)(&_bss_end)); timer_init();
- (u8_t *)RBDIR = 0x00;
- (u8_t *)RCOUT = 0xff; memset(vidmem, 0, VID_X*VID_Y);
}
u8_t getkey() {
- u8_t k = 0;
- (u8_t *)RCDIR = 0x0f; zpoz(10);
k |= *(u8_t *)RCIN & 0x0f;
- (u8_t *)RCDIR = 0xf0; zpoz(10);
k |= *(u8_t *)RCIN & 0xf0; return k;
}
u8_t pressed(u8_t k) {
if ((getkey() & k) == k) return 1; return 0;
}
void drawline(u8_t y) {
- u8_t x = 0;
for (x = 0; x < VID_X; x++) {
- (u8_t *)RBOUT = vidmem[y*VID_Y+x];
}
void draw() {
- u8_t y = 0;
for (y = 0; y < VID_Y; y++)
- drawline(y);
}
void start(void) {
- init(); u8_t i = 0x01; for (;;) {
if (pressed(K_1) && !(i & 0x80)) i *= 2; else if (pressed(K_2) && !(i & 0x01)) i /= 2;
- (u8_t *)RBOUT = i; zpoz(100);
}
#include <ipOS.h> #include <ipUART.h>
CONFIG_BLOCK (
- FUSE0(FUSE0_XTAL | FUSE0_PIN_DIV1 | FUSE0_POUT_DIV2 | FUSE0_WUDP_128us | FUSE0_WUDX_1ms), FUSE1(0), OSC1_FREQ, "UBICOM", "starter", CONFIG_VER(0, 0, 0, 0), CONFIG_DATE(0, 0, 0), CONFIG_DATE(0, 0, 0) );
#if defined(DEBUG) #define RUNTIME_DEBUG 1 #else #define RUNTIME_DEBUG 0 #endif
THIS_FILE("main");
#define K_1 0x11 #define K_2 0x12 #define K_3 0x14 #define K_A 0x18 #define K_4 0x21 #define K_5 0x22 #define K_6 0x24 #define K_B 0x28 #define K_7 0x41 #define K_8 0x42 #define K_9 0x44 #define K_C 0x48 #define K_STAR 0x81 #define K_0 0x82 #define K_HASH 0x84 #define K_D 0x88
#define VID_X 40 #define VID_Y 30 u8_t vidmem[VID_X*VID_Y]; struct oneshot led_timer;
void zpoz(u16_t t) {
- u16_t i, j;
for (i = 0; i < t; i++)
for (j = 0; j < t; j++) {}
}
void init(void) {
- debug_init();
heap_add((addr_t)(&_bss_end), (addr_t)(RAMEND - (DEFAULT_STACK_SIZE - 1)) - (addr_t)(&_bss_end)); timer_init();