You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
477 B

  1. #ifndef __MODBUS_FLASH_H
  2. #define __MODBUS_FLASH_H
  3. /*写入FLASH中的Sector 11*/
  4. /*FLASH地址每+1,代表1字节*/
  5. /*Sector 11起始地址*/
  6. #define MODBUS_FLASH_BASE 0x080E0000UL
  7. /*Sector 11编号*/
  8. #define MODBUS_FLASH_SECTOR FLASH_Sector_11
  9. /*线圈数据起始地址*/
  10. #define MODBUS_FLASH_COIL_ADDR MODBUS_FLASH_BASE
  11. /*寄存器数据起始地址*/
  12. #define MODBUS_FLASH_REG_ADDR (MODBUS_FLASH_BASE + 0x4E2UL) /*0x4E2 = K1250*/
  13. #endif