More AVR removal

This commit is contained in:
Bertrand Songis
2018-08-05 12:39:05 +02:00
parent f3bfde242b
commit ea76998beb
67 changed files with 1321 additions and 1486 deletions
+3 -12
View File
@@ -77,16 +77,8 @@ void sig(int sgn)
#undef min
#undef max
#define APM
#define __REV
typedef const unsigned char pm_uchar;
typedef const char pm_char;
typedef const uint16_t pm_uint16_t;
typedef const uint8_t pm_uint8_t;
typedef const int16_t pm_int16_t;
typedef const int8_t pm_int8_t;
#if defined(STM32)
extern GPIO_TypeDef gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, gpioh, gpioi, gpioj;
extern TIM_TypeDef tim1, tim2, tim3, tim4, tim5, tim6, tim7, tim8, tim9, tim10;
@@ -235,13 +227,12 @@ extern uint32_t Master_frequency;
#define __disable_irq()
#define __enable_irq()
extern uint8_t portb, portc, porth, dummyport;
extern uint16_t dummyport16;
extern uint8_t main_thread_running;
extern char * main_thread_error;
#define getADC()
#define GET_ADC_IF_MIXER_NOT_RUNNING()
static inline void getADC()
{
}
#define SIMU_SLEEP(x) do { if (!main_thread_running) return; sleep(x/*ms*/); } while (0)
#define SIMU_SLEEP_NORET(x) do { sleep(x/*ms*/); } while (0)
+2 -2
View File
@@ -107,10 +107,10 @@ extern "C" void INTERRUPT_xMS_IRQHandler()
#endif
#if (defined(PCBX9E) && !defined(SIMU))
const pm_uchar bmp_startup[] = {
const unsigned char bmp_startup[] = {
#include "startup.lbm"
};
const pm_uchar bmp_lock[] = {
const unsigned char bmp_lock[] = {
#include "lock.lbm"
};
#endif