Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: platform/zynq/gpio.c

Issue 1348403002: Consistently use the STATIC_COMMAND macro every time we define a console command. (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « platform/power.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012-2015 Travis Geiselbrecht 2 * Copyright (c) 2012-2015 Travis Geiselbrecht
3 * Copyright (c) 2015 Christopher Anderson 3 * Copyright (c) 2015 Christopher Anderson
4 * 4 *
5 * Permission is hereby granted, free of charge, to any person obtaining 5 * Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files 6 * a copy of this software and associated documentation files
7 * (the "Software"), to deal in the Software without restriction, 7 * (the "Software"), to deal in the Software without restriction,
8 * including without limitation the rights to use, copy, modify, merge, 8 * including without limitation the rights to use, copy, modify, merge,
9 * publish, distribute, sublicense, and/or sell copies of the Software, 9 * publish, distribute, sublicense, and/or sell copies of the Software,
10 * and to permit persons to whom the Software is furnished to do so, 10 * and to permit persons to whom the Software is furnished to do so,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 printf("INT_MASK_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_MASK(bank) , *REG32(GPIO_INT_MASK(bank))); 270 printf("INT_MASK_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_MASK(bank) , *REG32(GPIO_INT_MASK(bank)));
271 printf("INT_STAT_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_STAT(bank) , *REG32(GPIO_INT_STAT(bank))); 271 printf("INT_STAT_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_STAT(bank) , *REG32(GPIO_INT_STAT(bank)));
272 printf("INT_TYPE_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_TYPE(bank) , *REG32(GPIO_INT_TYPE(bank))); 272 printf("INT_TYPE_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_TYPE(bank) , *REG32(GPIO_INT_TYPE(bank)));
273 printf("INT_POLARITY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_POLARITY(b ank), *REG32(GPIO_INT_POLARITY(bank))); 273 printf("INT_POLARITY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_POLARITY(b ank), *REG32(GPIO_INT_POLARITY(bank)));
274 printf("INT_ANY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_ANY(bank), *REG32(GPIO_INT_ANY(bank))); 274 printf("INT_ANY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_ANY(bank), *REG32(GPIO_INT_ANY(bank)));
275 } 275 }
276 return 0; 276 return 0;
277 } 277 }
278 STATIC_COMMAND_START 278 STATIC_COMMAND_START
279 #if LK_DEBUGLEVEL > 1 279 #if LK_DEBUGLEVEL > 1
280 { "zynq_gpio", "Dump Zynq GPIO registers", &cmd_zynq_gpio }, 280 STATIC_COMMAND("zynq_gpio", "Dump Zynq GPIO registers", &cmd_zynq_gpio)
281 #endif 281 #endif
282 STATIC_COMMAND_END(zynq_gpio); 282 STATIC_COMMAND_END(zynq_gpio);
283 283
284 #endif 284 #endif
OLDNEW
« no previous file with comments | « platform/power.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698