[X9D] Some more drivers added (keys / power).
[ACT] Splash. Simu working. All screens need to be reworked!
This commit is contained in:
+9
-4
@@ -474,7 +474,7 @@ ifeq ($(PCB), ACT)
|
|||||||
EXTRABOARDSRC += x9d/lcd_driver.cpp
|
EXTRABOARDSRC += x9d/lcd_driver.cpp
|
||||||
SRC += CoOS/kernel/core.c CoOS/kernel/hook.c CoOS/kernel/task.c CoOS/kernel/event.c CoOS/kernel/time.c CoOS/kernel/timer.c CoOS/kernel/flag.c CoOS/kernel/mutex.c CoOS/kernel/serviceReq.c CoOS/portable/GCC/port.c CoOS/portable/arch.c
|
SRC += CoOS/kernel/core.c CoOS/kernel/hook.c CoOS/kernel/task.c CoOS/kernel/event.c CoOS/kernel/time.c CoOS/kernel/timer.c CoOS/kernel/flag.c CoOS/kernel/mutex.c CoOS/kernel/serviceReq.c CoOS/portable/GCC/port.c CoOS/portable/arch.c
|
||||||
EEPROMSRC = eeprom_arm.cpp eeprom_conversions.cpp
|
EEPROMSRC = eeprom_arm.cpp eeprom_conversions.cpp
|
||||||
CPPSRC += x9d/eeprom_driver.cpp x9d/pulses_driver.cpp x9d/keys_driver.cpp x9d/audio_driver.cpp
|
CPPSRC += x9d/eeprom_driver.cpp x9d/pulses_driver.cpp act/keys_driver.cpp x9d/audio_driver.cpp
|
||||||
CPPSRC += sky9x/audio.cpp
|
CPPSRC += sky9x/audio.cpp
|
||||||
PULSESSRC = pulses_arm.cpp
|
PULSESSRC = pulses_arm.cpp
|
||||||
CPPSRC += monitors_views.cpp
|
CPPSRC += monitors_views.cpp
|
||||||
@@ -492,10 +492,12 @@ ifeq ($(PCB), X9D)
|
|||||||
EEPROMSRC = eeprom_arm.cpp eeprom_conversions.cpp
|
EEPROMSRC = eeprom_arm.cpp eeprom_conversions.cpp
|
||||||
PULSESSRC = pulses_arm.cpp
|
PULSESSRC = pulses_arm.cpp
|
||||||
CPPSRC += sky9x/audio.cpp
|
CPPSRC += sky9x/audio.cpp
|
||||||
CPPSRC += x9d/eeprom_driver.cpp x9d/pulses_driver.cpp x9d/keys_driver.cpp x9d/audio_driver.cpp
|
CPPSRC += x9d/pwr_driver.cpp x9d/eeprom_driver.cpp x9d/pulses_driver.cpp x9d/keys_driver.cpp x9d/audio_driver.cpp
|
||||||
CPPSRC += bmp.cpp monitors_views.cpp
|
CPPSRC += bmp.cpp monitors_views.cpp
|
||||||
|
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/system_stm32f2xx.c
|
||||||
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_gpio.c
|
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_gpio.c
|
||||||
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_rcc.c
|
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/src/stm32f2xx_rcc.c
|
||||||
|
SRC += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc_ride7/startup_stm32f2xx.s
|
||||||
|
|
||||||
ifeq ($(SDCARD), YES)
|
ifeq ($(SDCARD), YES)
|
||||||
EXTRABOARDSRC += FatFs/ff.c FatFs/fattime.c FatFs/option/ccsbcs.c x9d/diskio.cpp
|
EXTRABOARDSRC += FatFs/ff.c FatFs/fattime.c FatFs/option/ccsbcs.c x9d/diskio.cpp
|
||||||
@@ -884,7 +886,7 @@ splash_X9D.lbm: splash_X9D.xbm
|
|||||||
splash_ACT.lbm: splash_ACT.xbm
|
splash_ACT.lbm: splash_ACT.xbm
|
||||||
@echo
|
@echo
|
||||||
@echo "Convert ACT splash from xbm to lbm:"
|
@echo "Convert ACT splash from xbm to lbm:"
|
||||||
$(IMG2LBM) $< $@ img
|
$(IMG2LBM) $< $@ largimg
|
||||||
|
|
||||||
asterisk.lbm: asterisk.xbm
|
asterisk.lbm: asterisk.xbm
|
||||||
@echo
|
@echo
|
||||||
@@ -992,7 +994,10 @@ ifeq ($(ARCH), AVR)
|
|||||||
else
|
else
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(ARMCPPFLAGS) $< -o $@
|
$(CC) $(ARMCPPFLAGS) $< -o $@
|
||||||
OBJS = $(SRC:.c=.o)
|
%.o: %.s
|
||||||
|
$(AS) $< -o $@
|
||||||
|
TMP = $(SRC:.c=.o)
|
||||||
|
OBJS = $(TMP:.s=.o)
|
||||||
%.elf: allsrc.cpp $(OBJS)
|
%.elf: allsrc.cpp $(OBJS)
|
||||||
@echo
|
@echo
|
||||||
@echo $(MSG_COMPILING) $@
|
@echo $(MSG_COMPILING) $@
|
||||||
|
|||||||
@@ -0,0 +1,134 @@
|
|||||||
|
/*
|
||||||
|
* Authors (alphabetical order)
|
||||||
|
* - Bertrand Songis <bsongis@gmail.com>
|
||||||
|
* - Bryan J. Rentoul (Gruvin) <gruvin@gmail.com>
|
||||||
|
* - Cameron Weeks <th9xer@gmail.com>
|
||||||
|
* - Erez Raviv
|
||||||
|
* - Jean-Pierre Parisy
|
||||||
|
* - Karl Szmutny <shadow@privy.de>
|
||||||
|
* - Michael Blandford
|
||||||
|
* - Michal Hlavinka
|
||||||
|
* - Pat Mackenzie
|
||||||
|
* - Philip Moss
|
||||||
|
* - Rob Thomson
|
||||||
|
* - Romolo Manfredini <romolo.manfredini@gmail.com>
|
||||||
|
* - Thomas Husterer
|
||||||
|
*
|
||||||
|
* open9x is based on code named
|
||||||
|
* gruvin9x by Bryan J. Rentoul: http://code.google.com/p/gruvin9x/,
|
||||||
|
* er9x by Erez Raviv: http://code.google.com/p/er9x/,
|
||||||
|
* and the original (and ongoing) project by
|
||||||
|
* Thomas Husterer, th9x: http://code.google.com/p/th9x/
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../open9x.h"
|
||||||
|
|
||||||
|
uint32_t readKeys()
|
||||||
|
{
|
||||||
|
register uint32_t x = GPIOC->IDR;
|
||||||
|
register uint32_t y = 0;
|
||||||
|
|
||||||
|
if (x & 0x00000020)
|
||||||
|
y |= 0x02 << KEY_ENTER;
|
||||||
|
if (x & 0x00000010)
|
||||||
|
y |= 0x02 << KEY_PLUS;
|
||||||
|
if (x & 0x00000008)
|
||||||
|
y |= 0x02 << KEY_MINUS;
|
||||||
|
if (x & 0x00000002)
|
||||||
|
y |= 0x02 << KEY_MENU;
|
||||||
|
if (x & 0x00000040)
|
||||||
|
y |= 0x02 << KEY_PAGE;
|
||||||
|
if (x & 0x01000000)
|
||||||
|
y |= 0x02 << KEY_EXIT;
|
||||||
|
|
||||||
|
// printf("readKeys(): %x => %x\n", x, y); fflush(stdout);
|
||||||
|
|
||||||
|
return y ;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t readTrims()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t keyDown()
|
||||||
|
{
|
||||||
|
return ~readKeys() & 0x6C ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TODO common to ARM */
|
||||||
|
void readKeysAndTrims()
|
||||||
|
{
|
||||||
|
register uint32_t i;
|
||||||
|
|
||||||
|
uint8_t enuk = KEY_MENU;
|
||||||
|
uint8_t in = ~readKeys();
|
||||||
|
for (i = 1; i < 7; i++) {
|
||||||
|
keys[enuk].input(in & (1 << i), (EnumKeys) enuk);
|
||||||
|
++enuk;
|
||||||
|
}
|
||||||
|
|
||||||
|
in = readTrims();
|
||||||
|
|
||||||
|
for (i = 1; i < 256; i <<= 1) {
|
||||||
|
keys[enuk].input(in & i, (EnumKeys) enuk);
|
||||||
|
++enuk;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !defined(SIMU)
|
||||||
|
void keysInit()
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStructure;
|
||||||
|
/* GPIOC GPIOD clock enable */
|
||||||
|
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOBUTTON, ENABLE);
|
||||||
|
|
||||||
|
/* GPIO Configuration*/
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_BUTTON_UP | PIN_BUTTON_ENTER | PIN_BUTTON_DOWN | PIN_TRIM3_UP | PIN_TRIM3_DN
|
||||||
|
| PIN_TRIM4_UP |PIN_TRIM4_DN | PIN_SW_A_L | PIN_SW_D_L | PIN_SW_F_H | PIN_SW_G_H
|
||||||
|
| PIN_SW_G_L | PIN_SW_H_L;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOE, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_HOME | PIN_ESC | PIN_PAGE;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOD, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_TRIM1_UP | PIN_TRIM1_DN | PIN_TRIM2_UP | PIN_TRIM2_DN;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_SW_B_H | PIN_SW_B_L | PIN_SW_C_H | PIN_SW_C_L | PIN_SW_D_H | PIN_SW_E_H | PIN_SW_F_L;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_SW_E_L;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOA, &GPIO_InitStructure);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "open9x.h"
|
#include "open9x.h"
|
||||||
|
|
||||||
#ifndef SIMU
|
#ifndef SIMU
|
||||||
inline void board_init()
|
inline void boardInit()
|
||||||
{
|
{
|
||||||
// Set up I/O port data directions and initial states
|
// Set up I/O port data directions and initial states
|
||||||
DDRA = 0xff; PORTA = 0x00; // LCD data
|
DDRA = 0xff; PORTA = 0x00; // LCD data
|
||||||
|
|||||||
+3
-3
@@ -61,7 +61,7 @@ volatile uint32_t lcdInputs;
|
|||||||
#define CPU_UINT uint32_t
|
#define CPU_UINT uint32_t
|
||||||
|
|
||||||
#if !defined(REVA)
|
#if !defined(REVA)
|
||||||
inline void init_soft_power()
|
inline void pwrInit()
|
||||||
{
|
{
|
||||||
// Configure RF_power (PC17)
|
// Configure RF_power (PC17)
|
||||||
configure_pins( PIO_PC17, PIN_ENABLE | PIN_INPUT | PIN_PORTC | PIN_NO_PULLUP | PIN_PULLDOWN ) ;
|
configure_pins( PIO_PC17, PIN_ENABLE | PIN_INPUT | PIN_PORTC | PIN_NO_PULLUP | PIN_PULLDOWN ) ;
|
||||||
@@ -670,7 +670,7 @@ void configure_pins( uint32_t pins, uint16_t config )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_init()
|
void boardInit()
|
||||||
{
|
{
|
||||||
// register uint32_t goto_usb ;
|
// register uint32_t goto_usb ;
|
||||||
register Pio *pioptr ;
|
register Pio *pioptr ;
|
||||||
@@ -687,7 +687,7 @@ void board_init()
|
|||||||
pioptr->PIO_OER = PIO_PA21 ; // Set bit A21 as output
|
pioptr->PIO_OER = PIO_PA21 ; // Set bit A21 as output
|
||||||
pioptr->PIO_SODR = PIO_PA21 ; // Set bit A21 ON
|
pioptr->PIO_SODR = PIO_PA21 ; // Set bit A21 ON
|
||||||
#else
|
#else
|
||||||
init_soft_power() ;
|
pwrInit() ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// pioptr->PIO_PUER = 0x80000000 ; // Enable pullup on bit A31 (EXIT)
|
// pioptr->PIO_PUER = 0x80000000 ; // Enable pullup on bit A31 (EXIT)
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
#include "open9x.h"
|
#include "open9x.h"
|
||||||
|
|
||||||
#ifndef SIMU
|
#ifndef SIMU
|
||||||
inline void board_init()
|
inline void boardInit()
|
||||||
{
|
{
|
||||||
// Set up I/O port data directions and initial states
|
// Set up I/O port data directions and initial states
|
||||||
DDRA = 0xff; PORTA = 0x00; // LCD data
|
DDRA = 0xff; PORTA = 0x00; // LCD data
|
||||||
|
|||||||
+3
-15
@@ -39,20 +39,7 @@ uint8_t maxTemperature = 0 ; // Raw temp reading
|
|||||||
volatile uint32_t Tenms ; // TODO to remove everywhere / use a #define
|
volatile uint32_t Tenms ; // TODO to remove everywhere / use a #define
|
||||||
|
|
||||||
void keysInit();
|
void keysInit();
|
||||||
|
void pwrInit();
|
||||||
inline void init_soft_power()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t check_soft_power()
|
|
||||||
{
|
|
||||||
return e_power_on;
|
|
||||||
}
|
|
||||||
|
|
||||||
// turn off soft power
|
|
||||||
void soft_power_off()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t getTemperature()
|
uint8_t getTemperature()
|
||||||
{
|
{
|
||||||
@@ -171,8 +158,9 @@ void usbMassStorage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(SIMU)
|
#if !defined(SIMU)
|
||||||
void board_init()
|
void boardInit()
|
||||||
{
|
{
|
||||||
|
pwrInit();
|
||||||
keysInit();
|
keysInit();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+7
-2
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "open9x.h"
|
#include "open9x.h"
|
||||||
|
|
||||||
uint8_t displayBuf[DISPLAY_W*DISPLAY_H/8];
|
uint8_t displayBuf[DISPLAY_W*(DISPLAY_H+7)/8];
|
||||||
#define DISPLAY_END (displayBuf+sizeof(displayBuf))
|
#define DISPLAY_END (displayBuf+sizeof(displayBuf))
|
||||||
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
|
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
|
||||||
|
|
||||||
@@ -45,13 +45,18 @@ void lcd_clear()
|
|||||||
void lcd_img(xcoord_t x, uint8_t y, const pm_uchar * img, uint8_t idx, uint8_t mode)
|
void lcd_img(xcoord_t x, uint8_t y, const pm_uchar * img, uint8_t idx, uint8_t mode)
|
||||||
{
|
{
|
||||||
const pm_uchar *q = img;
|
const pm_uchar *q = img;
|
||||||
|
#if defined(LCD260)
|
||||||
|
xcoord_t w = pgm_read_byte(q++);
|
||||||
|
if (w == 255) w += pgm_read_byte(q++);
|
||||||
|
#else
|
||||||
uint8_t w = pgm_read_byte(q++);
|
uint8_t w = pgm_read_byte(q++);
|
||||||
|
#endif
|
||||||
uint8_t hb = (pgm_read_byte(q++)+7)/8;
|
uint8_t hb = (pgm_read_byte(q++)+7)/8;
|
||||||
bool inv = (mode & INVERS) ? true : (mode & BLINK ? BLINK_ON_PHASE : false);
|
bool inv = (mode & INVERS) ? true : (mode & BLINK ? BLINK_ON_PHASE : false);
|
||||||
q += idx*w*hb;
|
q += idx*w*hb;
|
||||||
for (uint8_t yb = 0; yb < hb; yb++) {
|
for (uint8_t yb = 0; yb < hb; yb++) {
|
||||||
uint8_t *p = &displayBuf[ (y / 8 + yb) * DISPLAY_W + x ];
|
uint8_t *p = &displayBuf[ (y / 8 + yb) * DISPLAY_W + x ];
|
||||||
for (uint8_t i=0; i<w; i++){
|
for (xcoord_t i=0; i<w; i++){
|
||||||
uint8_t b = pgm_read_byte(q++);
|
uint8_t b = pgm_read_byte(q++);
|
||||||
ASSERT_IN_DISPLAY(p);
|
ASSERT_IN_DISPLAY(p);
|
||||||
*p++ = inv ? ~b : b;
|
*p++ = inv ? ~b : b;
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
#define LcdFlags uint8_t
|
#define LcdFlags uint8_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern uint8_t displayBuf[DISPLAY_W*DISPLAY_H/8];
|
extern uint8_t displayBuf[DISPLAY_W*(DISPLAY_H+7)/8];
|
||||||
extern uint8_t lcdLastPos;
|
extern uint8_t lcdLastPos;
|
||||||
|
|
||||||
#if defined(PCBSTD) && defined(VOICE)
|
#if defined(PCBSTD) && defined(VOICE)
|
||||||
|
|||||||
+4
-2
@@ -68,7 +68,9 @@ OS_MutexID mixerMutex;
|
|||||||
|
|
||||||
#if defined(SPLASH)
|
#if defined(SPLASH)
|
||||||
const pm_uchar splashdata[] PROGMEM = { 'S','P','S',0,
|
const pm_uchar splashdata[] PROGMEM = { 'S','P','S',0,
|
||||||
#if defined(PCBX9D)
|
#if defined(PCBACT)
|
||||||
|
#include "splash_ACT.lbm"
|
||||||
|
#elif defined(PCBX9D)
|
||||||
#include "splash_X9D.lbm"
|
#include "splash_X9D.lbm"
|
||||||
#else
|
#else
|
||||||
#include "splash_9x.lbm"
|
#include "splash_9x.lbm"
|
||||||
@@ -3525,7 +3527,7 @@ int main(void)
|
|||||||
|
|
||||||
wdt_disable();
|
wdt_disable();
|
||||||
|
|
||||||
board_init();
|
boardInit();
|
||||||
|
|
||||||
lcdInit();
|
lcdInit();
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -178,7 +178,7 @@ typedef const int8_t pm_int8_t;
|
|||||||
#define pgm_read_adr(x) *(x)
|
#define pgm_read_adr(x) *(x)
|
||||||
#define cli()
|
#define cli()
|
||||||
#define sei()
|
#define sei()
|
||||||
extern void board_init();
|
extern void boardInit();
|
||||||
#else
|
#else
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
@@ -935,20 +935,25 @@ void read_9_adc(void);
|
|||||||
#if defined(PCBX9D) || defined(PCBACT)
|
#if defined(PCBX9D) || defined(PCBACT)
|
||||||
#define __BACKLIGHT_ON
|
#define __BACKLIGHT_ON
|
||||||
#define __BACKLIGHT_OFF
|
#define __BACKLIGHT_OFF
|
||||||
|
#define IS_BACKLIGHT_ON() (1)
|
||||||
#elif defined (PCBSKY9X)
|
#elif defined (PCBSKY9X)
|
||||||
#define __BACKLIGHT_ON (PWM->PWM_CH_NUM[0].PWM_CDTY = g_eeGeneral.backlightBright)
|
#define __BACKLIGHT_ON (PWM->PWM_CH_NUM[0].PWM_CDTY = g_eeGeneral.backlightBright)
|
||||||
#define __BACKLIGHT_OFF (PWM->PWM_CH_NUM[0].PWM_CDTY = 100)
|
#define __BACKLIGHT_OFF (PWM->PWM_CH_NUM[0].PWM_CDTY = 100)
|
||||||
|
#define IS_BACKLIGHT_ON() (PWM->PWM_CH_NUM[0].PWM_CDTY != 100)
|
||||||
#elif defined (PCBGRUVIN9X)
|
#elif defined (PCBGRUVIN9X)
|
||||||
#define SPEAKER_ON TCCR0A |= (1 << COM0A0)
|
#define SPEAKER_ON TCCR0A |= (1 << COM0A0)
|
||||||
#define SPEAKER_OFF TCCR0A &= ~(1 << COM0A0)
|
#define SPEAKER_OFF TCCR0A &= ~(1 << COM0A0)
|
||||||
#define __BACKLIGHT_ON PORTC |= (1 << OUT_C_LIGHT)
|
#define __BACKLIGHT_ON PORTC |= (1 << OUT_C_LIGHT)
|
||||||
#define __BACKLIGHT_OFF PORTC &= ~(1 << OUT_C_LIGHT)
|
#define __BACKLIGHT_OFF PORTC &= ~(1 << OUT_C_LIGHT)
|
||||||
|
#define IS_BACKLIGHT_ON() (PORTC & (1<<OUT_C_LIGHT))
|
||||||
#elif defined(SP22)
|
#elif defined(SP22)
|
||||||
#define __BACKLIGHT_ON PORTB &= ~(1 << OUT_B_LIGHT)
|
#define __BACKLIGHT_ON PORTB &= ~(1 << OUT_B_LIGHT)
|
||||||
#define __BACKLIGHT_OFF PORTB |= (1 << OUT_B_LIGHT)
|
#define __BACKLIGHT_OFF PORTB |= (1 << OUT_B_LIGHT)
|
||||||
|
#define IS_BACKLIGHT_ON() (~PORTB & (1<<OUT_B_LIGHT))
|
||||||
#else
|
#else
|
||||||
#define __BACKLIGHT_ON PORTB |= (1 << OUT_B_LIGHT)
|
#define __BACKLIGHT_ON PORTB |= (1 << OUT_B_LIGHT)
|
||||||
#define __BACKLIGHT_OFF PORTB &= ~(1 << OUT_B_LIGHT)
|
#define __BACKLIGHT_OFF PORTB &= ~(1 << OUT_B_LIGHT)
|
||||||
|
#define IS_BACKLIGHT_ON() (PORTB & (1<<OUT_B_LIGHT))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBSTD) && defined(VOICE) && !defined(SIMU)
|
#if defined(PCBSTD) && defined(VOICE) && !defined(SIMU)
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ FILE *fp = NULL;
|
|||||||
#if defined(PCBX9D) || defined(PCBACT)
|
#if defined(PCBX9D) || defined(PCBACT)
|
||||||
GPIO_TypeDef gpiob;
|
GPIO_TypeDef gpiob;
|
||||||
GPIO_TypeDef gpioc;
|
GPIO_TypeDef gpioc;
|
||||||
|
GPIO_TypeDef gpiod;
|
||||||
|
GPIO_TypeDef gpioe;
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
Pio Pioa, Piob, Pioc;
|
Pio Pioa, Piob, Pioc;
|
||||||
Pwm pwm;
|
Pwm pwm;
|
||||||
|
|||||||
+12
-1
@@ -102,6 +102,12 @@ extern GPIO_TypeDef gpiob;
|
|||||||
extern GPIO_TypeDef gpioc;
|
extern GPIO_TypeDef gpioc;
|
||||||
#undef GPIOC
|
#undef GPIOC
|
||||||
#define GPIOC (&gpioc)
|
#define GPIOC (&gpioc)
|
||||||
|
extern GPIO_TypeDef gpiod;
|
||||||
|
#undef GPIOD
|
||||||
|
#define GPIOD (&gpiod)
|
||||||
|
extern GPIO_TypeDef gpioe;
|
||||||
|
#undef GPIOE
|
||||||
|
#define GPIOE (&gpioe)
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
extern Pio Pioa, Piob, Pioc;
|
extern Pio Pioa, Piob, Pioc;
|
||||||
extern Twi Twio;
|
extern Twi Twio;
|
||||||
@@ -309,7 +315,7 @@ void eeprom_read_block (void *pointer_ram,
|
|||||||
size_t size);
|
size_t size);
|
||||||
|
|
||||||
#define wdt_reset() sleep(1/*ms*/)
|
#define wdt_reset() sleep(1/*ms*/)
|
||||||
#define board_init()
|
#define boardInit()
|
||||||
|
|
||||||
#define OS_MutexID int
|
#define OS_MutexID int
|
||||||
#define OS_FlagID int
|
#define OS_FlagID int
|
||||||
@@ -333,5 +339,10 @@ void eeprom_read_block (void *pointer_ram,
|
|||||||
#define UART3_Configure(...)
|
#define UART3_Configure(...)
|
||||||
#define UART_Stop(...)
|
#define UART_Stop(...)
|
||||||
#define UART3_Stop(...)
|
#define UART3_Stop(...)
|
||||||
|
#define GPIO_Init(...)
|
||||||
|
#define GPIO_SetBits(...)
|
||||||
|
#define GPIO_ResetBits(...)
|
||||||
|
#define RCC_AHB1PeriphClockCmd(...)
|
||||||
|
#define GPIO_ReadInputDataBit(...) true
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+20
-28
@@ -50,22 +50,22 @@ int g_snapshot_idx = 0;
|
|||||||
uint64_t toto = 0;
|
uint64_t toto = 0;
|
||||||
|
|
||||||
#if defined(PCBX9D) || defined(PCBACT)
|
#if defined(PCBX9D) || defined(PCBACT)
|
||||||
#define ERSKY9X_RETURN_PIO GPIOC->IDR
|
#define ERSKY9X_RETURN_PIO GPIOE->IDR
|
||||||
#define ERSKY9X_RETURN_MASK 0x20
|
#define ERSKY9X_RETURN_MASK PIN_BUTTON_ENTER
|
||||||
#define ERSKY9X_EXIT_PIO GPIOC->IDR
|
#define ERSKY9X_EXIT_PIO GPIOD->IDR
|
||||||
#define ERSKY9X_EXIT_MASK (0x01000000)
|
#define ERSKY9X_EXIT_MASK PIN_BUTTON_EXIT
|
||||||
#define ERSKY9X_UP_PIO GPIOC->IDR
|
#define ERSKY9X_UP_PIO GPIOC->IDR
|
||||||
#define ERSKY9X_UP_MASK 0x00
|
#define ERSKY9X_UP_MASK 0x00
|
||||||
#define ERSKY9X_DOWN_PIO GPIOC->IDR
|
#define ERSKY9X_DOWN_PIO GPIOC->IDR
|
||||||
#define ERSKY9X_DOWN_MASK 0x00
|
#define ERSKY9X_DOWN_MASK 0x00
|
||||||
#define ERSKY9X_RIGHT_PIO GPIOC->IDR
|
#define ERSKY9X_RIGHT_PIO GPIOE->IDR
|
||||||
#define ERSKY9X_RIGHT_MASK 0x10
|
#define ERSKY9X_RIGHT_MASK PIN_BUTTON_PLUS
|
||||||
#define ERSKY9X_LEFT_PIO GPIOC->IDR
|
#define ERSKY9X_LEFT_PIO GPIOE->IDR
|
||||||
#define ERSKY9X_LEFT_MASK 0x08
|
#define ERSKY9X_LEFT_MASK PIN_BUTTON_MINUS
|
||||||
#define KEY_MENU_PIO GPIOC->IDR
|
#define KEY_MENU_PIO GPIOD->IDR
|
||||||
#define KEY_MENU_MASK 0x02
|
#define KEY_MENU_MASK PIN_BUTTON_MENU
|
||||||
#define KEY_PAGE_PIO GPIOC->IDR
|
#define KEY_PAGE_PIO GPIOD->IDR
|
||||||
#define KEY_PAGE_MASK 0x40
|
#define KEY_PAGE_MASK PIN_BUTTON_PAGE
|
||||||
#elif defined(PCBSKY9X) && defined(REVA)
|
#elif defined(PCBSKY9X) && defined(REVA)
|
||||||
#define ERSKY9X_RETURN_PIO PIOB->PIO_PDSR
|
#define ERSKY9X_RETURN_PIO PIOB->PIO_PDSR
|
||||||
#define ERSKY9X_RETURN_MASK (0x40)
|
#define ERSKY9X_RETURN_MASK (0x40)
|
||||||
@@ -471,25 +471,18 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PCBX9D) || defined(PCBACT)
|
||||||
|
#define BL_COLOR FXRGB(47,123,227)
|
||||||
|
#else
|
||||||
|
#define BL_COLOR FXRGB(150,200,152)
|
||||||
|
#endif
|
||||||
|
|
||||||
void Open9xSim::refreshDiplay()
|
void Open9xSim::refreshDiplay()
|
||||||
{
|
{
|
||||||
if (lcd_refresh) {
|
if (lcd_refresh) {
|
||||||
lcd_refresh = false;
|
lcd_refresh = false;
|
||||||
#if defined(PCBX9D)
|
if (IS_BACKLIGHT_ON())
|
||||||
if (1)
|
bmf->setOffColor(BL_COLOR);
|
||||||
// TODO here a define
|
|
||||||
#elif defined(PCBSKY9X)
|
|
||||||
if (PWM->PWM_CH_NUM[0].PWM_CDTY != 100)
|
|
||||||
#elif defined(PCBGRUVIN9X)
|
|
||||||
if (portc & 1<<OUT_C_LIGHT)
|
|
||||||
#else
|
|
||||||
if (portb & 1<<OUT_B_LIGHT)
|
|
||||||
#endif
|
|
||||||
#if defined(PCBX9D)
|
|
||||||
bmf->setOffColor(FXRGB(47,123,227));
|
|
||||||
#else
|
|
||||||
bmf->setOffColor(FXRGB(150,200,152));
|
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
bmf->setOffColor(FXRGB(200,200,200));
|
bmf->setOffColor(FXRGB(200,200,200));
|
||||||
|
|
||||||
@@ -513,7 +506,6 @@ void Open9xSim::refreshDiplay()
|
|||||||
bmp->render();
|
bmp->render();
|
||||||
bmf->setBitmap( bmp );
|
bmf->setBitmap( bmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Open9xSim *th9xSim;
|
Open9xSim *th9xSim;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
255,5, 75,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
|
||||||
|
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x0f,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x3f,0x3f,0x1f,0x0f,0x0f,0x07,0x07,0x07,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x07,0x07,0x07,0x07,0x0f,0xcf,0xff,0xff,0x7f,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0xe7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x3f,0x1f,0x0f,0x0f,0x07,0x07,0x07,0x03,0x83,0x83,0x83,0x83,0x03,0x03,0x03,0x07,0x07,0x07,0x0f,0x1f,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x1f,0x0f,0x0f,0x07,0x07,0x03,0x03,0x03,0x03,0x03,0x03,0x07,0x0f,0x1f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x3f,0x1f,0x1f,0x0f,0x07,0x07,0x07,0x03,0x83,0x83,0x83,0x83,0x03,0x03,0x03,0x03,0x07,0x07,0x0f,0x1f,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x1f,0x0f,0x0f,0x07,0x07,0x03,0x03,0x03,0x03,0x03,0x03,0x07,0x0f,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x1f,0x07,0x01,0x00,0x00,0x00,0x80,0xc0,0xf0,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x1f,0x07,0x01,0x00,0x00,0x00,0x00,0x80,0xe0,0xf0,0xf8,0xfc,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfc,0xf8,0xf8,0xf0,0xfc,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0x1e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xfc,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x07,0x01,0x00,0x00,0x00,0x00,0x00,0xc0,0xf8,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x3f,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xf8,0xfe,0xfe,0xff,0xff,0xff,0xff,0xfe,0xfc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0xff,0xff,0x1f,0x07,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x0e,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x1f,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xfc,0xfe,0xfe,0xff,0xff,0xff,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x1f,0x07,0x03,0x00,0x00,0x00,0x00,0x40,0x60,0x78,0x7e,0x7f,0x7f,0x7f,0x7f,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x3f,0x7f,0x7f,0x7f,0x7f,0x3f,0x3f,0x1f,0x07,0x00,0x00,0x00,0x00,0x80,0xc0,0xe0,0xf8,0xff,0xff,0xff,0xff,0x3f,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x7f,0x7f,0x7f,0x7f,0x7f,0x3f,0x1f,0x0f,0x07,0x00,0x00,0x00,0x00,0x80,0xc0,0xf0,0xfc,0xff,0xff,0xff,0xff,0xe0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x1e,0x1e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x1e,0x1e,0x1e,0x0e,0xce,0xfe,0xff,0xff,0xff,0xff,0x1f,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xfc,0xff,0xff,0xff,0xff,0xff,0x7f,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0x7f,0x1f,0x0f,0x03,0x00,0x00,0x00,0x00,0x80,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0f,0x1f,0x1f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x1f,0x1f,0x1f,0x0f,0x0f,0x07,0x03,0xf3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf8,0xf8,0xf8,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,0xfc,0xfc,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xf8,0xf8,0xf8,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,0xfc,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf8,0xf8,0xf8,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,0xfc,0xfc,0xff,0xff,0xff,0xff,0xff,0xf9,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xff,0xff,0xff,0xff,0xfb,0xf9,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xfc,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfc,0xf8,0xf8,0xf8,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,0xfc,0xfc,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf9,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x33,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
@@ -0,0 +1,210 @@
|
|||||||
|
#define splash_ACT_width 260
|
||||||
|
#define splash_ACT_height 75
|
||||||
|
static unsigned char splash_ACT_bits[] = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07,
|
||||||
|
0xe0, 0xff, 0xff, 0x07, 0x00, 0xf0, 0x01, 0x00, 0x00, 0xc0, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff,
|
||||||
|
0x01, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x00, 0x00, 0xc0,
|
||||||
|
0x01, 0x00, 0x00, 0xe0, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0x01, 0xe0, 0xff, 0x3f, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00,
|
||||||
|
0xe0, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01,
|
||||||
|
0xc0, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xc0, 0xff, 0x0f,
|
||||||
|
0x80, 0x3f, 0xe0, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0x07, 0xe0, 0xff, 0xe0,
|
||||||
|
0xff, 0x03, 0xf8, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x80,
|
||||||
|
0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0x07, 0xf0, 0xff, 0xff, 0x7f, 0xe0,
|
||||||
|
0xff, 0x7f, 0x00, 0xc0, 0xff, 0x07, 0xf0, 0xff, 0xf1, 0xff, 0x03, 0xfc,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0xfc, 0x3f, 0xc0,
|
||||||
|
0x01, 0xfc, 0xff, 0x00, 0xc0, 0xff, 0x03, 0x1c, 0xc0, 0xff, 0x3f, 0x40,
|
||||||
|
0xc0, 0xff, 0x03, 0xf8, 0xff, 0xf7, 0xff, 0x03, 0xfc, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0x03, 0x00, 0xf8, 0x3f, 0x40, 0x00, 0xf8, 0x7f,
|
||||||
|
0x00, 0x80, 0xff, 0x03, 0x04, 0x80, 0xff, 0x3f, 0x60, 0xc0, 0xff, 0x03,
|
||||||
|
0xfc, 0xff, 0xff, 0xff, 0x03, 0xfc, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0x01, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0xff,
|
||||||
|
0x01, 0x00, 0x00, 0xff, 0x1f, 0x60, 0xc0, 0xff, 0x01, 0xfe, 0xff, 0xff,
|
||||||
|
0xff, 0x01, 0xfc, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||||
|
0xe0, 0x1f, 0x00, 0x00, 0xf0, 0x0f, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
|
||||||
|
0xff, 0x0f, 0x70, 0xc0, 0xff, 0x01, 0xfe, 0xff, 0xff, 0xff, 0x01, 0xfe,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x0f, 0xe0, 0x1f, 0x00,
|
||||||
|
0x00, 0xe0, 0x07, 0xf0, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xff, 0x0f, 0x78,
|
||||||
|
0x80, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0xfe, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0x3f, 0xc0, 0x1f, 0xc0, 0x1f, 0x80, 0x07, 0xe0, 0x07,
|
||||||
|
0xf8, 0x01, 0xfc, 0x01, 0x38, 0x00, 0xff, 0x07, 0x78, 0x80, 0xff, 0x00,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0x01, 0xfe, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0x1f, 0xe0, 0x3f, 0xc0, 0x1f, 0xe0, 0x0f, 0xe0, 0x03, 0xfc, 0x03, 0xfc,
|
||||||
|
0x00, 0x7e, 0x00, 0xff, 0x07, 0x7c, 0x80, 0xff, 0x00, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0x00, 0xfe, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x1f, 0xe0, 0x3f,
|
||||||
|
0xc0, 0x0f, 0xe0, 0x1f, 0xe0, 0x03, 0xfe, 0x03, 0xfc, 0x00, 0x7f, 0x00,
|
||||||
|
0xff, 0x03, 0x7c, 0x80, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0x3f, 0xc0, 0x0f, 0xf0,
|
||||||
|
0x1f, 0xe0, 0x01, 0xfe, 0x03, 0xfc, 0x00, 0x7f, 0x00, 0xff, 0x01, 0x7e,
|
||||||
|
0x80, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0x0f, 0xf0, 0x3f, 0xc0, 0x0f, 0xf0, 0x1f, 0xe0, 0x01,
|
||||||
|
0x00, 0x00, 0xfc, 0x00, 0x7f, 0x80, 0xff, 0x01, 0xfe, 0x80, 0x7f, 0x80,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0x0f, 0xf0, 0x3f, 0xc0, 0x0f, 0xf0, 0x1f, 0xe0, 0x00, 0x00, 0x00, 0x7c,
|
||||||
|
0x00, 0x7f, 0x80, 0xff, 0x00, 0xff, 0x80, 0x7f, 0x80, 0xff, 0xff, 0xff,
|
||||||
|
0x7f, 0x00, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x07, 0xf8, 0x3f,
|
||||||
|
0xc0, 0x07, 0xf0, 0x1f, 0xe0, 0x00, 0x00, 0x00, 0x7c, 0x80, 0x7f, 0x80,
|
||||||
|
0xff, 0x80, 0xff, 0x80, 0x7f, 0x80, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x07, 0xf8, 0x3f, 0xc0, 0x07, 0xf8,
|
||||||
|
0x1f, 0xf0, 0x00, 0x00, 0x00, 0x7e, 0x80, 0x3f, 0x80, 0x7f, 0x00, 0x00,
|
||||||
|
0x00, 0x7f, 0x80, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0x07, 0xf8, 0x1f, 0xe0, 0x07, 0xf8, 0x0f, 0xf0, 0x00,
|
||||||
|
0x00, 0x00, 0x7e, 0x80, 0x3f, 0xc0, 0x3f, 0x00, 0x00, 0x00, 0x7f, 0x80,
|
||||||
|
0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0x07, 0xf8, 0x1f, 0xe0, 0x07, 0xf8, 0x0f, 0xf0, 0x00, 0xff, 0xff, 0x3f,
|
||||||
|
0x80, 0x3f, 0xc0, 0x3f, 0x00, 0x00, 0x00, 0x7f, 0x80, 0xff, 0xff, 0xff,
|
||||||
|
0x3f, 0x80, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x07, 0xf8, 0x1f,
|
||||||
|
0xe0, 0x03, 0xf8, 0x0f, 0xf8, 0x00, 0xff, 0xff, 0x3f, 0xc0, 0x3f, 0xc0,
|
||||||
|
0x1f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0xff, 0xff, 0xfc, 0x3f, 0xc0, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x07, 0xf8, 0x0f, 0xf0, 0x03, 0xfc,
|
||||||
|
0x07, 0xf8, 0x00, 0xfe, 0xff, 0x3f, 0xc0, 0x1f, 0xc0, 0x1f, 0x00, 0x00,
|
||||||
|
0x00, 0xff, 0x00, 0xff, 0x7f, 0xfc, 0x3f, 0xc0, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0x07, 0xf8, 0x0f, 0xf0, 0x03, 0xfc, 0x03, 0xfc, 0x00,
|
||||||
|
0xfe, 0x3f, 0x3f, 0xc0, 0x1f, 0xe0, 0x0f, 0x00, 0x00, 0x00, 0xff, 0x00,
|
||||||
|
0xfe, 0x1f, 0xfe, 0x3f, 0xc0, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0x07, 0xf0, 0x07, 0xf8, 0x03, 0xfc, 0x01, 0xfc, 0x01, 0xf8, 0x07, 0x1f,
|
||||||
|
0xc0, 0x1f, 0xe0, 0x07, 0xf8, 0xff, 0x00, 0xff, 0x00, 0xf8, 0x03, 0xfe,
|
||||||
|
0x1f, 0xc0, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0x01,
|
||||||
|
0xfc, 0x01, 0xfc, 0x00, 0xfe, 0x01, 0x00, 0x80, 0x1f, 0xe0, 0x1f, 0xe0,
|
||||||
|
0x07, 0xf8, 0xff, 0x01, 0xff, 0x01, 0x00, 0x00, 0xfe, 0x1f, 0xe0, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x01, 0x00,
|
||||||
|
0x00, 0xff, 0x03, 0x00, 0x80, 0x1f, 0xe0, 0x0f, 0xe0, 0x03, 0xfc, 0xff,
|
||||||
|
0x01, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x1f, 0xe0, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x01, 0x00, 0x80, 0xff, 0x07,
|
||||||
|
0x00, 0x80, 0x1f, 0xe0, 0x0f, 0xf0, 0x03, 0xfc, 0xff, 0x01, 0xfe, 0x03,
|
||||||
|
0x00, 0x00, 0xff, 0x1f, 0xe0, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0x3f, 0x00, 0x80, 0xff, 0x01, 0x00, 0xc0, 0xff, 0x0f, 0x00, 0x80, 0x0f,
|
||||||
|
0xe0, 0x0f, 0xf0, 0x01, 0xfe, 0xff, 0x01, 0xfe, 0x0f, 0x00, 0x00, 0xff,
|
||||||
|
0x0f, 0xe0, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xe0,
|
||||||
|
0xff, 0x00, 0x00, 0xe0, 0xff, 0x1f, 0x00, 0xe0, 0x0f, 0xf0, 0x0f, 0xf0,
|
||||||
|
0x00, 0xff, 0xff, 0x01, 0xfe, 0x1f, 0x00, 0xe0, 0xff, 0x0f, 0xf0, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x03, 0xfc, 0xff, 0x00, 0x07,
|
||||||
|
0xfc, 0xff, 0xff, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0x7f, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0x3f, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc0, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00 };
|
||||||
+56
-92
@@ -1,46 +1,47 @@
|
|||||||
#ifndef _HAL_
|
#ifndef _HAL_
|
||||||
#define _HAL_
|
#define _HAL_
|
||||||
|
|
||||||
/********************************
|
/*
|
||||||
GPIOS----所有涉及GPIO的定义
|
* GPIOS
|
||||||
*******************************************/
|
*/
|
||||||
|
|
||||||
#define RCC_AHB1Periph_GPIOBUTTON (RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE)
|
#define RCC_AHB1Periph_GPIOBUTTON (RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE)
|
||||||
//Button
|
|
||||||
#define PIN_BUTTON_UP GPIO_Pin_0 //SW3 PE.10
|
|
||||||
#define PIN_BUTTON_ENTER GPIO_Pin_1 //SW2 PE.11
|
|
||||||
#define PIN_BUTTON_DOWN GPIO_Pin_2 //SW1 PE.12
|
|
||||||
#define PIN_HOME GPIO_Pin_11 //SW4 PD.07
|
|
||||||
#define PIN_ESC GPIO_Pin_12 //SW5 PD.03
|
|
||||||
#define PIN_PAGE GPIO_Pin_10 //SW6 PD.02
|
|
||||||
|
|
||||||
//Trim
|
// Keys
|
||||||
#define PIN_TRIM1_UP GPIO_Pin_3 //PC.03
|
#define PIN_BUTTON_PLUS GPIO_Pin_0 //SW3 PE.10
|
||||||
|
#define PIN_BUTTON_ENTER GPIO_Pin_1 //SW2 PE.11
|
||||||
|
#define PIN_BUTTON_MINUS GPIO_Pin_2 //SW1 PE.12
|
||||||
|
#define PIN_BUTTON_MENU GPIO_Pin_11 //SW4 PD.07
|
||||||
|
#define PIN_BUTTON_EXIT GPIO_Pin_12 //SW5 PD.03
|
||||||
|
#define PIN_BUTTON_PAGE GPIO_Pin_10 //SW6 PD.02
|
||||||
|
|
||||||
|
// Trims
|
||||||
|
#define PIN_TRIM1_UP GPIO_Pin_3 //PC.03
|
||||||
#define PIN_TRIM1_DN GPIO_Pin_2 //PC.02
|
#define PIN_TRIM1_DN GPIO_Pin_2 //PC.02
|
||||||
#define PIN_TRIM2_UP GPIO_Pin_1 //PC.01
|
#define PIN_TRIM2_UP GPIO_Pin_1 //PC.01
|
||||||
#define PIN_TRIM2_DN GPIO_Pin_13 //PC.13
|
#define PIN_TRIM2_DN GPIO_Pin_13 //PC.13
|
||||||
#define PIN_TRIM3_UP GPIO_Pin_4 //PE.04
|
#define PIN_TRIM3_UP GPIO_Pin_4 //PE.04
|
||||||
#define PIN_TRIM3_DN GPIO_Pin_3 //PE.03
|
#define PIN_TRIM3_DN GPIO_Pin_3 //PE.03
|
||||||
#define PIN_TRIM4_UP GPIO_Pin_6 //PE.06
|
#define PIN_TRIM4_UP GPIO_Pin_6 //PE.06
|
||||||
#define PIN_TRIM4_DN GPIO_Pin_5 //PE.05
|
#define PIN_TRIM4_DN GPIO_Pin_5 //PE.05
|
||||||
|
|
||||||
//Switch
|
// Switchs
|
||||||
#define PIN_SW_A_L GPIO_Pin_14 //PE.14
|
#define PIN_SW_A_L GPIO_Pin_14 //PE.14
|
||||||
#define PIN_SW_B_H GPIO_Pin_3 //PB.03
|
#define PIN_SW_B_H GPIO_Pin_3 //PB.03
|
||||||
#define PIN_SW_B_L GPIO_Pin_4 //PB.04
|
#define PIN_SW_B_L GPIO_Pin_4 //PB.04
|
||||||
#define PIN_SW_C_H GPIO_Pin_5 //PB.05
|
#define PIN_SW_C_H GPIO_Pin_5 //PB.05
|
||||||
#define PIN_SW_C_L GPIO_Pin_6 //PB.06
|
#define PIN_SW_C_L GPIO_Pin_6 //PB.06
|
||||||
#define PIN_SW_D_H GPIO_Pin_7 //PB.07
|
#define PIN_SW_D_H GPIO_Pin_7 //PB.07
|
||||||
#define PIN_SW_D_L GPIO_Pin_2 //PE.02
|
#define PIN_SW_D_L GPIO_Pin_2 //PE.02
|
||||||
#define PIN_SW_E_H GPIO_Pin_0 //PB.00
|
#define PIN_SW_E_H GPIO_Pin_0 //PB.00
|
||||||
#define PIN_SW_E_L GPIO_Pin_5 //PA.05
|
#define PIN_SW_E_L GPIO_Pin_5 //PA.05
|
||||||
#define PIN_SW_F_H GPIO_Pin_7 //PE.07
|
#define PIN_SW_F_H GPIO_Pin_7 //PE.07
|
||||||
#define PIN_SW_F_L GPIO_Pin_1 //PB.01
|
#define PIN_SW_F_L GPIO_Pin_1 //PB.01
|
||||||
#define PIN_SW_G_H GPIO_Pin_9 //PE.09
|
#define PIN_SW_G_H GPIO_Pin_9 //PE.09
|
||||||
#define PIN_SW_G_L GPIO_Pin_8 //PE.08
|
#define PIN_SW_G_L GPIO_Pin_8 //PE.08
|
||||||
#define PIN_SW_H_L GPIO_Pin_13 //PE.13
|
#define PIN_SW_H_L GPIO_Pin_13 //PE.13
|
||||||
|
|
||||||
//ADC---8个
|
// ADC
|
||||||
#define PIN_STK_J1 GPIO_Pin_0 //PA.00
|
#define PIN_STK_J1 GPIO_Pin_0 //PA.00
|
||||||
#define PIN_STK_J2 GPIO_Pin_1 //PA.01
|
#define PIN_STK_J2 GPIO_Pin_1 //PA.01
|
||||||
#define PIN_STK_J3 GPIO_Pin_2 //PA.02
|
#define PIN_STK_J3 GPIO_Pin_2 //PA.02
|
||||||
@@ -52,10 +53,10 @@ GPIOS----
|
|||||||
#define PIN_MVOLT GPIO_Pin_0 //PC.00
|
#define PIN_MVOLT GPIO_Pin_0 //PC.00
|
||||||
#define RCC_AHB1Periph_GPIOADC RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOC
|
#define RCC_AHB1Periph_GPIOADC RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOC
|
||||||
|
|
||||||
//DAC---1个
|
// DAC
|
||||||
#define PIN_AUDIO_DAC GPIO_Pin_4 //PA.04
|
#define PIN_AUDIO_DAC GPIO_Pin_4 //PA.04
|
||||||
|
|
||||||
//Power_OFF Delay and LED
|
// Power_OFF Delay and LED
|
||||||
#define PIN_PWR_LED GPIO_Pin_6 //PC.06
|
#define PIN_PWR_LED GPIO_Pin_6 //PC.06
|
||||||
#define PIN_PWR_STATUS GPIO_Pin_1 //PD.01
|
#define PIN_PWR_STATUS GPIO_Pin_1 //PD.01
|
||||||
#define PIN_MCU_PWR GPIO_Pin_0 //PD.00
|
#define PIN_MCU_PWR GPIO_Pin_0 //PD.00
|
||||||
@@ -63,40 +64,41 @@ GPIOS----
|
|||||||
#define GPIOPWRLED GPIOC
|
#define GPIOPWRLED GPIOC
|
||||||
#define GPIOPWR GPIOD
|
#define GPIOPWR GPIOD
|
||||||
|
|
||||||
//Smart-Port
|
// Smart-Port
|
||||||
#define PIN_SPORT_ON GPIO_Pin_4 //PD.04
|
#define PIN_SPORT_ON GPIO_Pin_4 //PD.04
|
||||||
#define PIN_SPORT_TX GPIO_Pin_5 //PD.05
|
#define PIN_SPORT_TX GPIO_Pin_5 //PD.05
|
||||||
#define PIN_SPORT_RX GPIO_Pin_6 //PD.06
|
#define PIN_SPORT_RX GPIO_Pin_6 //PD.06
|
||||||
|
|
||||||
//Trainer Port
|
// Trainer Port
|
||||||
#define PIN_TR_PPM_IN GPIO_Pin_8 //PC.08
|
#define PIN_TR_PPM_IN GPIO_Pin_8 //PC.08
|
||||||
#define PIN_TR_PPM_OUT GPIO_Pin_9 //PC.09
|
#define PIN_TR_PPM_OUT GPIO_Pin_9 //PC.09
|
||||||
|
|
||||||
//Cppm
|
// Cppm
|
||||||
#define RCC_AHB1Periph_GPIOCPPM RCC_AHB1Periph_GPIOA
|
#define RCC_AHB1Periph_GPIOCPPM RCC_AHB1Periph_GPIOA
|
||||||
#define PIN_CPPM_OUT GPIO_Pin_8 //PA.08
|
#define PIN_CPPM_OUT GPIO_Pin_8 //PA.08
|
||||||
#define GPIOCPPM GPIOA
|
#define GPIOCPPM GPIOA
|
||||||
#define GPIO_PinSource_CPPM GPIO_PinSource8
|
#define GPIO_PinSource_CPPM GPIO_PinSource8
|
||||||
//Heart Beat
|
|
||||||
|
// Heart Beat
|
||||||
#define PIN_HEART_BEAT GPIO_Pin_7 //PC.07
|
#define PIN_HEART_BEAT GPIO_Pin_7 //PC.07
|
||||||
|
|
||||||
//Update UART----RS232 ---UART3
|
// Update UART----RS232 ---UART3
|
||||||
#define PIN_UPDATE_UART_TX GPIO_Pin_10 //PB.10
|
#define PIN_UPDATE_UART_TX GPIO_Pin_10 //PB.10
|
||||||
#define PIN_UPDATE_UART_RX GPIO_Pin_11 //PB.11
|
#define PIN_UPDATE_UART_RX GPIO_Pin_11 //PB.11
|
||||||
|
|
||||||
//USB_OTG
|
// USB_OTG
|
||||||
#define PIN_FS_VBUS GPIO_Pin_9 //PA.09
|
#define PIN_FS_VBUS GPIO_Pin_9 //PA.09
|
||||||
#define PIN_FS_ID GPIO_Pin_10 //PA.10
|
#define PIN_FS_ID GPIO_Pin_10 //PA.10
|
||||||
#define PIN_FS_DM GPIO_Pin_11 //PA.11
|
#define PIN_FS_DM GPIO_Pin_11 //PA.11
|
||||||
#define PIN_FS_DP GPIO_Pin_12 //PA.12
|
#define PIN_FS_DP GPIO_Pin_12 //PA.12
|
||||||
|
|
||||||
//BackLight PB8
|
// BackLight PB8
|
||||||
#define RCC_AHB1Periph_GPIOBL RCC_AHB1Periph_GPIOB
|
#define RCC_AHB1Periph_GPIOBL RCC_AHB1Periph_GPIOB
|
||||||
#define GPIO_Pin_BL GPIO_Pin_8 //PB.08
|
#define GPIO_Pin_BL GPIO_Pin_8 //PB.08
|
||||||
#define GPIOBL GPIOB
|
#define GPIOBL GPIOB
|
||||||
#define GPIO_PinSource_BL GPIO_PinSource8
|
#define GPIO_PinSource_BL GPIO_PinSource8
|
||||||
|
|
||||||
//LCD GPIOD 10-14 模拟spi
|
// LCD GPIOD 10-14
|
||||||
#define RCC_AHB1Periph_LCD RCC_AHB1Periph_GPIOD
|
#define RCC_AHB1Periph_LCD RCC_AHB1Periph_GPIOD
|
||||||
#define GPIO_LCD GPIOD
|
#define GPIO_LCD GPIOD
|
||||||
#define PIN_LCD_MOSI GPIO_Pin_10 //PD.10
|
#define PIN_LCD_MOSI GPIO_Pin_10 //PD.10
|
||||||
@@ -105,7 +107,7 @@ GPIOS----
|
|||||||
#define PIN_LCD_A0 GPIO_Pin_13 //PD.13
|
#define PIN_LCD_A0 GPIO_Pin_13 //PD.13
|
||||||
#define PIN_LCD_RST //GPIO_Pin_12 //pd12 test //RESET occurs when powered up,but should delay before initialize
|
#define PIN_LCD_RST //GPIO_Pin_12 //pd12 test //RESET occurs when powered up,but should delay before initialize
|
||||||
|
|
||||||
//Audio----I2S3
|
// Audio----I2S3
|
||||||
//#define CODEC_I2S_ADDRESS 0x4000380C
|
//#define CODEC_I2S_ADDRESS 0x4000380C
|
||||||
#define CODEC_I2S SPI3
|
#define CODEC_I2S SPI3
|
||||||
#define CODEC_I2S_CLK RCC_APB1Periph_SPI3
|
#define CODEC_I2S_CLK RCC_APB1Periph_SPI3
|
||||||
@@ -127,7 +129,7 @@ GPIOS----
|
|||||||
//#define CODEC_I2S_FLT GPIO_Pin_ //IIR/FIR
|
//#define CODEC_I2S_FLT GPIO_Pin_ //IIR/FIR
|
||||||
//#define CODEC_I2S_MODE GPIO_Pin_ //Connect to GND=I2S_STANDARD
|
//#define CODEC_I2S_MODE GPIO_Pin_ //Connect to GND=I2S_STANDARD
|
||||||
|
|
||||||
//Eeprom与cat5137
|
// Eeprom 5137
|
||||||
#define I2C_EE_GPIO GPIOE
|
#define I2C_EE_GPIO GPIOE
|
||||||
#define I2C_EE_WP_GPIO GPIOB
|
#define I2C_EE_WP_GPIO GPIOB
|
||||||
#define I2C_EE_GPIO_CLK RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOE
|
#define I2C_EE_GPIO_CLK RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOE
|
||||||
@@ -135,7 +137,7 @@ GPIOS----
|
|||||||
#define I2C_EE_SDA GPIO_Pin_0 //PE0
|
#define I2C_EE_SDA GPIO_Pin_0 //PE0
|
||||||
#define I2C_EE_WP GPIO_Pin_9 //PB9
|
#define I2C_EE_WP GPIO_Pin_9 //PB9
|
||||||
|
|
||||||
//SD卡---spi2
|
// SD---spi2
|
||||||
#define SPI_SD SPI2
|
#define SPI_SD SPI2
|
||||||
#define GPIO_AF_SD GPIO_AF_SPI2
|
#define GPIO_AF_SD GPIO_AF_SPI2
|
||||||
#define RCC_AHB1Periph_GPIO_CS RCC_AHB1Periph_GPIOB
|
#define RCC_AHB1Periph_GPIO_CS RCC_AHB1Periph_GPIOB
|
||||||
@@ -157,28 +159,14 @@ GPIOS----
|
|||||||
#define GPIO_Pin_WP GPIO_Pin_8 //PD.08
|
#define GPIO_Pin_WP GPIO_Pin_8 //PD.08
|
||||||
#define GPIO_Pin_CP GPIO_Pin_9 //PD.09
|
#define GPIO_Pin_CP GPIO_Pin_9 //PD.09
|
||||||
#define GPIO_CTL_SD GPIOD
|
#define GPIO_CTL_SD GPIOD
|
||||||
/*****************************************************************************
|
|
||||||
**************************************************************************
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
//其他接口涉及的可修改的宏定义
|
// Audio----I2S3-----SPI3
|
||||||
/******************************
|
|
||||||
lcd用
|
|
||||||
**************************************/
|
|
||||||
#define HIGHT (64)
|
|
||||||
#define WIDTH (212)
|
|
||||||
|
|
||||||
/*****************************************
|
|
||||||
Audio----I2S3-----SPI3
|
|
||||||
***************************************************************/
|
|
||||||
//#define CODEC_MCLK_ENABLED
|
|
||||||
#define CODEC_MCLK_DISABLED
|
#define CODEC_MCLK_DISABLED
|
||||||
#define CODEC_USE_INT
|
#define CODEC_USE_INT
|
||||||
//#define CODEC_USE_DMA
|
//#define CODEC_USE_DMA
|
||||||
#define AudioFreq I2S_AudioFreq_44k
|
#define AudioFreq I2S_AudioFreq_44k
|
||||||
/*************************************************
|
|
||||||
模拟I2C---EEPROM and CAT5137共用
|
// EEPROM and CAT5137
|
||||||
********************************************************/
|
|
||||||
#define EE_M24C08 /* Support the device: M24C08. */
|
#define EE_M24C08 /* Support the device: M24C08. */
|
||||||
//#define EE_M24C64_32 /* Support the devices: M24C32 and M24C64 */
|
//#define EE_M24C64_32 /* Support the devices: M24C32 and M24C64 */
|
||||||
#define I2C_Speed 200000
|
#define I2C_Speed 200000
|
||||||
@@ -204,16 +192,14 @@ Audio----I2S3-----SPI3
|
|||||||
#define I2C_CAT5137_ADDRESS 0x5C//0101110
|
#define I2C_CAT5137_ADDRESS 0x5C//0101110
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// SD card----SPI2
|
||||||
/*****************************************
|
|
||||||
SD card----SPI2
|
|
||||||
***************************************************************/
|
|
||||||
// demo uses a command line option to define this (see Makefile):
|
// demo uses a command line option to define this (see Makefile):
|
||||||
// #define STM32_SD_USE_DMA
|
// #define STM32_SD_USE_DMA
|
||||||
#ifdef STM32_SD_USE_DMA
|
#ifdef STM32_SD_USE_DMA
|
||||||
// #warning "Information only: using DMA"
|
// #warning "Information only: using DMA"
|
||||||
#pragma message "*** Using DMA ***"
|
#pragma message "*** Using DMA ***"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* set to 1 to provide a disk_ioctrl function even if not needed by the FatFs */
|
/* set to 1 to provide a disk_ioctrl function even if not needed by the FatFs */
|
||||||
#define STM32_SD_DISK_IOCTRL_FORCE (0)
|
#define STM32_SD_DISK_IOCTRL_FORCE (0)
|
||||||
|
|
||||||
@@ -223,33 +209,11 @@ SD card----SPI2
|
|||||||
|
|
||||||
#define SPI_BaudRatePrescaler_SPI_SD SPI_BaudRatePrescaler_4 // - for SPI1 and full-speed APB2: 60MHz/4 =15MHZ < 20MHZ
|
#define SPI_BaudRatePrescaler_SPI_SD SPI_BaudRatePrescaler_4 // - for SPI1 and full-speed APB2: 60MHz/4 =15MHZ < 20MHZ
|
||||||
|
|
||||||
//selectable
|
// Selectable
|
||||||
//DMA相关未作修改
|
// DMA
|
||||||
#define DMA_Channel_SPI_SD_RX DMA1_Channel2
|
#define DMA_Channel_SPI_SD_RX DMA1_Channel2
|
||||||
#define DMA_Channel_SPI_SD_TX DMA1_Channel3
|
#define DMA_Channel_SPI_SD_TX DMA1_Channel3
|
||||||
#define DMA_FLAG_SPI_SD_TC_RX DMA1_FLAG_TC2
|
#define DMA_FLAG_SPI_SD_TC_RX DMA1_FLAG_TC2
|
||||||
#define DMA_FLAG_SPI_SD_TC_TX DMA1_FLAG_TC3
|
#define DMA_FLAG_SPI_SD_TC_TX DMA1_FLAG_TC3
|
||||||
|
|
||||||
/******************************************
|
|
||||||
|
|
||||||
***************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
+42
-168
@@ -33,184 +33,58 @@
|
|||||||
|
|
||||||
#include "../open9x.h"
|
#include "../open9x.h"
|
||||||
|
|
||||||
#if 0
|
// TODO FrSky code included PIN_BIND and PIN_POWER
|
||||||
// TODO code from FrSky
|
|
||||||
void detect_buttons()
|
|
||||||
{
|
|
||||||
short t_pin; short t_pin1;
|
|
||||||
static short key_down_interval;
|
|
||||||
key_down_interval++;
|
|
||||||
|
|
||||||
t_pin = (~(GPIOC->IDR))
|
|
||||||
& (PIN_BUTTON_UP | PIN_BUTTON_ENTER | PIN_BUTTON_DOWN);
|
|
||||||
t_pin1 = (~(GPIOB->IDR)) & (PIN_POWER | PIN_BIND);
|
|
||||||
|
|
||||||
if ((t_pin1 & PIN_BIND) && (!(pin_status1 & PIN_BIND))
|
|
||||||
&& (!(t_pin1 & PIN_POWER))) {
|
|
||||||
}
|
|
||||||
if ((t_pin1 & PIN_POWER) && (!(pin_status1 & PIN_POWER))) {
|
|
||||||
|
|
||||||
}
|
|
||||||
if ((pin_status1 & PIN_BIND) && (pin_status1 & PIN_POWER)) {
|
|
||||||
static char t_pin_bind;
|
|
||||||
t_pin_bind++; //Õâ¸ö±äÁ¿
|
|
||||||
if ((t_pin_bind == 39) || (t_pin_bind == 69)) {
|
|
||||||
t_pin_bind = 40;
|
|
||||||
//SetIDProc(0,0,0,t_pin_bind);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((t_pin & PIN_BUTTON_UP) && (!(pin_status & PIN_BUTTON_UP))) {
|
|
||||||
|
|
||||||
}
|
|
||||||
if ((t_pin & PIN_BUTTON_ENTER) && (!(pin_status & PIN_BUTTON_ENTER))) {
|
|
||||||
|
|
||||||
}
|
|
||||||
if ((t_pin & PIN_BUTTON_DOWN) && (!(pin_status & PIN_BUTTON_DOWN))) {
|
|
||||||
}
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
if ((pin_status & PIN_BUTTON_UP)) {
|
|
||||||
static char t_pin_up;
|
|
||||||
t_pin_up++; //Õâ¸ö±äÁ¿
|
|
||||||
if ((t_pin_up == 9) || (t_pin_up == 22)) {
|
|
||||||
t_pin_up = 10;
|
|
||||||
|
|
||||||
}
|
|
||||||
else if ((!(t_pin & PIN_BUTTON_UP))) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((pin_status & PIN_BUTTON_ENTER)) {
|
|
||||||
static char t_pin_enter;
|
|
||||||
t_pin_enter++;
|
|
||||||
if ((t_pin_enter == 9) || (t_pin_enter == 22)) {
|
|
||||||
t_pin_enter = 10;
|
|
||||||
|
|
||||||
}
|
|
||||||
else if ((!(t_pin & PIN_BUTTON_ENTER))) {
|
|
||||||
if (t_pin_enter < 9)
|
|
||||||
|
|
||||||
t_pin_enter = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((pin_status & PIN_BUTTON_DOWN)) {
|
|
||||||
static char t_pin_down;
|
|
||||||
t_pin_down++;
|
|
||||||
if ((t_pin_down == 9) || (t_pin_down == 22)) {
|
|
||||||
t_pin_down = 10;
|
|
||||||
|
|
||||||
}
|
|
||||||
else if ((!(t_pin & PIN_BUTTON_DOWN))) {
|
|
||||||
if (t_pin_down < 9)
|
|
||||||
|
|
||||||
t_pin_down = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pin_status = t_pin;
|
|
||||||
pin_status1 = t_pin1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint32_t readKeys()
|
uint32_t readKeys()
|
||||||
{
|
{
|
||||||
register uint32_t x = GPIOC->IDR; // 6 LEFT, 5 RIGHT, 4 DOWN, 3 UP
|
register uint32_t d = GPIOD->IDR;
|
||||||
register uint32_t y = 0;
|
register uint32_t e = GPIOE->IDR;
|
||||||
|
register uint32_t result = 0;
|
||||||
|
|
||||||
if (x & 0x00000020)
|
if (e & PIN_BUTTON_ENTER)
|
||||||
y |= 0x02 << KEY_ENTER;
|
result |= 0x02 << KEY_ENTER;
|
||||||
if (x & 0x00000010)
|
if (e & PIN_BUTTON_PLUS)
|
||||||
y |= 0x02 << KEY_PLUS;
|
result |= 0x02 << KEY_PLUS;
|
||||||
if (x & 0x00000008)
|
if (e & PIN_BUTTON_MINUS)
|
||||||
y |= 0x02 << KEY_MINUS;
|
result |= 0x02 << KEY_MINUS;
|
||||||
if (x & 0x00000002)
|
|
||||||
y |= 0x02 << KEY_MENU;
|
|
||||||
if (x & 0x00000040)
|
|
||||||
y |= 0x02 << KEY_PAGE;
|
|
||||||
if (x & 0x01000000)
|
|
||||||
y |= 0x02 << KEY_EXIT;
|
|
||||||
|
|
||||||
// printf("readKeys(): %x => %x\n", x, y); fflush(stdout);
|
if (d & PIN_BUTTON_MENU)
|
||||||
|
result |= 0x02 << KEY_MENU;
|
||||||
|
if (d & PIN_BUTTON_PAGE)
|
||||||
|
result |= 0x02 << KEY_PAGE;
|
||||||
|
if (d & PIN_BUTTON_EXIT)
|
||||||
|
result |= 0x02 << KEY_EXIT;
|
||||||
|
|
||||||
return y ;
|
// printf("readKeys(): %x %x => %x\n", d, e, result); fflush(stdout);
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t readTrims()
|
uint32_t readTrims()
|
||||||
{
|
{
|
||||||
#if 0
|
register uint32_t c = GPIOC->IDR;
|
||||||
|
register uint32_t e = GPIOE->IDR;
|
||||||
|
register uint32_t result = 0;
|
||||||
|
|
||||||
uint32_t trims;
|
if (c & PIN_TRIM1_UP)
|
||||||
uint32_t trima;
|
result |= 0x02;
|
||||||
|
if (c & PIN_TRIM1_DN)
|
||||||
|
result |= 0x01;
|
||||||
|
if (c & PIN_TRIM2_UP)
|
||||||
|
result |= 0x04;
|
||||||
|
if (c & PIN_TRIM2_DN)
|
||||||
|
result |= 0x03;
|
||||||
|
|
||||||
trims = 0;
|
if (e & PIN_TRIM3_UP)
|
||||||
|
result |= 0x06;
|
||||||
|
if (e & PIN_TRIM3_DN)
|
||||||
|
result |= 0x05;
|
||||||
|
if (e & PIN_TRIM4_UP)
|
||||||
|
result |= 0x08;
|
||||||
|
if (e & PIN_TRIM4_DN)
|
||||||
|
result |= 0x07;
|
||||||
|
|
||||||
trima = PIOA->PIO_PDSR;
|
return result;
|
||||||
|
|
||||||
// TRIM_LH_DOWN PA7 (PA23)
|
|
||||||
#if defined(REVA)
|
|
||||||
if ( ( trima & 0x0080 ) == 0 )
|
|
||||||
#else
|
|
||||||
if ((trima & 0x00800000) == 0)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
trims |= 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_LV_DOWN PA27 (PA24)
|
|
||||||
#if defined(REVA)
|
|
||||||
if ( ( trima & 0x08000000 ) == 0 )
|
|
||||||
#else
|
|
||||||
if ((trima & 0x01000000) == 0)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
trims |= 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_RV_UP PA30 (PA1)
|
|
||||||
#if defined(REVA)
|
|
||||||
if ( ( trima & 0x40000000 ) == 0 )
|
|
||||||
#else
|
|
||||||
if ((trima & 0x00000002) == 0)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
trims |= 0x20;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_RH_DOWN PA29 (PA0)
|
|
||||||
#if defined(REVA)
|
|
||||||
if ( ( trima & 0x20000000 ) == 0 )
|
|
||||||
#else
|
|
||||||
if ((trima & 0x00000001) == 0)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
trims |= 0x40;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_LH_UP PB4
|
|
||||||
if ((PIOB->PIO_PDSR & 0x10) == 0) {
|
|
||||||
trims |= 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
trima = PIOC->PIO_PDSR;
|
|
||||||
// TRIM_LV_UP PC28
|
|
||||||
if ((trima & 0x10000000) == 0) {
|
|
||||||
trims |= 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_RV_DOWN PC10
|
|
||||||
if ((trima & 0x00000400) == 0) {
|
|
||||||
trims |= 0x10;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TRIM_RH_UP PC9
|
|
||||||
if ((trima & 0x00000200) == 0) {
|
|
||||||
trims |= 0x80;
|
|
||||||
}
|
|
||||||
|
|
||||||
return trims;
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t keyDown()
|
uint8_t keyDown()
|
||||||
@@ -246,16 +120,16 @@ void keysInit()
|
|||||||
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOBUTTON, ENABLE);
|
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOBUTTON, ENABLE);
|
||||||
|
|
||||||
/* GPIO Configuration*/
|
/* GPIO Configuration*/
|
||||||
GPIO_InitStructure.GPIO_Pin = PIN_BUTTON_UP | PIN_BUTTON_ENTER | PIN_BUTTON_DOWN | PIN_TRIM3_UP | PIN_TRIM3_DN
|
GPIO_InitStructure.GPIO_Pin = PIN_BUTTON_PLUS | PIN_BUTTON_ENTER | PIN_BUTTON_MINUS | PIN_TRIM3_UP | PIN_TRIM3_DN
|
||||||
| PIN_TRIM4_UP |PIN_TRIM4_DN | PIN_SW_A_L | PIN_SW_D_L | PIN_SW_F_H | PIN_SW_G_H
|
| PIN_TRIM4_UP |PIN_TRIM4_DN | PIN_SW_A_L | PIN_SW_D_L | PIN_SW_F_H | PIN_SW_G_H
|
||||||
| PIN_SW_G_L | PIN_SW_H_L;
|
| PIN_SW_G_L | PIN_SW_H_L;
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
GPIO_Init(GPIOE, &GPIO_InitStructure);
|
GPIO_Init(GPIOE, &GPIO_InitStructure);
|
||||||
|
|
||||||
GPIO_InitStructure.GPIO_Pin = PIN_HOME | PIN_ESC | PIN_PAGE;
|
GPIO_InitStructure.GPIO_Pin = PIN_BUTTON_MENU | PIN_BUTTON_EXIT | PIN_BUTTON_PAGE;
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#include "hal.h"
|
|
||||||
#include "stm32f2xx.h"
|
|
||||||
#include "pwr_ctrl.h"
|
|
||||||
|
|
||||||
void pwr_ctrl_down()
|
|
||||||
{
|
|
||||||
GPIO_SetBits(GPIOPWR,PIN_MCU_PWR);
|
|
||||||
//ee_save_data();
|
|
||||||
GPIO_ResetBits(GPIOPWR,PIN_MCU_PWR);
|
|
||||||
}
|
|
||||||
|
|
||||||
void pwr_ctrl_on()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void check_pwr() //¶¨Ê±ÒÖ»òÖжϣ¬ÔÙ²âÊÔ
|
|
||||||
{
|
|
||||||
if( GPIO_ReadInputDataBit(GPIOPWR,PIN_PWR_STATUS) == Bit_RESET)
|
|
||||||
{
|
|
||||||
pwr_ctrl_down();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void pwr_io_init()
|
|
||||||
{
|
|
||||||
GPIO_InitTypeDef GPIO_InitStructure;
|
|
||||||
/* GPIOC GPIOD clock enable */
|
|
||||||
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOPWR, ENABLE);
|
|
||||||
|
|
||||||
/* GPIO Configuration*/
|
|
||||||
GPIO_InitStructure.GPIO_Pin = PIN_MCU_PWR | PIN_PWR_ON;
|
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
|
||||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
|
||||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
|
||||||
GPIO_Init(GPIOPWR, &GPIO_InitStructure);
|
|
||||||
|
|
||||||
GPIO_InitStructure.GPIO_Pin = PIN_PWR_STATUS;
|
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
|
||||||
GPIO_Init(GPIOPWR, &GPIO_InitStructure);
|
|
||||||
|
|
||||||
GPIO_InitStructure.GPIO_Pin = PIN_PWR_LED;
|
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
|
||||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
|
||||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
|
||||||
GPIO_Init(GPIOPWRLED, &GPIO_InitStructure);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#ifndef _PWR_CTRL_H_
|
|
||||||
#define _PWR_CTRL_H_
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* Authors (alphabetical order)
|
||||||
|
* - Bertrand Songis <bsongis@gmail.com>
|
||||||
|
* - Bryan J. Rentoul (Gruvin) <gruvin@gmail.com>
|
||||||
|
* - Cameron Weeks <th9xer@gmail.com>
|
||||||
|
* - Erez Raviv
|
||||||
|
* - Jean-Pierre Parisy
|
||||||
|
* - Karl Szmutny <shadow@privy.de>
|
||||||
|
* - Michael Blandford
|
||||||
|
* - Michal Hlavinka
|
||||||
|
* - Pat Mackenzie
|
||||||
|
* - Philip Moss
|
||||||
|
* - Rob Thomson
|
||||||
|
* - Romolo Manfredini <romolo.manfredini@gmail.com>
|
||||||
|
* - Thomas Husterer
|
||||||
|
*
|
||||||
|
* open9x is based on code named
|
||||||
|
* gruvin9x by Bryan J. Rentoul: http://code.google.com/p/gruvin9x/,
|
||||||
|
* er9x by Erez Raviv: http://code.google.com/p/er9x/,
|
||||||
|
* and the original (and ongoing) project by
|
||||||
|
* Thomas Husterer, th9x: http://code.google.com/p/th9x/
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../open9x.h"
|
||||||
|
|
||||||
|
void soft_power_off()
|
||||||
|
{
|
||||||
|
GPIO_SetBits(GPIOPWR,PIN_MCU_PWR);
|
||||||
|
GPIO_ResetBits(GPIOPWR,PIN_MCU_PWR);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t check_soft_power()
|
||||||
|
{
|
||||||
|
if (GPIO_ReadInputDataBit(GPIOPWR,PIN_PWR_STATUS) == Bit_RESET)
|
||||||
|
return e_power_off;
|
||||||
|
else
|
||||||
|
return e_power_on;
|
||||||
|
}
|
||||||
|
|
||||||
|
void pwrInit()
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStructure;
|
||||||
|
/* GPIOC GPIOD clock enable */
|
||||||
|
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOPWR, ENABLE);
|
||||||
|
|
||||||
|
/* GPIO Configuration*/
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_MCU_PWR | PIN_PWR_LED;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOPWR, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_PWR_STATUS;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
GPIO_Init(GPIOPWR, &GPIO_InitStructure);
|
||||||
|
|
||||||
|
GPIO_InitStructure.GPIO_Pin = PIN_PWR_LED;
|
||||||
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
||||||
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
|
||||||
|
GPIO_Init(GPIOPWRLED, &GPIO_InitStructure);
|
||||||
|
}
|
||||||
@@ -153,35 +153,6 @@ void cancelTimer(char timerID)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|||||||
+16
-4
@@ -8,7 +8,20 @@ width, height = image.size().width(), image.size().height()
|
|||||||
|
|
||||||
f = open(sys.argv[2], "w")
|
f = open(sys.argv[2], "w")
|
||||||
|
|
||||||
if sys.argv[3] == "img":
|
if sys.argv[3] == "largimg":
|
||||||
|
rows = 1
|
||||||
|
if len(sys.argv) > 4:
|
||||||
|
rows = int(sys.argv[4])
|
||||||
|
f.write("255,%d, %d,\n" % (width-255, height/rows))
|
||||||
|
for y in range(0, height, 8):
|
||||||
|
for x in range(width):
|
||||||
|
value = 0
|
||||||
|
for z in range(8):
|
||||||
|
if y+z < height and image.pixel(x, y+z) == Qt.qRgb(0, 0, 0):
|
||||||
|
value += 1 << z
|
||||||
|
f.write("0x%02x," % value)
|
||||||
|
f.write("\n")
|
||||||
|
elif sys.argv[3] == "img":
|
||||||
rows = 1
|
rows = 1
|
||||||
if len(sys.argv) > 4:
|
if len(sys.argv) > 4:
|
||||||
rows = int(sys.argv[4])
|
rows = int(sys.argv[4])
|
||||||
@@ -17,7 +30,7 @@ if sys.argv[3] == "img":
|
|||||||
for x in range(width):
|
for x in range(width):
|
||||||
value = 0
|
value = 0
|
||||||
for z in range(8):
|
for z in range(8):
|
||||||
if image.pixel(x, y+z) == Qt.qRgb(0, 0, 0):
|
if y+z < height and image.pixel(x, y+z) == Qt.qRgb(0, 0, 0):
|
||||||
value += 1 << z
|
value += 1 << z
|
||||||
f.write("0x%02x," % value)
|
f.write("0x%02x," % value)
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
@@ -68,6 +81,5 @@ elif sys.argv[3] == "10x14":
|
|||||||
value += 1 << z
|
value += 1 << z
|
||||||
f.write("0x%02x," % value)
|
f.write("0x%02x," % value)
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print "wrong arg"
|
print "wrong argument", sys.argv[3]
|
||||||
|
|||||||
Reference in New Issue
Block a user