Set of Files to enable some Arduino examples.
Dependents: TFT_Touch_botao_v1 TFT_Touch_exemplo5_git_touch TESTE_1 TFT_Touch_exemplo6_git_touch_button_3_
Arduino.h
- Committer:
- davidprentice
- Date:
- 2021-05-11
- Revision:
- 2:81364824d56a
- Parent:
- 1:9261d641453c
File content as of revision 2:81364824d56a:
#ifndef ARDUINO_H #define ARDUINO_H // GLUE_STUFF: add any functionality to Arduino.h // WProgram.h just calls Arduino.h // avr/pgmspace, itoa, Print, WString all come from STM32 // it would be nice to put main_glue.cpp here #include <mbed.h> #include <stdint.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include "avr/dtostrf.h" #include "itoa.h" #include "WString.h" //for String #include "HardwareSerial.h" //for Serial hack extern uint32_t SystemCoreClock; #define F_CPU SystemCoreClock #define delay(ms) wait_ms(ms) #define __builtin_bswap16(x) ( ((x)<<8) | ((x)>>8) ) typedef uint8_t byte; extern uint32_t micros(void); extern uint32_t millis(void); extern void setup(void); extern void loop(void); #endif