arm: 96boards: Run clang-format on source code
Run clan-format on the source code for better code visibility. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
This commit is contained in:
committed by
malikabhi05
parent
dee7b80f06
commit
be9cd0138a
@@ -120,9 +120,9 @@ mraa_db410c_mmap_write(mraa_gpio_context dev, int value)
|
||||
uint32_t offset = (0x1000 * dev->pin);
|
||||
|
||||
if (value) {
|
||||
*(volatile uint32_t*) (mmap_reg + offset + 0x04) |= (uint32_t) (1 << 1);
|
||||
*(volatile uint32_t*) (mmap_reg + offset + 0x04) |= (uint32_t)(1 << 1);
|
||||
} else {
|
||||
*(volatile uint32_t*) (mmap_reg + offset + 0x04) &= ~(uint32_t) (1 << 1);
|
||||
*(volatile uint32_t*) (mmap_reg + offset + 0x04) &= ~(uint32_t)(1 << 1);
|
||||
}
|
||||
|
||||
return MRAA_SUCCESS;
|
||||
@@ -135,7 +135,7 @@ mraa_db410c_mmap_read(mraa_gpio_context dev)
|
||||
uint32_t offset = (0x1000 * dev->pin);
|
||||
|
||||
value = *(volatile uint32_t*) (mmap_reg + offset + 0x04);
|
||||
if (value & (uint32_t) (1 << 0)) {
|
||||
if (value & (uint32_t)(1 << 0)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -219,20 +219,20 @@ mraa_96boards()
|
||||
b->platform_name = PLATFORM_NAME_DB410C;
|
||||
ls_gpio_pins = db410c_ls_gpio_pins;
|
||||
chardev_map = &db410c_chardev_map;
|
||||
b->uart_dev[0].device_path = (char *)db410c_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char *)db410c_serialdev[1];
|
||||
b->uart_dev[0].device_path = (char*) db410c_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char*) db410c_serialdev[1];
|
||||
b->adv_func->gpio_mmap_setup = &mraa_db410c_mmap_setup;
|
||||
} else if (mraa_file_contains(DT_BASE "/model", "HiKey Development Board")) {
|
||||
b->platform_name = PLATFORM_NAME_HIKEY;
|
||||
ls_gpio_pins = hikey_ls_gpio_pins;
|
||||
chardev_map = &hikey_chardev_map;
|
||||
b->uart_dev[0].device_path = (char *)hikey_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char *)hikey_serialdev[1];
|
||||
b->uart_dev[0].device_path = (char*) hikey_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char*) hikey_serialdev[1];
|
||||
} else if (mraa_file_contains(DT_BASE "/model", "s900")) {
|
||||
b->platform_name = PLATFORM_NAME_BBGUM;
|
||||
ls_gpio_pins = bbgum_ls_gpio_pins;
|
||||
b->uart_dev[0].device_path = (char *)bbgum_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char *)bbgum_serialdev[1];
|
||||
b->uart_dev[0].device_path = (char*) bbgum_serialdev[0];
|
||||
b->uart_dev[1].device_path = (char*) bbgum_serialdev[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user