diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 14:39:02 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 14:39:02 +0900 |
commit | b90e58f763bd277b7a5285601a34818f44f2b01c (patch) | |
tree | 4535e6abc8b77d58215796c240489e7dbf499b44 /example-fs-bb48/sys.h | |
parent | 8209f3875510d1990142a367c8bab6164c2f82cc (diff) |
Move CHIP specific things to mcu/
Diffstat (limited to 'example-fs-bb48/sys.h')
-rw-r--r-- | example-fs-bb48/sys.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/example-fs-bb48/sys.h b/example-fs-bb48/sys.h deleted file mode 100644 index eed5d92..0000000 --- a/example-fs-bb48/sys.h +++ /dev/null @@ -1,41 +0,0 @@ -extern const uint8_t sys_version[8]; -extern const uint32_t sys_board_id; -extern const char *const sys_board_name; - -typedef void (*handler)(void); -extern handler sys_vector[16]; - -/* - * Users can override INLINE by 'attribute((used))' to have an - * implementation defined. - */ -#if !defined(INLINE) -#define INLINE __inline__ -#endif - -static INLINE void -clock_init (void) -{ - (*sys_vector[0]) (); -} - -static INLINE void -gpio_init (void) -{ - (*sys_vector[1]) (); -} - -static inline void -set_led (int on) -{ - void (*func) (int) = (void (*)(int))sys_vector[2]; - - return (*func) (on); -} - -void crc32_init (unsigned int *); -void crc32_u8 (unsigned int *, unsigned char); -void crc32_u32 (unsigned int *, unsigned int); - -int flash_erase_page (uint32_t addr); -int flash_program_word (uint32_t addr, uint32_t word); |