/* * irt - some Ir transceiver * by uratan! 2020.6.17 */ /* * what is irt ? */ IrT (Ir Transceiver) generate some Ir signals by serial (uart format). It bridges uart1 input to Ir, or interpret an action of push-SW to Ir signal. output uart1: 2400bps (PIO0_2), 38kHz carrier (PIO0_3) input: uart0: 57600bps (PIO0_0, same as ISP) input: pushSW: (PIO0_1) SHORT PUSH: send 'S' when the SW being pushed lesser than 500msec LONG PUSH: send 'L' when the SW being pushed lesser than 1500msec REPEAT: send 'S's when the SW being pushed greater than 1500msec /* * FILES */ 00README.txt --- this file Makefile --- Makefile for make.exe link.awk --- a AWK script to generate linker script Startup.S --- CPU start up main.c --- main entry common.h --- system shared difinitions common.c --- system shared functions (uart) rprintf.c --- simple printf() (from sample of WinARM_20060606.zip) uart1.c --- handle uart1 to send Ir signal sctimer.c --- generate 38kHz to modulate Ir signal irt-NN.hex --- a hex file image made Compiler used is gcc-4.7.1(2012-0616) from yagarto You may need sh.exe and rm.exe, seek it from web please. (see also https://sourceforge.net/projects/yagarto/files/) Get LPC810 related definitions from: lpcopen_2_01_lpcxpresso_nxp_lpcxpresso_812.zip (LPCXpresso v6.1.0_164, LPCOpen 2.xx software package for LPCXpresso LPC812 boead) then place lpc_chip_8xx_lib/inc/ to ../chip-inc/. Don't you have GNU awk ? use this. -- uratan@miomio.jp