Skip to content

Instantly share code, notes, and snippets.

@acassis
acassis / none.txt
Created January 24, 2013 17:08
Simple PTZ test sample code
teste
#!/usr/bin/perl
#
# Initialization
#
use strict;
use warnings;
use Time::HiRes qw/usleep/;
@acassis
acassis / .c
Created October 3, 2015 13:47
Oven simulator to integrate with Andy Brown Android App
/****************************************************************************
* Included Files
****************************************************************************/
#include <termios.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
$ telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
adapter speed: 2000 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080004b4 msp: 0x20000e18
> exit
$ telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
adapter speed: 2000 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080004b4 msp: 0x20000e18
> exit
$ telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
> exit
Connection closed by foreign host.
@acassis
acassis / gist:47451d2d7fecca49f44fc3126a230308
Created June 5, 2017 19:32
debug_bambinolpc4330_jlink.log
$ arm-none-eabi-gdb nuttx.elf
GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
From 4301f2adf0bb762f70995dacc2c57ae478a602b4 Mon Sep 17 00:00:00 2001
From: Alan Carvalho de Assis <acassis@gmail.com>
Date: Wed, 8 Mar 2017 16:55:49 -0300
Subject: [PATCH] Add gamma() and lgamma()
---
include/cxx/cmath | 2 +
include/nuttx/lib/math.h | 5 ++
libc/math/Make.defs | 2 +-
libc/math/lib_gamma.c | 177 +++++++++++++++++++++++++++++++++++++++++++++++
From fa59e71036728c9109cfa7dd65a91b6b2f72097c Mon Sep 17 00:00:00 2001
From: Alan Carvalho de Assis <acassis@gmail.com>
Date: Wed, 7 Jun 2017 11:30:02 -0300
Subject: [PATCH] Add helloxx C++ example to STM32F4Discovery
---
configs/stm32f4discovery/helloxx/Make.defs | 126 +++
configs/stm32f4discovery/helloxx/defconfig | 1220 ++++++++++++++++++++++++++++
2 files changed, 1346 insertions(+)
create mode 100644 configs/stm32f4discovery/helloxx/Make.defs
From 0bca5af07cefe043e5b8dfa477814982fd941ca4 Mon Sep 17 00:00:00 2001
From: Alan Carvalho de Assis <acassis@gmail.com>
Date: Wed, 7 Jun 2017 11:35:20 -0300
Subject: [PATCH] Modify helloxx to test sstream
---
examples/helloxx/helloxx_main.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/examples/helloxx/helloxx_main.cxx b/examples/helloxx/helloxx_main.cxx