mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-10-13 11:17:49 +02:00
added asm breakdown
This commit is contained in:
1 parent
8ae237c2c5
commit
ca3ceaa6e9
31 files changed
+1434
-6
No files matched your search
@@ -5,23 +5,23 @@
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// gpio_init(LED_PIN);
|
||||
// gpio_init(LED_PIN);
|
||||
gpio_set_dir(LED_PIN, GPIO_IN);
|
||||
gpio_put(LED_PIN, 0);
|
||||
gpio_set_function(LED_PIN, GPIO_FUNC_SIO);
|
||||
|
||||
// gpio_set_dir(LED_PIN, GPIO_OUT);
|
||||
// gpio_set_dir(LED_PIN, GPIO_OUT);
|
||||
gpioc_bit_oe_put(LED_PIN, GPIO_OUT);
|
||||
|
||||
while (true) {
|
||||
// gpio_put(LED_PIN, 1);
|
||||
// gpio_put(LED_PIN, 1);
|
||||
gpioc_bit_out_put(LED_PIN, 1);
|
||||
// sleep_ms(500);
|
||||
// sleep_ms(500);
|
||||
sleep_us(500 * 1000ull);
|
||||
|
||||
// gpio_put(LED_PIN, 0);
|
||||
// gpio_put(LED_PIN, 0);
|
||||
gpioc_bit_out_put(LED_PIN, 0);
|
||||
// sleep_ms(500);
|
||||
// sleep_ms(500);
|
||||
sleep_us(500 * 1000ull);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user