Libcurl requires openssl and zlib to be fully operationnal
- Step 1 : cross compile zlib
- Step 2 : cross compile openssl
- Step 3 : cross compile curl with zlib/openssl external link
Prerequisites :
| #include "uart.h" | |
| #include <avr/io.h> | |
| unsigned int uart_calc_ubrr(unsigned long fosc, unsigned long baud) | |
| { | |
| unsigned int ubrr; | |
| unsigned long div, rem; | |
| div = 16 * baud; | |
| rem = fosc / div; |
| #define F_CPU 16000000 //16MHz | |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| #include <avr/interrupt.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| volatile uint8_t *port; |
| #define F_CPU 16000000 //16MHz | |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| #include <avr/interrupt.h> | |
| #include <stdlib.h> | |
| //#include <stdio.h> | |
| //#include "uart/uart.h" | |
| /* A simple ADC example that checks the analog reading on ADC0 and turns | |
| * an LED on if the reading is higher than a threshold value and turns if | |
| * off if it is under that value. */ | |
| #include <avr/io.h> | |
| #include <stdint.h> | |
| /* Which analog pin we want to read from. The pins are labeled "ADC0" | |
| * "ADC1" etc on the pinout in the data sheet. In this case ADC_PIN | |
| * being 0 means we want to use ADC0. On the ATmega328P this is also | |
| * the same as pin PC0 */ |
| #include <iostream> | |
| #include <iomanip> | |
| #include <random> | |
| int main(int argc, char* argv[]) | |
| { | |
| const double REAL_PI = 3.14159265359; | |
| std::random_device device; | |
| std::mt19937 gen(device()); |
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission> | |
| <uses-permission android:name="android.permission.INTERNET"></uses-permission> |
| openssl version -a | |
| sudo add-apt-repository ppa:0k53d-karl-f830m/openssl | |
| sudo apt-get update | |
| sudo apt-get install openssl | |
| openssl version -a |
| chef-server-ctl stop | |
| chef-server-ctl kill | |
| chef-server-ctl cleanse | |
| chef-server-ctl uninstall | |
| pkill -9 -u opscode | |
| pkill -9 -f postgres | |
| pkill -9 -f beam | |
| pkill -9 -f /opt/chef | |
| rm -rf /etc/opscode /etc/chef /opt/opscode /opt/chef /var/chef | |
| rm -rf /etc/chef-server /etc/chef /opt/chef-server /opt/chef /root/.chef /var/opt/chef-server |