<commit_before>#ifndef __LED_DRIVER_H__
#define __LED_DRIVER_H__

#include <stdint.h>

#include "stm32l4xx_hal_def.h"

#define LED_COLOR_MIN	0
#define LED_COLOR_MAX	UINT8_MAX

// Note: At least for now, this type should be castable to HAL_StatusTypeDef.
enum led_error
{
	LED_EOK = HAL_OK,
	LED_EERROR = HAL_ERROR,
	LED_EBUSY = HAL_BUSY,
	LED_ETIMEOUT = HAL_TIMEOUT,
	LED_EINVAL,
	LED_EDISABLED,
};

struct led_color
{
	uint8_t red;
	uint8_t green;
	uint8_t blue;
};

enum led_error led_init(uint32_t period);
enum led_error led_deinit(void);<commit_msg>led: Clean up enum comment<commit_after>#ifndef __LED_DRIVER_H__
#define __LED_DRIVER_H__

#include <stdint.h>
#include "stm32l4xx_hal_def.h"

#define LED_COLOR_MIN	0
#define LED_COLOR_MAX	UINT8_MAX

// For now, this enum should be castable to HAL_StatusTypeDef.
enum led_error
{
	LED_EOK = HAL_OK,
	LED_EERROR = HAL_ERROR,
	LED_EBUSY = HAL_BUSY,
	LED_ETIMEOUT = HAL_TIMEOUT,
	LED_EINVAL,
	LED_EDISABLED,
};

struct led_color
{
	uint8_t red;
	uint8_t green;
	uint8_t blue;
};

enum led_error led_init(uint32_t period);
enum led_error led_deinit(void);
{'fraction_non_alphanumeric': 0.08144796380090498, 'fraction_numerical': 0.01809954751131222, 'mean_word_length': 5.785276073619632, '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': '6408266', 'n_tokens_mistral': 479, 'n_tokens_neox': 472, 'n_words': 106}