This file contains hidden or 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
void sgpio_irqhandler() { | |
SGPIO_CLR_STATUS_1 = 0xFFFFFFFF; | |
uint32_t* const p32 = &usb_bulk_buffer[buffer_offset]; | |
volatile const uint32_t* const sgpio_reg_ss_base = SGPIO_PORT_BASE + 0x100; | |
p32[7] = SGPIO_REG_SS(SGPIO_SLICE_A); | |
p32[6] = SGPIO_REG_SS(SGPIO_SLICE_I); | |
p32[5] = SGPIO_REG_SS(SGPIO_SLICE_E); | |
p32[4] = SGPIO_REG_SS(SGPIO_SLICE_J); |
This file contains hidden or 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
volatile uint_fast8_t* peripheral_bitband_address(volatile void* const address, const uint_fast8_t bit_number) { | |
const uint32_t bit_band_base = 0x42000000; | |
const uint32_t byte_offset = (uint32_t)address - 0x40000000; | |
const uint32_t bit_word_offset = (byte_offset * 32) + (bit_number * 4); | |
const uint32_t bit_word_address = bit_band_base + bit_word_offset; | |
return (volatile uint_fast8_t*)bit_word_address; | |
} | |
void peripheral_bitband_set(volatile void* const peripheral_address, const uint_fast8_t bit_number) { | |
volatile uint_fast8_t* const bitband_address = peripheral_bitband_address(peripheral_address, bit_number); |
This file contains hidden or 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
=== modified file 'include/boost/polygon/polygon.hpp' | |
--- include/boost/polygon/polygon.hpp 2012-05-16 01:42:04 +0000 | |
+++ include/boost/polygon/polygon.hpp 2012-05-21 06:11:22 +0000 | |
@@ -23,6 +23,7 @@ | |
#include "transform.hpp" | |
#include "detail/transform_detail.hpp" | |
+#include "detail/polygon_sort_adaptor.hpp" | |
//interval |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <libusb.h> | |
bool read_file_to_buffer(const char* const filename, uint8_t* const buffer, uint32_t buffer_size) { | |
memset(buffer, 0x69, buffer_size); | |
FILE* f = fopen(filename, "rb"); | |
if( f == NULL ) { |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <libusb.h> | |
bool read_file_to_buffer(const char* const filename, uint8_t* const buffer, uint32_t buffer_size) { | |
memset(buffer, 0x69, buffer_size); | |
FILE* f = fopen(filename, "rb"); | |
if( f == NULL ) { |
NewerOlder