forked from rehius/usk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5617e8c
commit 3a7c9e6
Showing
2 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
#ifndef MISC_H_ | ||
#define MISC_H_ | ||
|
||
#define PIX_gre 0x00FF00 | ||
#define PIX_red 0xFF0000 | ||
#define PIX_whi 0x111111 | ||
|
||
#define PIX_g 0x008000 | ||
|
||
void put_pixel(uint32_t pixel_grb); | ||
|
||
uint8_t red = (pixel_grb >> 8) & 0xFF; | ||
uint8_t green = (pixel_grb >> 16) & 0xFF; | ||
uint8_t blue = pixel_grb & 0xFF; | ||
|
||
#include <stdint.h> | ||
|
||
void put_pixel(uint32_t pixel_grb); | ||
void halt_with_error(uint32_t err, uint32_t bits); | ||
|
||
void gpio_disable_input_output(int pin); | ||
|
||
void gpio_enable_input_output(int pin); | ||
|
||
void finish_pins_except_leds(); | ||
|
||
void reset_cpu(); | ||
|
||
#endif /* MISC_H_ */ | ||
|