summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-08 06:27:35 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:31:47 +0200
commit1d1b697bc6b13b5db1594c3dafe5452b6b2c1668 (patch)
tree5bf0ea2ffbf6536ce67d3e5b26d2b65e7c6a69ce /src/demo.c
parentbc8dd60b2ebc311427c751937df464ba58b12c42 (diff)
downloadsecure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.tar.gz
secure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.tar.bz2
secure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.zip
use NULL instead of 0 for assigning null pointer
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demo.c b/src/demo.c
index 995e68c..44a94c0 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -119,7 +119,7 @@ static const usbh_dev_driver_t *device_drivers[] = {
&usbh_hid_driver,
&usbh_gp_xbox_driver,
&usbh_midi_driver,
- 0
+ NULL
};
static void gp_xbox_update(uint8_t device_id, gp_xbox_packet_t packet)
@@ -234,7 +234,7 @@ int main(void)
#ifdef USE_STM32F4_USBH_DRIVER_HS
usbh_lld_stm32f4_driver_hs, // Make sure USE_STM32F4_USBH_DRIVER_HS is defined in usbh_config.h
#endif
- 0
+ NULL
};
usbh_init(lld_drivers, device_drivers);
gpio_clear(GPIOD, GPIO13);