aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUwe Hermann2010-12-29 17:28:06 +0100
committerUwe Hermann2010-12-29 17:28:06 +0100
commitc39eb69e4d923c9c5fa8be53252ee0ffd15dffb9 (patch)
treee4f194d9c1720c4a1318c4f73e9de7dfa7da5db8 /examples
parent6a16711bee34e0445a95a9cbffc17fdd1d580950 (diff)
Replace uint8_t with u8 et al, fix whitespace.
Diffstat (limited to 'examples')
-rw-r--r--examples/lisa-m/usb_hid/usbhid.c6
-rw-r--r--examples/mb525/pwmleds/pwmleds.c2
-rw-r--r--examples/other/usb_hid/usbhid.c6
-rw-r--r--examples/stm32-h103/usb_hid/usbhid.c6
4 files changed, 10 insertions, 10 deletions
diff --git a/examples/lisa-m/usb_hid/usbhid.c b/examples/lisa-m/usb_hid/usbhid.c
index 6adef1e..1628503 100644
--- a/examples/lisa-m/usb_hid/usbhid.c
+++ b/examples/lisa-m/usb_hid/usbhid.c
@@ -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;
diff --git a/examples/mb525/pwmleds/pwmleds.c b/examples/mb525/pwmleds/pwmleds.c
index ca707ac..78932cb 100644
--- a/examples/mb525/pwmleds/pwmleds.c
+++ b/examples/mb525/pwmleds/pwmleds.c
@@ -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,
diff --git a/examples/other/usb_hid/usbhid.c b/examples/other/usb_hid/usbhid.c
index d87265f..02c653d 100644
--- a/examples/other/usb_hid/usbhid.c
+++ b/examples/other/usb_hid/usbhid.c
@@ -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;
diff --git a/examples/stm32-h103/usb_hid/usbhid.c b/examples/stm32-h103/usb_hid/usbhid.c
index 457bb04..e326dd0 100644
--- a/examples/stm32-h103/usb_hid/usbhid.c
+++ b/examples/stm32-h103/usb_hid/usbhid.c
@@ -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;