Replace uint8_t with u8 et al, fix whitespace.
This commit is contained in:
@@ -66,8 +66,8 @@ static const u8 hid_report_descriptor[] = {
|
||||
static const struct {
|
||||
struct usb_hid_descriptor hid_descriptor;
|
||||
struct {
|
||||
uint8_t bReportDescriptorType;
|
||||
uint16_t wDescriptorLength;
|
||||
u8 bReportDescriptorType;
|
||||
u16 wDescriptorLength;
|
||||
} __attribute__((packed)) hid_report;
|
||||
} __attribute__((packed)) hid_function = {
|
||||
.hid_descriptor = {
|
||||
@@ -281,7 +281,7 @@ void sys_tick_handler(void)
|
||||
{
|
||||
static int x = 0;
|
||||
static int dir = 1;
|
||||
uint8_t buf[4] = {0, 0, 0, 0};
|
||||
u8 buf[4] = {0, 0, 0, 0};
|
||||
|
||||
buf[1] = dir;
|
||||
x += dir;
|
||||
|
||||
@@ -124,7 +124,7 @@ static const u16 gamma_table_1_3[] = {
|
||||
#endif
|
||||
|
||||
#ifdef GAMMA_2_2
|
||||
static const uint16_t gamma_table_2_2[] = {
|
||||
static const u16 gamma_table_2_2[] = {
|
||||
0, 0, 2, 4, 7, 11, 17, 24,
|
||||
32, 42, 53, 65, 79, 94, 111, 129,
|
||||
148, 169, 192, 216, 242, 270, 299, 330,
|
||||
|
||||
@@ -66,8 +66,8 @@ static const u8 hid_report_descriptor[] = {
|
||||
static const struct {
|
||||
struct usb_hid_descriptor hid_descriptor;
|
||||
struct {
|
||||
uint8_t bReportDescriptorType;
|
||||
uint16_t wDescriptorLength;
|
||||
u8 bReportDescriptorType;
|
||||
u16 wDescriptorLength;
|
||||
} __attribute__((packed)) hid_report;
|
||||
} __attribute__((packed)) hid_function = {
|
||||
.hid_descriptor = {
|
||||
@@ -262,7 +262,7 @@ void sys_tick_handler(void)
|
||||
{
|
||||
static int x = 0;
|
||||
static int dir = 1;
|
||||
uint8_t buf[4] = {0, 0, 0, 0};
|
||||
u8 buf[4] = {0, 0, 0, 0};
|
||||
|
||||
buf[1] = dir;
|
||||
x += dir;
|
||||
|
||||
@@ -66,8 +66,8 @@ static const u8 hid_report_descriptor[] = {
|
||||
static const struct {
|
||||
struct usb_hid_descriptor hid_descriptor;
|
||||
struct {
|
||||
uint8_t bReportDescriptorType;
|
||||
uint16_t wDescriptorLength;
|
||||
u8 bReportDescriptorType;
|
||||
u16 wDescriptorLength;
|
||||
} __attribute__((packed)) hid_report;
|
||||
} __attribute__((packed)) hid_function = {
|
||||
.hid_descriptor = {
|
||||
@@ -262,7 +262,7 @@ void sys_tick_handler(void)
|
||||
{
|
||||
static int x = 0;
|
||||
static int dir = 1;
|
||||
uint8_t buf[4] = {0, 0, 0, 0};
|
||||
u8 buf[4] = {0, 0, 0, 0};
|
||||
|
||||
buf[1] = dir;
|
||||
x += dir;
|
||||
|
||||
Reference in New Issue
Block a user