<commit_before>#include <stdio.h>
#include "stm8.h"

#define REGS_STM8S { \
	  	.CLK_CKDIVR = 0x50c6,  \
		.FLASH_PUKR = 0x5062,  \
		.FLASH_DUKR = 0x5064,  \
		.FLASH_IAPSR = 0x505f, \
		.FLASH_CR2 = 0x505b,   \
		.FLASH_NCR2 = 0x505c,   \
}

// Note: FLASH_NCR2 not present on stm8l
#define REGS_STM8L { \
		.CLK_CKDIVR = 0x50c6,  \
		.FLASH_PUKR = 0x5052,  \
		.FLASH_DUKR = 0x5053,  \
		.FLASH_IAPSR = 0x5054, \
		.FLASH_CR2 = 0x5051,   \
		.FLASH_NCR2 = 0x0000,   \
}

stm8_device_t stm8_devices[] = {
	{
	  .name = "stm8s003",
	  .ram_start = 0x0000,
	  .ram_size = 1*1024,
	  .eeprom_start = 0x4000,
	  .eeprom_size = 128,
	  .flash_start = 0x8000,
	  .flash_size = 8*1024,
      .flash_block_size = 64,
	  REGS_STM8S
	},<commit_msg>Added support for stm8s005k6<commit_after>#include <stdio.h>
#include "stm8.h"

#define REGS_STM8S { \
	  	.CLK_CKDIVR = 0x50c6,  \
		.FLASH_PUKR = 0x5062,  \
		.FLASH_DUKR = 0x5064,  \
		.FLASH_IAPSR = 0x505f, \
		.FLASH_CR2 = 0x505b,   \
		.FLASH_NCR2 = 0x505c,   \
}

// Note: FLASH_NCR2 not present on stm8l
#define REGS_STM8L { \
		.CLK_CKDIVR = 0x50c6,  \
		.FLASH_PUKR = 0x5052,  \
		.FLASH_DUKR = 0x5053,  \
		.FLASH_IAPSR = 0x5054, \
		.FLASH_CR2 = 0x5051,   \
		.FLASH_NCR2 = 0x0000,   \
}

stm8_device_t stm8_devices[] = {
	{
	  .name = "stm8s003",
	  .ram_start = 0x0000,
	  .ram_size = 1*1024,
	  .eeprom_start = 0x4000,
	  .eeprom_size = 128,
	  .flash_start = 0x8000,
	  .flash_size = 8*1024,
      .flash_block_size = 64,
	  REGS_STM8S
	},
	{
	  .name = "stm8s005k6",
	  .ram_start = 0x0000,
	  .ram_size = 2*1024,
	  .eeprom_start = 0x4000,
	  .eeprom_size = 128,
	  .flash_start = 0x8000,
	  .flash_size = 32*1024,
	  .flash_block_size = 128,
	  REGS_STM8S
	},
{'fraction_non_alphanumeric': 0.14027939464493597, 'fraction_numerical': 0.14260768335273574, 'mean_word_length': 2.4939024390243905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5050341', 'n_tokens_mistral': 1107, 'n_tokens_neox': 896, 'n_words': 134}