[X9D] Soft switch not working. I remove the code for the moment.
This commit is contained in:
+1
-1
@@ -168,7 +168,7 @@
|
|||||||
|
|
||||||
// EEPROM and CAT5137
|
// EEPROM and CAT5137
|
||||||
#define I2C_Speed 200000
|
#define I2C_Speed 200000
|
||||||
#define I2C_FLASH_PAGESIZE (64)
|
#define I2C_FLASH_PAGESIZE 64
|
||||||
#define I2C_EEPROM_ADDRESS 0xA0
|
#define I2C_EEPROM_ADDRESS 0xA0
|
||||||
#define I2C_CAT5137_ADDRESS 0x5C //0101110
|
#define I2C_CAT5137_ADDRESS 0x5C //0101110
|
||||||
|
|
||||||
|
|||||||
@@ -41,9 +41,12 @@ void soft_power_off()
|
|||||||
|
|
||||||
uint32_t check_soft_power()
|
uint32_t check_soft_power()
|
||||||
{
|
{
|
||||||
if (GPIO_ReadInputDataBit(GPIOPWR,PIN_PWR_STATUS) == Bit_RESET)
|
#if 0
|
||||||
|
// TODO doesn't work :(
|
||||||
|
if (GPIO_ReadInputDataBit(GPIOPWR, PIN_PWR_STATUS) == Bit_RESET)
|
||||||
return e_power_off;
|
return e_power_off;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
return e_power_on;
|
return e_power_on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
**
|
**
|
||||||
** File : stm32_flash.ld
|
** File : stm32_flash.ld
|
||||||
**
|
**
|
||||||
** Abstract : Linker script for STM32F207IG Device with
|
** Abstract : Linker script for STM32F205 Device with
|
||||||
** 1MByte FLASH, 128KByte SRAM
|
** 0.5MByte FLASH, 128KByte SRAM
|
||||||
**
|
**
|
||||||
** Set heap size, stack size and stack location according
|
** Set heap size, stack size and stack location according
|
||||||
** to application requirements.
|
** to application requirements.
|
||||||
@@ -42,7 +42,7 @@ _Min_Stack_Size = 0x200; /* required amount of stack */
|
|||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
@@ -51,17 +51,12 @@ MEMORY
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* The startup code goes first into FLASH */
|
/* The startup code goes first into FLASH */
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
/* The program code and other data goes into FLASH */
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
KEEP(*(.isr_vector)) /* Startup code */
|
||||||
*(.text) /* .text sections (code) */
|
*(.text) /* .text sections (code) */
|
||||||
*(.text*) /* .text* sections (code) */
|
*(.text*) /* .text* sections (code) */
|
||||||
*(.rodata) /* .rodata sections (constants, strings, etc.) */
|
*(.rodata) /* .rodata sections (constants, strings, etc.) */
|
||||||
|
|||||||
Reference in New Issue
Block a user