블로그 이미지
stluck

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
  • total
  • today
  • yesterday
2016. 3. 29. 18:06 Programming/ATMEL

1. printf ,scanf를 사용하기 위한 ASF 설정

1) ASF에서 Standard serial I/O (stdio) (driver) 추가
   --> SERCOM USART - Serial Communications (driver) 를 포함함

2) usart config시 standard i/o 지정

void configure_usart(void)

{

struct usart_config config_usart;

usart_get_config_defaults(&config_usart);

config_usart.baudrate    = 115200;

config_usart.mux_setting = EDBG_CDC_SERCOM_MUX_SETTING;

config_usart.pinmux_pad0 = EDBG_CDC_SERCOM_PINMUX_PAD0;

config_usart.pinmux_pad1 = EDBG_CDC_SERCOM_PINMUX_PAD1;

config_usart.pinmux_pad2 = EDBG_CDC_SERCOM_PINMUX_PAD2;

config_usart.pinmux_pad3 = EDBG_CDC_SERCOM_PINMUX_PAD3;

while (usart_init(&usart_instance,

EDBG_CDC_MODULE, &config_usart) != STATUS_OK) {

}

usart_enable(&usart_instance);

stdio_serial_init(&usart_instance,EDBG_CDC_MODULE,&config_usart); // 이 부분 추가.

}

2. Link Option 수정

1) Protect Property -> Toolchain -> ARM/GNU Linker

2) Miscellaneous에 -lc -u _printf_float -u _scanf_float 추가

3. Rebuild

posted by stluck
2016. 1. 18. 20:45 Programming/Verilog(A)/SVerilog

수정 前

AND U1 ( .A( n1 ), .B( n4 ), .Z( n7 ));

AND U2 ( .A( n2 ), .B( n5 ), .Z( n8 ));

AND U3 ( .A( n3 ), .B( n6 ), .Z( n9 ));


수정 後

AND U1 ( .A(  ), .B(  ), .Z(  ));

AND U2 ( .A(  ), .B(  ), .Z(  ));

AND U3 ( .A(  ), .B(  ), .Z(  ));


정규식

:%s/( *[a-zA-Z0-9_\[\]]* )/( ) /g

posted by stluck
2015. 2. 11. 10:19 Tools

IVI Library - for VC# ㅋ

Ivi.Visa.Interop.dll

 

posted by stluck